From 04c8ac816133916a87f8c323421d191cad66a3c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=B9=D8=A8=D8=AF=D8=A7=D9=84=D9=85=D9=86=D8=A7=D9=86?= Date: Thu, 14 Nov 2024 23:00:45 +0500 Subject: [PATCH] test case optimizations File Upload Completion Checks: Ensured files are fully uploaded before further processing. --- client/cypress/e2e/15-test-admin-configure-network.cy.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/cypress/e2e/15-test-admin-configure-network.cy.ts b/client/cypress/e2e/15-test-admin-configure-network.cy.ts index 9147d95adf..92fcac3a32 100644 --- a/client/cypress/e2e/15-test-admin-configure-network.cy.ts +++ b/client/cypress/e2e/15-test-admin-configure-network.cy.ts @@ -30,18 +30,21 @@ describe("admin configure network", () => { fileName: "key.pem", mimeType: "application/x-pem-file" }, {"force": true}); + cy.get("#deleteKey").should('be.visible') cy.get("div.card.cert input[type=file]").selectFile({ contents: "../backend/globaleaks/tests/data/https/valid/cert.pem", fileName: "cert.pem", mimeType: "application/x-pem-file" }, {"force": true}); + cy.get("#deleteCert").should('be.visible') cy.get("div.card.chain input[type=file]").selectFile({ contents: "../backend/globaleaks/tests/data/https/valid/chain.pem", fileName: "chain.pem" }, {"force": true}); + cy.get("#deleteChain").should('be.visible') cy.get("#deleteChain").click(); cy.get("#modal-action-ok").click();