Skip to content

Commit

Permalink
fix reset form method when is try to click on the reset button
Browse files Browse the repository at this point in the history
  • Loading branch information
kstekovi committed Aug 9, 2023
1 parent bf28f9c commit a1b9340
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/testsuite/cypress/support/form-editing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Cypress.Commands.add("cancelForm", (formId) => {

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

0 comments on commit a1b9340

Please sign in to comment.