test: fix cypress tests

This commit is contained in:
Daniel Egger 2023-11-08 08:28:30 +01:00
parent 0ee783219b
commit a2e324d2a8
2 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ describe("assignmentTrainer.cy.js", () => {
).click(); ).click();
cy.get('[data-cy="Student1"]').should("contain", "Bewertung freigegeben"); cy.get('[data-cy="Student1"]').should("contain", "Bewertung freigegeben");
cy.get('[data-cy="Student1"]').should("contain", "17 Punkte"); cy.get('[data-cy="Student1"]').should("contain", "17 von 24 Punkte");
// clicking on results page will go to last step // clicking on results page will go to last step
cy.get('[data-cy="Student1"]').find('[data-cy="show-results"]').click(); cy.get('[data-cy="Student1"]').find('[data-cy="show-results"]').click();

View File

@ -25,8 +25,8 @@ describe("dashboardSupervisor.cy.js", () => {
it("contains correct numbers", () => { it("contains correct numbers", () => {
// we have no completed assignments, but some are in progress // we have no completed assignments, but some are in progress
// -> makes sure that the numbers are correct // -> makes sure that the numbers are correct
getDashboardStatistics("assignments.completed").should("have.text", "0"); getDashboardStatistics("assignments.completed").should("have.text", "1");
getDashboardStatistics("assignments.passed").should("have.text", "0%"); getDashboardStatistics("assignments.passed").should("have.text", "34%");
}); });
it("contains correct details link", () => { it("contains correct details link", () => {