예제 #1
0
 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);
        }
예제 #4
0
 public void TheVhoInstantMessagesTheUser(string user)
 {
     _browserSteps.GivenInTheUsersBrowser("Video Hearings Officer");
     SelectTheHearing();
     SelectTheMessagesTab();
     SelectTheUser(user);
     SendNewMessage();
 }
예제 #5
0
 public void ThenTheUserWillSeeOtherParticipantsStatus(string user, string name, string status)
 {
     _browserSteps.GivenInTheUsersBrowser(user);
     ThenTheParticipantStatusOfUserIsDisplayed(name, status);
 }
예제 #6
0
 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);
 }
예제 #7
0
 public void ThenParticipantsCanSeeTheOtherParticipants(string user)
 {
     _browserSteps.GivenInTheUsersBrowser(user);
     new VerifyVideoIsPlayingBuilder(_browsers[_c.CurrentUser]).Feed(HearingRoomPage.ParticipantIncomingVideo);
 }