Example #1
0
        public void SearchPage_ResultsWithApostropheHyphenAndBrackets()
        {
            var searchPage = TestScenerios.LaunchSearchScenerio(Driver, TestScenerioSex.Male, 30);

            searchPage.SearchByTerm("'-/)}]Headache[{(\\");
            searchPage.VerifyTermHits("Headache or migraine", 1);
        }
Example #2
0
        public void SearchPage_CategoryLinkShowsWithSearchResults()
        {
            var searchPage = TestScenerios.LaunchSearchScenerio(Driver, TestScenerioSex.Male, 30);

            searchPage.SearchByTerm("Headache");
            searchPage.VerifyCategoriesLinkPresent();
        }
Example #3
0
        public void SearchPage_NoInputValidation()
        {
            var searchPage = TestScenerios.LaunchSearchScenerio(Driver, TestScenerioSex.Male, 30);

            searchPage.SearchByTerm(string.Empty);
            searchPage.VerifyNoInputValidation();
        }
Example #4
0
        public void SearchPage_SelectFirstResultStartsPathway()
        {
            var searchPage   = TestScenerios.LaunchSearchScenerio(Driver, TestScenerioSex.Male, 30);
            var questionPage = searchPage.TypeSearchTextAndSelect("Bites and Stings");

            questionPage.VerifyQuestionPageLoaded();
        }
        public void CategoryPage_CategoriesShownWhenNoSearchResults()
        {
            var searchPage   = TestScenerios.LaunchSearchScenerio(Driver, TestScenerioSex.Male, 30);
            var categoryPage = searchPage.TypeInvalidSearch();

            categoryPage.VerifyNoResultsMessage(searchPage._invalidSearchText);
        }
 public void SearchTermResults_CommonTermsReturnExpectedResult()
 {
     foreach (var testTerm in _testTerms)
     {
         var searchPage = TestScenerios.LaunchSearchScenerio(Driver, TestScenerioSex.Male, 33);
         searchPage.SearchByTerm(testTerm.Item1);
         searchPage.VerifyTermHits(testTerm.Item2, 5);
     }
 }
        public void SearchTermYieldsHits()
        {
            var searchPage = TestScenerios.LaunchSearchScenerio(_driver, TestScenerioGender.Male, 33);

            foreach (var testTerm in _testTerms)
            {
                searchPage.SearchByTerm(testTerm.Item1);
                searchPage.VerifyTermHits(testTerm.Item2, 3);
            }
        }
Example #8
0
        public void SearchPage_Displays()
        {
            var searchPage = TestScenerios.LaunchSearchScenerio(Driver, TestScenerioSex.Male, 30);

            searchPage.VerifyHeader();
        }
Example #9
0
        public void SearchPage_TabbingOrder()
        {
            var searchPage = TestScenerios.LaunchSearchScenerio(Driver, TestScenerioSex.Male, 30);

            searchPage.VerifyTabbingOrder("Bites or Stings");
        }