public void ThenTheNewHearingIsnTAvailableToJoinYet()
        {
            _browsers[_c.CurrentUser].TextOf(ParticipantHearingListPage.SignInDate(_c.Test.Conference.Id)).Should().Contain("Today");
            var signInTime = _browsers[_c.CurrentUser].TextOf(ParticipantHearingListPage.SignInTime(_c.Test.Conference.Id));

            signInTime = signInTime.Replace("from ", "");
            CheckIfHearingTimeIsWithinTolerance(signInTime);
        }
 public void ThenTheParticipantIsUnableToAccessTheWaitingRoom()
 {
     _browsers[_c.CurrentUser].Driver.WaitUntilElementNotVisible(ParticipantHearingListPage.SignInButton(_c.Test.Conference.Id)).Should().BeTrue();
 }
 public void ThenTheParticipantIsAbleToAccessTheWaitingRoom()
 {
     _browsers[_c.CurrentUser].Click(ParticipantHearingListPage.SignInButton(_c.Test.Conference.Id));
     _browsers[_c.CurrentUser].Retry(() => _browsers[_c.CurrentUser].Driver.Url.Trim().Should().Contain(Page.Introduction.Url), 2);
 }
 public void ProgressToNextPage()
 {
     if (_c.Test.SelfTestJourney)
     {
         WhenTheUserClicksTheCheckEquipmentButton();
     }
     else
     {
         var isJudgeOrJOH = (_c.CurrentUser.UserType == UserType.Judge || _c.CurrentUser.UserType == UserType.PanelMember || _c.CurrentUser.UserType == UserType.Winger);
         var element      = isJudgeOrJOH ? JudgeHearingListPage.StartHearingButton(_c.Test.Conference.Id) : ParticipantHearingListPage.SignInButton(_c.Test.Conference.Id);
         var tolerance    = isJudgeOrJOH ? 30 : ToleranceInMinutes * 60;
         _browsers[_c.CurrentUser].Driver.WaitUntilVisible(ParticipantHearingListPage.HearingListPageTitle).Displayed.Should().BeTrue();
         _browsers[_c.CurrentUser].ScrollTo(element);
         _browsers[_c.CurrentUser].Click(element, tolerance);
     }
 }
 public void ThenWhenTheHearingIsReadyToStartTheHearingButtonAppears()
 {
     _browsers[_c.CurrentUser].Driver.WaitUntilVisible(ParticipantHearingListPage.SignInButton(_c.Test.Conference.Id), ToleranceInMinutes * 60).Displayed.Should().BeTrue();
 }
 public void ThenTheParticipantCanSeeAListOfHearingsIncludingTheNewHearing()
 {
     _browsers[_c.CurrentUser].Driver.WaitUntilVisible(ParticipantHearingListPage.CaseNumber(_c.Test.Conference.Id)).Displayed.Should().BeTrue();
     _browsers[_c.CurrentUser].TextOf(ParticipantHearingListPage.HearingDate(_c.Test.Conference.Id)).Should().Be($"{_c.TimeZone.Adjust(_c.Test.Hearing.ScheduledDateTime).ToString(DateFormats.HearingListPageDate)}");
     _browsers[_c.CurrentUser].TextOf(ParticipantHearingListPage.HearingTime(_c.Test.Conference.Id)).Should().Be($"{_c.TimeZone.Adjust(_c.Test.Hearing.ScheduledDateTime):HH:mm}");
 }