public void ThenTheSummaryPageDisplaysTheNewHearingDetails() { for (var i = 0; i < _c.Test.CaseNames.Count; i++) { _browser.TextOf(SummaryPage.CaseName(i)).Should().Be(_c.Test.CaseNames[i]); _browser.TextOf(SummaryPage.CaseNumber(i)).Should().NotBeNull(); _browser.TextOf(SummaryPage.ScheduledDate(i)).Should().NotBeNull(); _browser.TextOf(SummaryPage.HearingId(i)).Should().NotBeNull(); _browser.TextOf(SummaryPage.ConferenceId(i)).Should().NotBeNull(); _browser.Driver.WaitUntilVisible(SummaryPage.CopyButton(i)).Displayed.Should().BeTrue(); const int expectedNumberOfParticipants = JudgesCount + DefaultData.Individuals + DefaultData.Representatives + DefaultData.Observers + DefaultData.PanelMembers; for (var j = 0; j < expectedNumberOfParticipants; j++) { _browser.TextOf(SummaryPage.ParticipantUsername(i, j)).Should().NotBeNull(); _browser.TextOf(SummaryPage.ParticipantPassword(i, j)).Should().NotBeNull(); } for (var j = 0; j < _c.Test.Endpoints; j++) { _browser.TextOf(SummaryPage.EndpointDisplayName(i, j)).Should().StartWith(DefaultData.EndpointsPrefix); _browser.TextOf(SummaryPage.EndpointSipAddress(i, j)).Should().NotBeNull(); _browser.TextOf(SummaryPage.EndpointPin(i, j)).Should().NotBeNull(); } } }