test: fix e2e

This commit is contained in:
Javier Segarra 2024-07-04 17:42:06 +02:00
parent 72a6056f3d
commit 3a73c6b908
6 changed files with 6 additions and 2 deletions

View File

@ -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');

View File

@ -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();

View File

@ -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();

View File

@ -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', () => {

View File

@ -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) {

View File

@ -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();
});