From 2948dd1ba898c5f9b2a710579a10983b7b6d5fe5 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 9 Apr 2020 19:53:20 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 2 +- ayanova/src/views/home-search.vue | 20 ++++++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index baa47fcc..75491d12 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -51,7 +51,7 @@ CURRENT TODOs -todo: session cache search results and scroll position if possible to support "back and forthing" +todo: e2e test for search todo: search what order should the results be retruned in, right now is by id but looks weird in list todo: look at using finally block in all fetch form calls to do the things that are repeated in catch and then above it see search form for example diff --git a/ayanova/src/views/home-search.vue b/ayanova/src/views/home-search.vue index a8339360..88abb712 100644 --- a/ayanova/src/views/home-search.vue +++ b/ayanova/src/views/home-search.vue @@ -13,6 +13,7 @@ ref="searchPhrase" @change="getDataFromApi()" hint="text, *xt, te*" + :data-cy="!!$ay.dev ? 'phrase' : false" > @@ -30,7 +31,9 @@ v-on:click="getDataFromApi()" value="SEARCH" > - fa-search + fa-search @@ -52,9 +55,13 @@ > - + - fa-info-circle