Skip to content

Commit

Permalink
Wait for submissions POST request
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Dec 8, 2024
1 parent 94000a8 commit 42fec32
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("saveSubmissionsRequest");
cy.getBySelector("save-submission").click();
cy.wait("@saveSubmissionsRequest");
});

cy.then(() => {
Expand Down

0 comments on commit 42fec32

Please sign in to comment.