Try to fix flaky cypress test

This commit is contained in:
Daniel Egger 2024-06-19 16:24:37 +02:00
parent c7071da62b
commit de6b659ea7
2 changed files with 2 additions and 1 deletions

View File

@ -218,7 +218,7 @@ watch(selectedCourse, async () => {
<span class="inline">{{ $t("general.back") }}</span>
</router-link>
<h2 class="my-4">{{ $t("a.Termine") }}</h2>
<h2 class="my-4" data-cy="title">{{ $t("a.Termine") }}</h2>
<div class="bg-white px-4 py-2">
<section
v-if="filtersVisible"

View File

@ -3,6 +3,7 @@ import { login } from "./helpers";
function selectDropboxItem(dropboxSelector, item) {
cy.get(dropboxSelector).click();
cy.get(dropboxSelector).contains(item).click();
cy.get('[data-cy="title"]').should("contain", "Termine");
}
describe("dueDates.cy.js", () => {