0
0
Fork 0
salix-front-mindshore-fork2/test/cypress/integration/entry/myEntry.spec.js

20 lines
566 B
JavaScript
Raw Permalink Normal View History

2024-07-16 10:21:36 +00:00
describe('EntryMy when is supplier', () => {
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('supplier');
cy.visit(`/#/entry/my`, {
onBeforeLoad(win) {
cy.stub(win, 'open');
},
});
});
it('should open buyLabel when is supplier', () => {
cy.get(
2024-10-14 06:51:26 +00:00
'[to="/null/3"] > .q-card > .column > .q-btn > .q-btn__content > .q-icon'
2024-07-16 10:21:36 +00:00
).click();
cy.get('.q-card__actions > .q-btn').click();
cy.window().its('open').should('be.called');
});
});