test: refs #8930 combine test cases for linking and unlinking a vehicle from the invoice
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jose Antonio Tubau 2025-05-19 11:26:11 +02:00
parent 3a30853f6a
commit 0ae1027891
1 changed files with 1 additions and 4 deletions

View File

@ -15,7 +15,7 @@ describe('InvoiceInVehicle', () => {
cy.visit(`/#/invoice-in/1/vehicle`);
});
it('should link vehicle to the invoice', () => {
it('should link and unlink vehicle to the invoice', () => {
const data = {
Vehicle: { val: '2222-IMK', type: 'select' },
Amount: { val: 125 },
@ -24,9 +24,6 @@ describe('InvoiceInVehicle', () => {
cy.fillInForm(data);
cy.dataCy('FormModelPopup_save').click();
cy.checkNotification('Data created');
});
it('should unlink vehicle to the invoice', () => {
cy.dataCy(selectors.tableActionUnlink).last().click();
cy.clickConfirm();
cy.checkNotification('Unlinked vehicle');