forked from verdnatura/salix-front
test: fix myEntry
This commit is contained in:
parent
9d4cfbd90c
commit
4ebcb420c3
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue