0
0
Fork 0

test: pref minor change

This commit is contained in:
Javier Segarra 2024-12-05 10:20:35 +01:00
parent d02acf4d90
commit 408aa9d535
2 changed files with 2 additions and 4 deletions

View File

@ -37,7 +37,7 @@ describe('TicketList', () => {
cy.dataCy('ticketSummary').should('exist'); 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').should('exist');
cy.dataCy('vnTableCreateBtn').click(); cy.dataCy('vnTableCreateBtn').click();
const data = { const data = {

View File

@ -111,9 +111,7 @@ Cypress.Commands.add('fillInForm', (obj, form = '.q-form > .q-card') => {
switch (type) { switch (type) {
case 'select': case 'select':
cy.wrap(el).type(val); cy.wrap(el).type(val);
cy.get('.q-menu .q-item', { timeout: 2000 }) cy.get('.q-menu .q-item').contains(val).click();
.contains(val)
.click();
break; break;
case 'date': case 'date':
cy.wrap(el).type(val.split('-').join('')); cy.wrap(el).type(val.split('-').join(''));