From ca6c0cff29bee8f8cb1b80cc75df7a9ff958d28e Mon Sep 17 00:00:00 2001 From: jtubau Date: Wed, 12 Mar 2025 08:32:45 +0100 Subject: [PATCH] refactor: refs #8422 update form input handling to select all text before typing --- test/cypress/support/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 4c28aa1ca..a3ac82739 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -179,7 +179,7 @@ Cypress.Commands.add('fillInForm', (obj, form = '.q-form > .q-card') => { cy.get('.q-time .q-time__link').contains(val.x).click(); break; default: - cy.wrap(el).clear().type(val); + cy.wrap(el).type(`{selectall}${val}`); break; } });