diff --git a/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js b/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js new file mode 100644 index 000000000..aacd1ef0a --- /dev/null +++ b/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js @@ -0,0 +1,33 @@ +/// +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(); + }); +});