From 65a089e5621a137147d5493585d1d60447ceb06a Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 27 Mar 2025 10:02:13 +0100 Subject: [PATCH] fix: correct spelling of clicDescriptorAction to clickDescriptorAction in tests --- .../integration/invoiceIn/invoiceInCorrective.spec.js | 2 +- .../integration/invoiceIn/invoiceInDescriptor.spec.js | 10 +++++----- test/cypress/support/commands.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js b/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js index 275fa1358..495e4d43b 100644 --- a/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js @@ -53,7 +53,7 @@ describe('invoiceInCorrective', () => { it('should show/hide the section if it is a corrective invoice', () => { cy.visit('/#/invoice-in/1/summary'); cy.get('[data-cy="InvoiceInCorrective-menu-item"]').should('not.exist'); - cy.clicDescriptorAction(4); + cy.clickDescriptorAction(4); cy.get('[data-cy="InvoiceInCorrective-menu-item"]').should('exist'); }); }); diff --git a/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js b/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js index 7058e154c..5388f29a9 100644 --- a/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js @@ -64,17 +64,17 @@ describe('InvoiceInDescriptor', () => { beforeEach(() => cy.visit('/#/invoice-in/1/summary')); it('should navigate to the supplier summary', () => { - cy.clicDescriptorAction(1); + cy.clickDescriptorAction(1); cy.url().should('to.match', /supplier\/\d+\/summary/); }); it('should navigate to the entry summary', () => { - cy.clicDescriptorAction(2); + cy.clickDescriptorAction(2); cy.url().should('to.match', /entry\/\d+\/summary/); }); it('should navigate to the invoiceIn list', () => { - cy.clicDescriptorAction(3); + cy.clickDescriptorAction(3); cy.url().should('to.match', /invoice-in\/list\?table=\{.*supplierFk.+\}/); }); }); @@ -93,7 +93,7 @@ describe('InvoiceInDescriptor', () => { createCorrective(); redirect(originalId); - cy.clicDescriptorAction(4); + cy.clickDescriptorAction(4); cy.validateVnTableRows({ cols: [ { @@ -141,7 +141,7 @@ function createCorrective() { function redirect(subtitle) { const regex = new RegExp(`InvoiceIns/${subtitle}\\?filter=.*`); cy.intercept('GET', regex).as('getOriginal'); - cy.clicDescriptorAction(4); + cy.clickDescriptorAction(4); cy.wait('@getOriginal'); cy.validateDescriptor({ subtitle }); } diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index f48d55134..d49ee0bb3 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -600,7 +600,7 @@ Cypress.Commands.add('validatePdfDownload', (match, trigger) => { }); }); -Cypress.Commands.add('clicDescriptorAction', (index = 1) => { +Cypress.Commands.add('clickDescriptorAction', (index = 1) => { cy.get(`[data-cy="descriptor_actions"] .q-btn:nth-of-type(${index})`).click(); });