refs #4466 test: show corrective dialog

This commit is contained in:
Javier Segarra 2024-02-06 10:08:03 +01:00
parent c7b91ae4f1
commit 1e03b9009c
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
/// <reference types="cypress" />
describe('InvoiceInCorrective', () => {
const firstCard = '.q-card:nth-child(1)';
const firstChipId =
':nth-child(1) > :nth-child(1) > .justify-between > .flex > .q-chip > .q-chip__content';
const firstDetailBtn = '.q-card:nth-child(1) .q-btn:nth-child(2)';
const summaryHeaders = '.summaryBody .header';
beforeEach(() => {
cy.login('developer');
cy.visit(`/#/invoice-in/1/summary`);
});
it('modal', function() {
// Opcion 1 - Añadir doble click a LeftMenu
// Opcion 2 - Seleccionar el primer elemento de toolbar
// Opcion 3 - Cambiar las dimensiones
// Opcion 4 - Añadir .q-toolbar como argumento a openLeftMenu
// TODO REVISAR COMO SE COMPORTA CON Y SIN limit=10
// cy.openLeftMenu('.q-toolbar');
cy.waitForElement('.q-toolbar ')
cy.openLeftMenu();
// cy.get('.q-toolbar > :nth-child(1) > .q-btn__content > .q-icon')
// cy.get('.q-toolbar > .q-btn--round.q-btn--dense > .q-btn__content> .q-icon').click();
/* ==== Generated with Cypress Studio ==== */
cy.get('.header > :nth-child(2) > .q-btn__content').click();
cy.get('.q-menu > .q-list > :nth-child(4) > .q-item__section').click();
cy.get('.q-item > .q-btn > .q-btn__content > .q-icon').click();
});
});