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

19 lines
663 B
JavaScript
Raw Normal View History

2024-12-03 12:00:16 +00:00
/// <reference types="cypress" />
describe('Item tax', () => {
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('developer');
cy.visit(`/#/item/list`);
cy.get('#searchbar input').type('1{enter}');
});
it('should modify the tax for Spain', () => {
cy.get('[href="#/item/1/tax"]').click();
cy.get(
':nth-child(1) > .q-select > .q-field__inner > .q-field__control > .q-field__control-container > .q-field__native > [data-cy="Class_select"]'
).type('General VAT{enter}');
cy.dataCy('crudModelDefaultSaveBtn').click();
2024-12-03 12:00:16 +00:00
cy.checkNotification('Data saved');
});
});