From 42fec3258e9920262c0e916e2e234b6da1e96c43 Mon Sep 17 00:00:00 2001 From: Splines Date: Sun, 8 Dec 2024 20:32:41 +0100 Subject: [PATCH] Wait for submissions POST request --- spec/cypress/e2e/profile_spec.cy.js | 3 +++ 1 file changed, 3 insertions(+) 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(() => {