Skip to content

Commit

Permalink
fix: e2e test values
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlhw committed Dec 15, 2024
1 parent b5d21dd commit 379e627
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/2-reviews/course.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,18 +297,18 @@ context("Home", function () {
// rating section - // TODO make this dynamic
cy.get(
"[data-test=rating-average-rating] [data-test=stats-value]",
).should("contain.text", "3.50");
).should("contain.text", "3.73");
cy.get("[data-test=rating-interesting] [data-test=stats-value]").should(
"contain.text",
"10%",
"4%",
);
cy.get("[data-test=rating-practical] [data-test=stats-value]").should(
"contain.text",
"10%",
"4%",
);
cy.get(
"[data-test=rating-gained-new-skills] [data-test=stats-value]",
).should("contain.text", "10%");
).should("contain.text", "4%");
});

it("should display accurate review counts", function () {
Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/2-reviews/professor.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,18 +263,18 @@ context("Home", function () {
// rating section - // TODO make this dynamic
cy.get(
"[data-test=rating-average-rating] [data-test=stats-value]",
).should("contain.text", "4.40");
).should("contain.text", "4.25");
cy.get("[data-test=rating-engaging] [data-test=stats-value]").should(
"contain.text",
"60%",
"45%",
);
cy.get("[data-test=rating-fair-grading] [data-test=stats-value]").should(
"contain.text",
"50%",
"40%",
);
cy.get(
"[data-test=rating-effective-teaching] [data-test=stats-value]",
).should("contain.text", "50%");
).should("contain.text", "40%");
});

it("should display accurate review counts", function () {
Expand Down

0 comments on commit 379e627

Please sign in to comment.