public void ThenThePrivateConsultationLinkIsNotVisible(string text) { _browsers[_c.CurrentUser].Refresh(); Thread.Sleep(TimeSpan.FromSeconds(SecondsWaitForTheLinkToAppear)); var user = Users.GetUserFromText(text, _c.Test.Users); var participantId = _c.Test.ConferenceParticipants.First(x => x.Username.ToLower().Contains(user.Username.ToLower())).Id; _browsers[_c.CurrentUser].Driver.WaitUntilElementNotVisible(ParticipantListPanel.PrivateConsultationLink(participantId)).Should().BeTrue(); }
public void WhenTheUserStartsAPrivateConsultationWithIndividual(string text) { _browsers[_c.CurrentUser].Driver.WaitUntilVisible(WaitingRoomPage.TimePanel).Displayed.Should().BeTrue(); Thread.Sleep(TimeSpan.FromSeconds(SecondsWaitToCallAndAnswer)); var user = Users.GetUserFromText(text, _c.Test.Users); var participant = _c.Test.ConferenceParticipants.First(x => x.Username.ToLower().Contains(user.Username.ToLower())); _browsers[_c.CurrentUser].ClickLink(ParticipantListPanel.PrivateConsultationLink(participant.Id)); _browsers[_c.CurrentUser].Driver.WaitUntilVisible(PrivateCallPopupPage.OutgoingCallMessage).Text.Should().Contain(participant.Name); }