0
0
Fork 0

feat: refs #7119 add delete functionality for vehicles with Cypress test

This commit is contained in:
Jorge Penadés 2025-01-30 10:55:52 +01:00
parent 223e14a850
commit 262ab78305
2 changed files with 14 additions and 0 deletions

View File

@ -15,6 +15,7 @@ const { notify } = useNotify();
>
<template #menu="{ entity }">
<QItem
data-cy="delete"
v-ripple
clickable
@click="

View File

@ -0,0 +1,13 @@
describe('Vehicle', () => {
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('deliveryAssistant');
cy.visit(`/#/route/vehicle/7`);
});
it('should delete a vehicle', () => {
cy.openActionsDescriptor();
cy.get('[data-cy="delete"]').click();
cy.checkNotification('Vehicle removed');
});
});