public void WhenTheParticipantAcceptsTheVhoCall(string user) { _browserSteps.GivenInTheUsersBrowser(user); Thread.Sleep(TimeSpan.FromSeconds(SecondsWaitToCallAndAnswer)); _browsers[_c.CurrentUser].TextOf(PrivateCallPopupPage.IncomingCallMessage).Should().Contain("Video hearings officer"); _browsers[_c.CurrentUser].Click(PrivateCallPopupPage.AcceptPrivateCall); }
public void WhenTheyLeaveTheConsultationRoom(string user) { _browserSteps.GivenInTheUsersBrowser(user); _browsers[_c.CurrentUser].Click(PrivateConsultationRoomPage.LeavePrivateConsultationButton); _browsers[_c.CurrentUser].Driver.WaitUntilVisible(PrivateConsultationRoomPage.ConfirmLeavePrivateConsultationButton).Click(); _browsers[_c.CurrentUser].Driver.WaitUntilVisible(JudgeWaitingRoomPage.HearingTitle).Displayed.Should().BeTrue(); }
public void WhenTheUserAcceptsThePrivateConsultation(string user, string from) { _browserSteps.GivenInTheUsersBrowser(user); Thread.Sleep(TimeSpan.FromSeconds(SecondsWaitToCallAndAnswer)); var fromUser = Users.GetUserFromText(from, _c.Test.Users); _browsers[_c.CurrentUser].Driver.WaitUntilVisible(PrivateCallPopupPage.IncomingCallMessage).Text.Should().Contain(fromUser.Display_name); _browsers[_c.CurrentUser].Click(PrivateCallPopupPage.AcceptPrivateCall); }
public void TheVhoInstantMessagesTheUser(string user) { _browserSteps.GivenInTheUsersBrowser("Video Hearings Officer"); SelectTheHearing(); SelectTheMessagesTab(); SelectTheUser(user); SendNewMessage(); }
public void ThenTheUserWillSeeOtherParticipantsStatus(string user, string name, string status) { _browserSteps.GivenInTheUsersBrowser(user); ThenTheParticipantStatusOfUserIsDisplayed(name, status); }
public void GivenAUserIsInALockedPrivateConsultationWithAnotherUser(string user1, string user2) { GivenAUserIsInPrivateConsultationWithAnotherUser(user1, user2); _browserSteps.GivenInTheUsersBrowser(user1); _browsers[_c.CurrentUser].Click(PrivateConsultationRoomPage.LockButton); _browsers[_c.CurrentUser].Driver.WaitUntilVisible(PrivateConsultationRoomPage.LockedBadge); }
public void ThenParticipantsCanSeeTheOtherParticipants(string user) { _browserSteps.GivenInTheUsersBrowser(user); new VerifyVideoIsPlayingBuilder(_browsers[_c.CurrentUser]).Feed(HearingRoomPage.ParticipantIncomingVideo); }