From 0c9c01b6e9f2ea6fa3674301039eed2f6501e65d Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 22 Oct 2024 13:53:01 +0200 Subject: [PATCH] test: refs #8039 fix ZoneWarehouse e2e --- src/pages/Zone/Card/ZoneWarehouses.vue | 16 ++++------------ .../worker/workerNotificationsManager.spec.js | 5 +---- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/src/pages/Zone/Card/ZoneWarehouses.vue b/src/pages/Zone/Card/ZoneWarehouses.vue index 6b2933224..98e446797 100644 --- a/src/pages/Zone/Card/ZoneWarehouses.vue +++ b/src/pages/Zone/Card/ZoneWarehouses.vue @@ -34,21 +34,13 @@ const columns = computed(() => [ ]); const deleteWarehouse = async (row) => { - try { - await axios.delete(`${urlPath.value}/${row.id}`); - fetchWarehouses(); - } catch (error) { - console.error(error); - } + await axios.delete(`${urlPath.value}/${row.id}`); + fetchWarehouses(); }; const createZoneWarehouse = async (ZoneWarehouseFormData) => { - try { - await axios.post(urlPath.value, ZoneWarehouseFormData); - fetchWarehouses(); - } catch (error) { - console.error(error); - } + await axios.post(urlPath.value, ZoneWarehouseFormData); + fetchWarehouses(); }; watch( diff --git a/test/cypress/integration/worker/workerNotificationsManager.spec.js b/test/cypress/integration/worker/workerNotificationsManager.spec.js index ac452c4ff..367287a5a 100644 --- a/test/cypress/integration/worker/workerNotificationsManager.spec.js +++ b/test/cypress/integration/worker/workerNotificationsManager.spec.js @@ -17,10 +17,7 @@ describe('WorkerNotificationsManager', () => { cy.login('developer'); cy.visit(`/#/worker/${salesPersonId}/notifications`); cy.get(firstAvailableNotification).click(); - cy.notificationHas( - '.q-notification__message', - 'The notification subscription of this worker cant be modified' - ); + cy.hasNotify('The notification subscription of this worker cant be modified'); }); it('should active a notification that is yours', () => {