From 408aa9d5356db8a2b657f3bcb39edba2ee7a5045 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 5 Dec 2024 10:20:35 +0100 Subject: [PATCH] test: pref minor change --- test/cypress/integration/ticket/ticketList.spec.js | 2 +- test/cypress/support/commands.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/cypress/integration/ticket/ticketList.spec.js b/test/cypress/integration/ticket/ticketList.spec.js index b30b4cdad..c1d1a0655 100644 --- a/test/cypress/integration/ticket/ticketList.spec.js +++ b/test/cypress/integration/ticket/ticketList.spec.js @@ -37,7 +37,7 @@ describe('TicketList', () => { cy.dataCy('ticketSummary').should('exist'); }); - it('Client list create new client', () => { + it.only('Client list create new client', () => { cy.dataCy('vnTableCreateBtn').should('exist'); cy.dataCy('vnTableCreateBtn').click(); const data = { diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 64b37239e..21121d9df 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -111,9 +111,7 @@ Cypress.Commands.add('fillInForm', (obj, form = '.q-form > .q-card') => { switch (type) { case 'select': cy.wrap(el).type(val); - cy.get('.q-menu .q-item', { timeout: 2000 }) - .contains(val) - .click(); + cy.get('.q-menu .q-item').contains(val).click(); break; case 'date': cy.wrap(el).type(val.split('-').join(''));