Skip to content

Commit

Permalink
Fix "Selected file can be removed" checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippluca committed Jan 16, 2025
1 parent ec15275 commit 7ea2a93
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Geopilot.Frontend/cypress/e2e/delivery.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,11 @@ describe("Delivery tests", () => {
cy.get('[data-cy="done-step"]').should("exist");
stepIsActive("upload");

// All file types are allowed
// Selected file can be removed
addFile("deliveryFiles/ilimodels_not_conform.xml", true);
stepHasError("upload", false);

// Selected file can be removed
cy.get('[data-cy="file-remove-button"]').click();
cy.contains("invalid-type.png").should("not.exist");
cy.contains("ilimodels_not_conform").should("not.exist");
stepIsActive("upload");

// Can cancel the upload which will reset the form
Expand Down

0 comments on commit 7ea2a93

Please sign in to comment.