19 lines
648 B
JavaScript
19 lines
648 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.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();
|
|
cy.checkNotification('Data saved');
|
|
});
|
|
});
|