WIP: fixing issues found with cypress tests

This commit is contained in:
Ivymaster
2026-06-24 16:35:07 +02:00
parent 2630a1190b
commit af7ca6b524
7 changed files with 255 additions and 234 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
BASE_URL=https://demo.dev.technikum-wien.at/demoanon
USER_NAME=demoadmin
USER_PASSWORD=Demo
LOGIN_AS_USER=demoadmin
USER_NAME=testUser
USER_PASSWORD=testPassword
LOGIN_AS_USER=testUser
@@ -81,7 +81,9 @@ context("Tempus course picker tests", () => {
waitForOk("@fetchPlanData");
tempusPage.waitForCalendarToFinishLoading();
cy.wait(1000);
cy.get("@initialEventCount").then((initialEventCount) => {
tempusPage
.getCalendarEvents()
@@ -55,7 +55,7 @@ context("Tempus event mutation tests", () => {
.getCalendarEventById(eventId)
.should("be.visible")
.rightclick();
tempusPage.getEventContextMenuOption("Raumauswahl").click();
tempusPage.getEventContextMenuOption("Raumauswahl").click({ force: true });
waitForOk("@fetchRoomSuggestions");
tempusPage
@@ -86,6 +86,8 @@ context("Tempus event mutation tests", () => {
tempusPage.waitForCalendarToFinishLoading();
cy.get("@newRoom").then((newRoom) => {
console.log(eventId)
console.log(newRoom)
cy.get("@updatedEventId").then((updatedEventId) => {
tempusPage.expectCalendarEventRoom(updatedEventId, newRoom);
@@ -131,7 +133,7 @@ context("Tempus event mutation tests", () => {
.scrollIntoView()
.should("be.visible")
.rightclick();
tempusPage.getEventContextMenuOption("Raumauswahl").click();
tempusPage.getEventContextMenuOption("Raumauswahl").click({ force: true });
waitForOk("@fetchRoomSuggestions");
tempusPage
@@ -287,7 +287,7 @@ class TempusPage {
.contains(".bootstrap-modal.show .modal-title", "Raumauswahl")
.closest(".bootstrap-modal.show");
getRaumauswahlRoomOptions = () =>
this.getRaumauswahlModal().find(".list-group-item");
this.getRaumauswahlModal().find(".list-group-item span");
getResourcesModal = () =>
cy
.get("[data-cy='resourcesAssignmentModal']")
@@ -378,6 +378,7 @@ class TempusPage {
setCurrentSemester = () => {
this.getSemesterSetterButton().click();
waitForOk("@getCurrentSemester");
};
dropEventOnCalendarPart = (eventId, partIndex, options = {}) => {