Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dlinah committed Aug 9, 2022
1 parent b64d279 commit 187fcab
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions apps/nowcasting-app/cypress/e2e/charts.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ describe("Charts", () => {

describe("National Forecast Header", () => {
it("should have correct title", () => {
cy.get(elements.NFActualPv).should("contain", "7.210");
cy.get(elements.NFNextForecastPv).should("contain", "6.615");
cy.get(elements.NFSelectedForecastPv).should("contain", "6.764");
cy.get(elements.NFActualPv).should("contain", "7.2");
cy.get(elements.NFNextForecastPv).should("contain", "6.6");
cy.get(elements.NFSelectedForecastPv).should("contain", "6.8");
});
});
describe("GSPF Chart", () => {
Expand Down Expand Up @@ -128,7 +128,7 @@ describe("Charts", () => {
.type("{rightarrow}")
.type("{rightarrow}")
.type("{rightarrow}");
cy.checkIfTimeUpdatedInUi(new Date(lastchartTime).getTime());
cy.checkIfTimeUpdatedInUi(new Date(lastchartTime).getTime(), null, "equal");
});
});
});
Expand Down

0 comments on commit 187fcab

Please sign in to comment.