Skip to content

Commit

Permalink
Merge branch 'main' into BC-8130-browser-connectivity-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
UzaeirKhan committed Dec 13, 2024
2 parents e64f2bf + 5434e15 commit 84abd91
Showing 1 changed file with 19 additions and 28 deletions.
47 changes: 19 additions & 28 deletions cypress/support/pages/teams/pageTeams.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ class Teams {
static #teamCalanderTab = '[data-testid="team_calendar_tab"]';
static #addTeamEventButton = '[data-testid="add_team_event"]';
static #teamEventCreteModal = '[data-testid="modal_content"]';
static #teamEventTitleInput = '[data-testid="team_event_name"]';
static #teamEventStartDateTime = '[data-testid="form-datetime-input-startDate"]';
static #teamEventEndDateTime = '[data-testid="form-datetime-input-endDate"]';
static #teamEventDescriptionInput = '[data-testid="team_event_description"]';
static #teamCreateEventTitleInput = '[data-testid="create-event-name"]';
static #teamEditEventTitleInput = '[data-testid="edit-event-name"]';
static #teamCreateEventStartDateTime = '[data-testid="create-startDate"]';
static #teamCreateEventEndDateTime = '[data-testid="create-endDate"]';
static #teamCreateEventDescriptionInput = '[data-testid="create-event-description"]';
static #teamEditEventDescriptionInput = '[data-testid="edit-event-description"]';
static #teamCalendarEventDescription =
'[data-testid="team-event-calendar-description"]';
static #teamEventPlaceInput = '[data-testid="team_event_location"]';
static #teamCreateEventPlaceInput = '[data-testid="create-event-location"]';
static #teamEditEventPlaceInput = '[data-testid="edit-event-location"]';
static #teamEventSaveButton = '[data-testid="submit-btn-edit-event-modal"]';
static #teamEventEditIcon = '[data-testid="edit_team_event"]';
static #teamEventDeleteButton = '[data-testid="delete_team_event"]';
Expand All @@ -35,8 +38,7 @@ class Teams {
'[data-testid="start_video_conference_link"]';
static #teamVideoConferenceModal = '[data-testid="modal_content"]';
static #muteParticipantToggle = '[data-testid="toggle_mute_participants"]';
static #moderatorApprovalToggle =
'[data-testid="toggle_moderator_approval_required"]';
static #moderatorApprovalToggle = '[data-testid="toggle_moderator_approval_required"]';
static #allPartipantsAreModeratorToggel =
'[data-testid="toggle_all_participants_moderator"]';
static #disabledVideoCheckboxOnTeamEditpage = '[disabled=""]';
Expand Down Expand Up @@ -100,10 +102,7 @@ class Teams {
}

seeTeamEventDescription(teamEventDescription) {
cy.get(Teams.#teamCalendarEventDescription).should(
"contain",
teamEventDescription
);
cy.get(Teams.#teamCalendarEventDescription).should("contain", teamEventDescription);
}

seeVideoPartcipationButtonInTeamEvents() {
Expand Down Expand Up @@ -166,18 +165,15 @@ class Teams {
}

editTeamEventDescription(editedEventDescription) {
cy.get(Teams.#teamEventDescriptionInput)
.eq(1)
.clear()
.type(editedEventDescription);
cy.get(Teams.#teamEditEventDescriptionInput).clear().type(editedEventDescription);
}

editTeamEventPlace(editedEventPlace) {
cy.get(Teams.#teamEventPlaceInput).eq(1).clear().type(editedEventPlace);
cy.get(Teams.#teamEditEventPlaceInput).clear().type(editedEventPlace);
}

editTeamEventTitle(editedEventTitle) {
cy.get(Teams.#teamEventTitleInput).eq(1).clear().type(editedEventTitle);
cy.get(Teams.#teamEditEventTitleInput).clear().type(editedEventTitle);
}

clickOnTeamsEventEditOption() {
Expand All @@ -193,26 +189,23 @@ class Teams {
}

enterTeamEventPlace(eventPlace) {
cy.get(Teams.#teamEventPlaceInput).eq(1).type(eventPlace);
cy.get(Teams.#teamCreateEventPlaceInput).type(eventPlace);
}

enterTeamEventDescription(eventDescription) {
cy.get(Teams.#teamEventDescriptionInput).eq(1).type(eventDescription);
cy.get(Teams.#teamCreateEventDescriptionInput).type(eventDescription);
}

selectTeamEventEndDate() {
cy.get(Teams.#teamEventEndDateTime).should("be.visible");
cy.get(Teams.#teamCreateEventEndDateTime).should("be.visible");
}

selectTeamEventStartDate() {
cy.get(Teams.#teamEventStartDateTime).should("be.visible");
cy.get(Teams.#teamCreateEventStartDateTime).should("be.visible");
}

enterTeamEventTitle(eventTitle) {
cy.get(Teams.#teamEventTitleInput)
.eq(1)
.type(eventTitle, { force: true })
.wait(1000);
cy.get(Teams.#teamCreateEventTitleInput).type(eventTitle, { force: true }).wait(1000);
}

seeTeamEventCreationModal() {
Expand Down Expand Up @@ -318,9 +311,7 @@ class Teams {

canNotSeeTeamVideoCheckbox() {
cy.get(Teams.#teamOptions);
cy.contains(Teams.#testAssertionData.activateVideoMessengerText).should(
"not.exist"
);
cy.contains(Teams.#testAssertionData.activateVideoMessengerText).should("not.exist");
cy.get(Teams.#activateConfCheckbox).should("not.exist");
}

Expand Down

0 comments on commit 84abd91

Please sign in to comment.