test: refs #6695 e2e better selectOption
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-02-05 07:44:14 +01:00
parent 607e33e45a
commit dbea92cb53
1 changed files with 4 additions and 4 deletions

View File

@ -148,10 +148,10 @@ Cypress.Commands.add('retryCheckItem', (ariaControl, selector, option, retries)
.first();
cy.wrap(itemAClickear).click(); // Haz clic en el elemento encontrado
} else {
throw new Error('Option not found → ', option);
// cy.get(selector, { timeout }).clear().type(option);
// let retries = 0;
// cy.retrySelectOption(selector, option, timeout, retries);
// throw new Error('Option not found → ', option);
cy.get(selector, { timeout }).clear().type(option);
let retries = 0;
cy.retrySelectOption(selector, option, timeout, retries);
}
});
});