Skip to content

Commit

Permalink
test case optimizations
Browse files Browse the repository at this point in the history
File Upload Completion Checks: Ensured files are fully uploaded before further processing.
  • Loading branch information
msmannan00 authored and evilaliv3 committed Nov 14, 2024
1 parent 318f307 commit 04c8ac8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/cypress/e2e/15-test-admin-configure-network.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 04c8ac8

Please sign in to comment.