test: fix e2e
This commit is contained in:
parent
72a6056f3d
commit
3a73c6b908
|
@ -1,7 +1,7 @@
|
|||
describe('WagonTypeCreate', () => {
|
||||
beforeEach(() => {
|
||||
cy.viewport(1920, 1080);
|
||||
cy.login('customer');
|
||||
cy.login('supplier');
|
||||
cy.visit(`/#/entry/my`, {
|
||||
onBeforeLoad(win) {
|
||||
cy.stub(win, 'open');
|
||||
|
|
|
@ -9,6 +9,7 @@ describe('InvoiceInCorrective', () => {
|
|||
cy.viewport(1280, 720);
|
||||
cy.login('developer');
|
||||
cy.visit(`/#/invoice-in/1/summary?limit=10`);
|
||||
cy.waitForElement('.q-page', 6000);
|
||||
|
||||
cy.openActionsDescriptor();
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ describe('InvoiceInDescriptor', () => {
|
|||
cy.viewport(1280, 720);
|
||||
cy.login('developer');
|
||||
cy.visit('/#/invoice-in/1/summary');
|
||||
cy.waitForElement('.q-page', 6000);
|
||||
|
||||
cy.openActionsDescriptor();
|
||||
cy.get(firstDescritorOpt).click();
|
||||
|
|
|
@ -9,6 +9,7 @@ describe('Ticket descriptor', () => {
|
|||
|
||||
cy.login('developer');
|
||||
cy.visit(`/#/ticket/${ticketId}/summary`);
|
||||
cy.waitForElement('.q-page', 7000);
|
||||
});
|
||||
|
||||
it('should clone the ticket without warehouse', () => {
|
||||
|
|
|
@ -3,6 +3,7 @@ describe('WagonTypeCreate', () => {
|
|||
cy.viewport(1920, 1080);
|
||||
cy.login('developer');
|
||||
cy.visit('/#/wagon/type/create');
|
||||
cy.waitForElement('.q-page', 6000);
|
||||
});
|
||||
|
||||
function chooseColor(color) {
|
||||
|
|
|
@ -239,5 +239,5 @@ Cypress.Commands.add('validateContent', (selector, expectedValue) => {
|
|||
});
|
||||
|
||||
Cypress.Commands.add('openActionsDescriptor', () => {
|
||||
cy.get('.descriptor > .header > .q-btn').click();
|
||||
cy.get('.descriptor > .header > :nth-child(3) > .q-btn__content > .q-icon').click();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue