perf: refs #8220 use searchbar selector in e2e tests
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jon Elias 2024-12-16 10:24:31 +01:00
parent 292171348c
commit a2b3a493fd
6 changed files with 6 additions and 7 deletions

View File

@ -4,7 +4,7 @@ describe('Item shelving', () => {
cy.viewport(1920, 1080);
cy.login('developer');
cy.visit(`/#/item/list`);
cy.get('#searchbar input').type('1{enter}');
cy.typeSearchbar('1{enter}');
});
it('should throw an error if the barcode exists', () => {

View File

@ -4,7 +4,7 @@ describe('Item botanical', () => {
cy.viewport(1920, 1080);
cy.login('developer');
cy.visit(`/#/item/list`);
cy.get('#searchbar input').type('1{enter}');
cy.typeSearchbar('1{enter}');
});
it('should modify the botanical', () => {

View File

@ -5,7 +5,7 @@ describe('Item list', () => {
cy.viewport(1920, 1080);
cy.login('developer');
cy.visit(`/#/item/list`);
cy.get('#searchbar input').type('{enter}');
cy.typeSearchbar('{enter}');
});
it('should filter the items and redirect to the summary', () => {

View File

@ -4,7 +4,7 @@ describe('Item summary', () => {
cy.viewport(1920, 1080);
cy.login('developer');
cy.visit(`/#/item/list`);
cy.get('#searchbar input').type('1{enter}');
cy.typeSearchbar('1{enter}');
});
it('should clone the item', () => {

View File

@ -4,10 +4,9 @@ describe('Item tag', () => {
cy.viewport(1920, 1080);
cy.login('developer');
cy.visit(`/#/item/list`);
cy.get('#searchbar input').type('1{enter}');
cy.typeSearchbar('1{enter}');
});
// falla la notificacion
it('should throw an error adding an existent tag', () => {
cy.get('[href="#/item/1/tags"]').click();
cy.get('.q-page-sticky > div').click();

View File

@ -4,7 +4,7 @@ describe('Item tax', () => {
cy.viewport(1920, 1080);
cy.login('developer');
cy.visit(`/#/item/list`);
cy.get('#searchbar input').type('1{enter}');
cy.typeSearchbar('1{enter}');
});
it('should modify the tax for Spain', () => {