From 0aa43506e335bc36ef306f9de0d732d186fea638 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 29 Nov 2024 07:35:09 +0100 Subject: [PATCH] perf: move lines --- test/cypress/support/commands.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 435c40f23..072095313 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -276,8 +276,10 @@ Cypress.Commands.add('clickButtonsDescriptor', (id) => { .click(); }); -Cypress.Commands.add('openActions', (row) => { - cy.get('tbody > tr').eq(row).find('.actions > .q-btn').click(); +Cypress.Commands.add('openUserPanel', () => { + cy.get( + '.column > .q-avatar > .q-avatar__content > .q-img > .q-img__container > .q-img__image' + ).click(); }); Cypress.Commands.add('checkNotification', (text) => { @@ -290,14 +292,8 @@ Cypress.Commands.add('checkNotification', (text) => { }); }); -Cypress.Commands.add('searchByLabel', (label, value) => { - cy.get(`[label="${label}"] > .q-field > .q-field__inner`).type(`${value}{enter}`); -}); - -Cypress.Commands.add('openUserPanel', () => { - cy.get( - '.column > .q-avatar > .q-avatar__content > .q-img > .q-img__container > .q-img__image' - ).click(); +Cypress.Commands.add('openActions', (row) => { + cy.get('tbody > tr').eq(row).find('.actions > .q-btn').click(); }); Cypress.Commands.add('checkValueForm', (id, search) => { @@ -312,6 +308,10 @@ Cypress.Commands.add('checkValueSelectForm', (id, search) => { ).should('have.value', search); }); +Cypress.Commands.add('searchByLabel', (label, value) => { + cy.get(`[label="${label}"] > .q-field > .q-field__inner`).type(`${value}{enter}`); +}); + Cypress.Commands.add('dataCy', (tag, attr = 'data-cy') => { return cy.get(`[${attr}="${tag}"]`); });