mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
WIP: fixing issues found with cypress tests
This commit is contained in:
@@ -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 = {}) => {
|
||||
|
||||
Reference in New Issue
Block a user