Skip to content

Commit

Permalink
fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
henryoforeh-dev committed Oct 20, 2023
1 parent 9a679fe commit 9817da7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions services/core-web/cypress/e2e/majorprojects.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ describe("Major Projects", () => {

it("should upload a document successfully", () => {

cy.intercept("PATCH", "/documents/**").as("patchRequest");
cy.intercept("GET", "/mines/documents/upload/**").as("getRequest1");
cy.intercept("GET", "/mines/documents/upload/**").as("getRequest2");
cy.intercept("GET", `${Cypress.env("CYPRESS_API_URL")}/mines/documents/upload/**`).as("getRequest");

// Access the file input element and attach a file from the fixtures directory.
cy.get('input[type="file"]').scrollIntoView().attachFile('dummy.pdf');

cy.wait(["@patchRequest", "@getRequest1", "@getRequest2"], { timeout: 25000 });
cy.wait("@getRequest", { timeout: 25000 });

cy.get('.filepond--file-status-main').should('have.text', 'Upload complete');

Expand Down

0 comments on commit 9817da7

Please sign in to comment.