diff --git a/test/cypress/integration/outLogin/logout.spec.js b/test/cypress/integration/outLogin/logout.spec.js index d6c33a65b..bcdacec78 100644 --- a/test/cypress/integration/outLogin/logout.spec.js +++ b/test/cypress/integration/outLogin/logout.spec.js @@ -28,7 +28,7 @@ describe('Logout', () => { }); it('when token not exists', () => { - cy.get('.q-list > [href="#/item"]').click(); + cy.get('.q-list').first().should('be.visible').click(); cy.checkNotification('Authorization Required'); }); }); diff --git a/test/cypress/integration/vnComponent/vnSearchBar.spec.js b/test/cypress/integration/vnComponent/vnSearchBar.spec.js index 580199bc3..b8621118c 100644 --- a/test/cypress/integration/vnComponent/vnSearchBar.spec.js +++ b/test/cypress/integration/vnComponent/vnSearchBar.spec.js @@ -5,6 +5,7 @@ describe('VnSearchBar', () => { const idGap = '.q-item > .q-item__label'; const vnTableRow = '.q-virtual-scroll__content'; beforeEach(() => { + cy.viewport(1280, 720); cy.login('developer'); cy.visit('#/customer/list'); });