Skip to content

Commit

Permalink
test: update cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Sep 7, 2023
1 parent 049ae22 commit 1c8f150
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions app/cypress/e2e/cif/project-revision/edit-project-revision.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ describe("when editing a project, the project page", () => {
.contains(/milestone 1/i)
.click();
cy.setDateInPicker("Report Due Date", "1999-01-31");
cy.setDateInPicker("Date Invoice Sent to CSNR (optional)", "1999-01-31");
cy.contains("Changes saved").should("be.visible");
cy.get('[aria-label*="Substantial Completion Date"').contains(
/Jan(\.)? 01, 1999/
Expand Down Expand Up @@ -279,22 +280,22 @@ describe("when editing a project, the project page", () => {
"have.text",
"100.00 %"
);
// cy.get("#root_actualPerformanceMilestoneAmount-diffOld").should(
// "have.text",
// "$0.10"
// );
// cy.get("#root_actualPerformanceMilestoneAmount-diffNew").should(
// "have.text",
// "$0.30"
// );
// cy.get("#root_maximumPerformanceMilestoneAmount-diffOld").should(
// "have.text",
// "$0.10"
// );
// cy.get("#root_maximumPerformanceMilestoneAmount-diffNew").should(
// "have.text",
// "$0.30"
// );
cy.get("#root_actualPerformanceMilestoneAmount-diffOld").should(
"have.text",
"$0.10"
);
cy.get("#root_actualPerformanceMilestoneAmount-diffNew").should(
"have.text",
"$0.30"
);
cy.get("#root_maximumPerformanceMilestoneAmount-diffOld").should(
"have.text",
"$0.10"
);
cy.get("#root_maximumPerformanceMilestoneAmount-diffNew").should(
"have.text",
"$0.30"
);

cy.get("#root_comments-diffOld").should(
"have.text",
Expand Down

0 comments on commit 1c8f150

Please sign in to comment.