fix: update test to match new default session

This commit is contained in:
Livio Bieri 2023-10-04 21:46:18 +02:00
parent cebfbf011b
commit 4b59f052bf
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { login } from "./helpers"; import {login} from "./helpers";
// constants // constants
const COURSE_SELECT = "[data-cy=appointments-course-select]"; const COURSE_SELECT = "[data-cy=appointments-course-select]";
@ -16,7 +16,7 @@ describe("appointments.cy.js", () => {
it("preselects first course (Test Lehrgang)", () => { it("preselects first course (Test Lehrgang)", () => {
cy.visit("/course/test-lehrgang/appointments"); cy.visit("/course/test-lehrgang/appointments");
cy.get(COURSE_SELECT).should("contain", "Test Lehrgang"); cy.get(COURSE_SELECT).should("contain", "Test Lehrgang");
cy.get(SESSION_SELECT).should("contain", "Alle"); cy.get(SESSION_SELECT).should("contain", "Bern");
cy.get(CIRCLE_SELECT).should("contain", "Alle"); cy.get(CIRCLE_SELECT).should("contain", "Alle");
cy.get(".cy-single-due-date").should("have.length", 4); cy.get(".cy-single-due-date").should("have.length", 4);