From 4ebcb420c3ba4c07c995e633ea8d39f0f91a3ca9 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 5 Jul 2024 09:31:05 +0200 Subject: [PATCH] test: fix myEntry --- .../cypress/integration/entry/myEntry.spec.js | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/test/cypress/integration/entry/myEntry.spec.js b/test/cypress/integration/entry/myEntry.spec.js index fc80c93f8..bd0e55c37 100644 --- a/test/cypress/integration/entry/myEntry.spec.js +++ b/test/cypress/integration/entry/myEntry.spec.js @@ -1,20 +1,20 @@ -// describe('WagonTypeCreate', () => { -// beforeEach(() => { -// cy.viewport(1920, 1080); -// cy.login('customer'); -// cy.visit(`/#/entry/my`, { -// onBeforeLoad(win) { -// cy.stub(win, 'open'); -// }, -// }); -// cy.waitForElement('.q-page', 6000); -// }); +describe('My entry when is supplier', () => { + beforeEach(() => { + cy.viewport(1920, 1080); + cy.login('supplier'); + cy.visit(`/#/entry/my`, { + onBeforeLoad(win) { + cy.stub(win, 'open'); + }, + }); + cy.waitForElement('.q-page', 6000); + }); -// it('should create edit and remove new dms', () => { -// cy.get( -// '[to="/null/2"] > .q-card > .column > .q-btn > .q-btn__content > .q-icon' -// ).click(); -// cy.get('.q-card__actions > .q-btn').click(); -// cy.window().its('open').should('be.called'); -// }); -// }); + it('should open buyLabel when is supplier', () => { + cy.get( + '[to="/null/2"] > .q-card > .column > .q-btn > .q-btn__content > .q-icon' + ).click(); + cy.get('.q-card__actions > .q-btn').click(); + cy.window().its('open').should('be.called'); + }); +});