Skip to content

Commit

Permalink
Fix flaky Cypress submission test (#725)
Browse files Browse the repository at this point in the history
* Wait for submissions POST request

* Remove plural `s`
  • Loading branch information
Splines authored Dec 9, 2024
1 parent 94000a8 commit 34a99de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/cypress/e2e/profile_spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ describe("Account settings", () => {
.selectFile("cypress/fixtures/files/manuscript.pdf", { force: true });
cy.getBySelector("file-permission-accept").click();
cy.getBySelector("upload-user-submission").click();

cy.intercept("POST", "/submissions*").as("saveSubmissionRequest");
cy.getBySelector("save-submission").click();
cy.wait("@saveSubmissionRequest");
});

cy.then(() => {
Expand Down

0 comments on commit 34a99de

Please sign in to comment.