We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf28f9c commit ee276b3Copy full SHA for ee276b3
1 file changed
packages/testsuite/cypress/support/form-editing.ts
@@ -17,7 +17,9 @@ Cypress.Commands.add("cancelForm", (formId) => {
17
18
Cypress.Commands.add("resetForm", (formId, managementApi, address) => {
19
const resetButton = "#" + formId + ' a.clickable[data-operation="reset"';
20
- cy.get(resetButton).click();
+ // Setting the force parameter to true is a workaround turning off cypress checks whether the reset button is clickable,
21
+ // as those checks sometimes fail. Next lines check the functionality (not) invoked by the button sufficiently.
22
+ cy.get(resetButton).click({ force: true });
23
cy.get("body").then(($body) => {
24
if ($body.find(".modal-footer .btn-hal.btn-primary").length) {
25
cy.get(".modal-footer .btn-hal.btn-primary").click({ force: true });
0 commit comments