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
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
3a30853f6a
commit
0ae1027891
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue