0
0
Fork 0

test: refs #8039 fix ZoneWarehouse e2e

This commit is contained in:
Alex Moreno 2024-10-22 13:53:01 +02:00
parent 2d81cffb33
commit 0c9c01b6e9
2 changed files with 5 additions and 16 deletions

View File

@ -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(

View File

@ -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', () => {