From 798e923afee24d7a85eefeac4abe80c3801b5fd9 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 4 Apr 2020 19:47:59 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 2 ++ ayanova/src/views/ay-about.vue | 2 +- ayanova/src/views/ay-data-list-view.vue | 8 +++++--- ayanova/src/views/widget.vue | 22 +++++++++++----------- 4 files changed, 19 insertions(+), 15 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index ad9d8fa4..f190d91e 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -54,6 +54,8 @@ todo: change all testing data-cy attributes to conditional see ay-customize for - Really need at this point a way to not have to add a fucking data property to *every* fucking form but rather a central location available to all vue from main or window - dig into that and see if it's possible again and how to do it because then all forms could be simplified a great deal. +todo: is there a way to not have to specify "name" 5 times in a text field on widget form (for example), maybe can use this.ref?? + todo: add tests for the following: - customize form form - NOTE: All cypress tests run serially anyway, so it's perfectly ok to customize the widget form, go see if it worked, then come back and reverse it without affecting the other tests diff --git a/ayanova/src/views/ay-about.vue b/ayanova/src/views/ay-about.vue index ec695afc..e4afae79 100644 --- a/ayanova/src/views/ay-about.vue +++ b/ayanova/src/views/ay-about.vue @@ -110,7 +110,7 @@ - {{ + {{ $ay.t("LicensedOptions") }} diff --git a/ayanova/src/views/ay-data-list-view.vue b/ayanova/src/views/ay-data-list-view.vue index 6dd03976..fc514aa5 100644 --- a/ayanova/src/views/ay-data-list-view.vue +++ b/ayanova/src/views/ay-data-list-view.vue @@ -47,7 +47,7 @@ :error-messages="form().serverErrors(this, 'name')" ref="name" @input="fieldValueChanged('name')" - data-cy="name" + :data-cy="!!$ay.dev ? 'name' : false" > @@ -63,7 +63,7 @@