Skip to content

Commit

Permalink
Wait for delete account request to have finished
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Dec 9, 2024
1 parent bc63ce5 commit 1d80266
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/cypress/e2e/vouchers_redemptions_spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ describe("User & Redemption deletion", () => {
cy.visit("/profile/edit");
cy.getBySelector("delete-account-btn").click();
cy.getBySelector("delete-account-pwd-field").type(this.user.password);

cy.intercept("POST", "/users*").as("deleteUserRequest");
cy.getBySelector("delete-account-confirm-btn").click();
cy.wait("@deleteUserRequest");

cy.then(() => {
helpers.logoutAndLoginAsTeacher(this);
Expand Down

0 comments on commit 1d80266

Please sign in to comment.