salix-front/test/cypress/integration/item/itemTax.spec.js

17 lines
508 B
JavaScript

/// <reference types="cypress" />
describe('Item tax', () => {
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('developer');
cy.visit(`/#/item/list`);
cy.typeSearchbar('1{enter}');
});
it('should modify the tax for Spain', () => {
cy.get('[href="#/item/1/tax"]').click();
cy.dataCy('Class_select').eq(1).type('General VAT{enter}');
cy.dataCy('crudModelDefaultSaveBtn').click();
cy.checkNotification('Data saved');
});
});