diff --git a/spec/cypress/e2e/profile_spec.cy.js b/spec/cypress/e2e/profile_spec.cy.js index 75736f87c..11d4bb086 100644 --- a/spec/cypress/e2e/profile_spec.cy.js +++ b/spec/cypress/e2e/profile_spec.cy.js @@ -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(() => {