public void CreateReferral() { _startPage.AssertContent(); var proximityIndexPage = _startPage.ClickStart(); proximityIndexPage.AssertContent(); proximityIndexPage.EnterPostcode("CV1 2WT"); var proximityResultsPage = proximityIndexPage.ClickSearch(); proximityResultsPage.AssertContent(); var placementInformationPage = proximityResultsPage.ClickNoSuitableProvidersLink(); placementInformationPage.AssertContent(); placementInformationPage.SelectReasonNoProvider(); placementInformationPage.SelectPlacementsKnown(); var findEmployerPage = placementInformationPage.ClickContinue(); findEmployerPage.AssertContent(); findEmployerPage = findEmployerPage.EnterCompanyName("Company Name For Selection"); var detailsPage = findEmployerPage.ClickContinue(); detailsPage.AssertContent(); var opportunityBasketPage = detailsPage.ClickConfirmToOpprunityBasket(); opportunityBasketPage.AssertContent(); opportunityBasketPage.ClickFinish(); }
public void CreateReferral() { _startPage.AssertContent(); var opportunityProximityIndexPage = _startPage.ClickStart(); opportunityProximityIndexPage.AssertContent(); opportunityProximityIndexPage.EnterPostcode("CV1 2WT"); var opportunityProximityResultsPage = opportunityProximityIndexPage.ClickSearch(); opportunityProximityResultsPage.AssertContent(); opportunityProximityResultsPage.SelectProvider(); var placementInformationPage = opportunityProximityResultsPage.ClickContinue(); placementInformationPage.AssertContent(); placementInformationPage.SelectPlacementsKnown(); var findEmployerPage = placementInformationPage.ClickContinue(); findEmployerPage.AssertContent(); findEmployerPage = findEmployerPage.EnterCompanyName("Company Name For Selection"); var detailsPage = findEmployerPage.ClickContinue(); detailsPage.AssertContent(); var checkAnswersPage = detailsPage.ClickConfirm(); checkAnswersPage.AssertContent(); var opportunityBasketPage = checkAnswersPage.ClickConfirm(); opportunityBasketPage.AssertContent(); //TODO: Add the following lines back - not working due BulkUpdate added by TLWP-962 //var employerConsentPage = opportunityBasketPage.ClickContinue(); //employerConsentPage.AssertContent(); //employerConsentPage = employerConsentPage.SelectConfirmationSelected(); //var referralEmailSentPage = employerConsentPage.ClickConfirm(); //referralEmailSentPage.AssertContent(); }
public void Search() { _startPage.AssertContent(); var providerProximitySearchPostcodePage = _startPage.ClickShowAll(); providerProximitySearchPostcodePage.AssertContent(); providerProximitySearchPostcodePage.EnterPostcode("CV1 2WT"); var providerProximityResultsPage = providerProximitySearchPostcodePage.ClickSearch(); providerProximityResultsPage.AssertContent(); providerProximityResultsPage.SearchCount().Should().Be(2); providerProximityResultsPage.SelectFilter(1); providerProximityResultsPage = providerProximityResultsPage.ClickFilterResults(); Driver.Url.Should() .Be( "https://localhost:5001/all-provider-results-CV1%202WT-Business%20and%20administration"); providerProximityResultsPage.SearchCount().Should().Be(0); providerProximityResultsPage.SelectFilter(0); providerProximityResultsPage = providerProximityResultsPage.ClickFilterResults(); Driver.Url.Should() .Be( "https://localhost:5001/all-provider-results-CV1%202WT-Agriculture,%20environmental%20and%20animal%20care-Business%20and%20administration"); providerProximityResultsPage.SearchCount().Should().Be(2); providerProximityResultsPage = providerProximityResultsPage.ClickFilterRemove(); Driver.Url.Should().Be("https://localhost:5001/all-provider-results-CV1%202WT"); var startPage = providerProximityResultsPage.ClickFinish(); startPage.AssertContent(); }