fix: refs #8581 update fillInForm command to include delay and remove unused default case

This commit is contained in:
Jorge Penadés 2025-03-14 11:56:53 +01:00
parent 25e60e549a
commit 94eebce445
1 changed files with 1 additions and 4 deletions
test/cypress/support

View File

@ -173,7 +173,7 @@ Cypress.Commands.add('fillInForm', (obj, opts = {}) => {
const field = obj[key];
if (!field) return;
if (typeof field == 'string')
return cy.wrap(el).type(`{selectall}{backspace}${field}`);
return cy.wrap(el).type(`{selectall}{backspace}${field}, {delay: 0}`);
const { type, val } = field;
switch (type) {
@ -191,9 +191,6 @@ Cypress.Commands.add('fillInForm', (obj, opts = {}) => {
cy.get('.q-time .q-time__clock').contains(val.m).click();
cy.get('.q-time .q-time__link').contains(val.x).click();
break;
default:
cy.wrap(el).type(`{selectall}{backspace}${val}`);
break;
}
});
});