From 67275e435ee9cd07a1259755b5d5b8eae7347fe9 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 23 Jul 2024 10:38:45 +0200 Subject: [PATCH] refactor: refs #7014 refactor ZoneCard, deleted ZoneMain & created basic tests for functionality --- src/pages/Zone/Card/ZoneCard.vue | 8 ++++++-- .../{ZoneMain.vue => Card/ZoneSearchbar.vue} | 4 +--- src/pages/Zone/ZoneDeliveryDays.vue | 2 ++ src/pages/Zone/ZoneList.vue | 2 ++ src/pages/Zone/ZoneUpcoming.vue | 2 ++ .../integration/zone/zoneDeliveryDays.spec.js | 17 +++++++++++++++++ test/cypress/integration/zone/zoneList.spec.js | 16 ++++++++++++++++ .../zone/zoneUpcomingDeliveries.spec.js | 10 ++++++++++ 8 files changed, 56 insertions(+), 5 deletions(-) rename src/pages/Zone/{ZoneMain.vue => Card/ZoneSearchbar.vue} (88%) create mode 100644 test/cypress/integration/zone/zoneDeliveryDays.spec.js create mode 100644 test/cypress/integration/zone/zoneList.spec.js create mode 100644 test/cypress/integration/zone/zoneUpcomingDeliveries.spec.js diff --git a/src/pages/Zone/Card/ZoneCard.vue b/src/pages/Zone/Card/ZoneCard.vue index f92ee1e4e..59049a5b3 100644 --- a/src/pages/Zone/Card/ZoneCard.vue +++ b/src/pages/Zone/Card/ZoneCard.vue @@ -2,9 +2,9 @@ import { useI18n } from 'vue-i18n'; import { useRoute } from 'vue-router'; import { computed } from 'vue'; - import VnCard from 'components/common/VnCard.vue'; import ZoneDescriptor from './ZoneDescriptor.vue'; +import ZoneSearchbar from './ZoneSearchbar.vue'; const { t } = useI18n(); const route = useRoute(); @@ -33,5 +33,9 @@ const searchBarDataKeys = { :search-make-fetch="searchbarMakeFetch" :searchbar-label="t('list.searchZone')" :searchbar-info="t('list.searchInfo')" - /> + > + + diff --git a/src/pages/Zone/ZoneMain.vue b/src/pages/Zone/Card/ZoneSearchbar.vue similarity index 88% rename from src/pages/Zone/ZoneMain.vue rename to src/pages/Zone/Card/ZoneSearchbar.vue index b6f3fb74e..607057d0b 100644 --- a/src/pages/Zone/ZoneMain.vue +++ b/src/pages/Zone/Card/ZoneSearchbar.vue @@ -1,7 +1,6 @@