From 639a7bc07297181d537cc5d6bc264e104e7e3a75 Mon Sep 17 00:00:00 2001 From: pablone Date: Tue, 11 Mar 2025 08:51:30 +0100 Subject: [PATCH] feat: refs #8602 add new Cypress command for clicking buttons with icons --- test/cypress/support/commands.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 1dfd5a0f1..d7238f124 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -390,6 +390,7 @@ Cypress.Commands.add('clickButtonWith', (type, value) => { break; } }); + Cypress.Commands.add('clickButtonWithIcon', (iconClass) => { cy.waitForElement('[data-cy="descriptor_actions"]'); cy.get('[data-cy="loading-spinner"]', { timeout: 10000 }).should('not.be.visible'); @@ -399,6 +400,7 @@ Cypress.Commands.add('clickButtonWithIcon', (iconClass) => { cy.wrap($btn).click(); }); }); + Cypress.Commands.add('clickButtonWithText', (buttonText) => { cy.get('.q-btn').contains(buttonText).click(); });