From a4a64eebb47fe9a6b77226fc4192d528928a3e2d Mon Sep 17 00:00:00 2001 From: pablone Date: Mon, 1 Jul 2024 09:18:16 +0200 Subject: [PATCH] fix: refs #7129 fix e2e --- .../integration/agency/agencyWorkCenter.spec.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/test/cypress/integration/agency/agencyWorkCenter.spec.js b/test/cypress/integration/agency/agencyWorkCenter.spec.js index 8349260ee..6d33dbc39 100644 --- a/test/cypress/integration/agency/agencyWorkCenter.spec.js +++ b/test/cypress/integration/agency/agencyWorkCenter.spec.js @@ -2,13 +2,10 @@ describe('AgencyWorkCenter', () => { beforeEach(() => { cy.viewport(1920, 1080); cy.login('developer'); - cy.visit(`/#/agency`); + cy.visit(`/#/agency/11/workCenter`); }); it('assign workCenter', () => { - cy.visit(`/#/agency`); - cy.get(':nth-child(1) > :nth-child(1) > .card-list-body > .list-items').click(); - cy.get('[href="#/agency/11/workCenter"] > .q-item__section--main').click(); cy.get('.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon').click(); cy.get( '.vn-row > .q-field > .q-field__inner > .q-field__control > .q-field__control-container' @@ -17,8 +14,6 @@ describe('AgencyWorkCenter', () => { }); it('delete workCenter', () => { - cy.get(':nth-child(1) > :nth-child(1) > .card-list-body > .list-items').click(); - cy.get('[href="#/agency/11/workCenter"] > .q-item__section--main').click(); cy.get('.q-item__section--side > .q-btn > .q-btn__content > .q-icon').click(); cy.get('.q-notification__message').should( 'have.text', @@ -27,9 +22,6 @@ describe('AgencyWorkCenter', () => { }); it('error on duplicate workCenter', () => { - cy.visit(`/#/agency`); - cy.get(':nth-child(1) > :nth-child(1) > .card-list-body > .list-items').click(); - cy.get('[href="#/agency/11/workCenter"] > .q-item__section--main').click(); cy.get('.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon').click(); cy.get( '.vn-row > .q-field > .q-field__inner > .q-field__control > .q-field__control-container'