Example #1
0
        public void TheTheUserWillNotBeAbleToJoinOtherUsersRoom(string user1, string user2)
        {
            var user2MeetingRoom = TheMeetingRoomUserIsIn(user2);

            _browserSteps.GivenInTheUsersBrowser(user1);
            _browsers[_c.CurrentUser].Click(WaitingRoomPage.JoinPrivateMeetingButton);
            _browsers[_c.CurrentUser].Driver.WaitUntilVisible(WaitingRoomPage.ContinueButton);
            _browsers[_c.CurrentUser].Driver.FindElement(WaitingRoomPage.MeetingRoomRadioButtonFor(user2MeetingRoom)).Enabled.Should().BeFalse();
            _browsers[_c.CurrentUser].Driver.FindElement(WaitingRoomPage.ContinueButton).Enabled.Should().BeFalse();
        }
Example #2
0
        public void WhenTheUserTriesToJoinAnotherUsersPrivateConsultation(string user1, string user2)
        {
            var user2MeetingRoom = TheMeetingRoomUserIsIn(user2);

            _browserSteps.GivenInTheUsersBrowser(user1);
            _browsers[_c.CurrentUser].Click(WaitingRoomPage.JoinPrivateMeetingButton);
            _browsers[_c.CurrentUser].Driver.WaitUntilVisible(WaitingRoomPage.ContinueButton);
            _browsers[_c.CurrentUser].ClickRadioButton(WaitingRoomPage.MeetingRoomRadioButtonFor(user2MeetingRoom));
            _browsers[_c.CurrentUser].Click(WaitingRoomPage.ContinueButton);
        }