Skip to content

Commit a1b9340

Browse files
committed
fix reset form method when is try to click on the reset button
1 parent bf28f9c commit a1b9340

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/testsuite/cypress/support/form-editing.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Cypress.Commands.add("cancelForm", (formId) => {
1717

1818
Cypress.Commands.add("resetForm", (formId, managementApi, address) => {
1919
const resetButton = "#" + formId + ' a.clickable[data-operation="reset"';
20-
cy.get(resetButton).click();
20+
// the parameter "{ force: true }" is workaround for tests triggered in backgroud. For e2e testing is not required.
21+
cy.get(resetButton).click({ force: true });
2122
cy.get("body").then(($body) => {
2223
if ($body.find(".modal-footer .btn-hal.btn-primary").length) {
2324
cy.get(".modal-footer .btn-hal.btn-primary").click({ force: true });

0 commit comments

Comments
 (0)