Exemplo n.º 1
0
        public void TestUserSearchForValidPost()
        {
            var topMenu = new TopMenu(driver);

            topMenu.SearchPost(Strings.SamplePost);

            var searchScreen = new SearchScreen(driver);

            searchScreen.ValidateResults(Strings.SamplePost);
        }
Exemplo n.º 2
0
        public void TestUserSearchForInvalidPost()
        {
            var topMenu = new TopMenu(driver);

            topMenu.SearchPost(Strings.InvalidPost);

            var searchScreen = new SearchScreen(driver);

            searchScreen.ValidateNothingFoundError(Strings.InvalidPost);
        }
Exemplo n.º 3
0
        public void TestTopMenuComponents()
        {
            var topMenu = new TopMenu(driver);

            topMenu.ClickTwitterIcon();
            driver.Navigate(Strings.BaseURL);
            topMenu.ClickLinkedInIcon();
            driver.Navigate(Strings.BaseURL);
            topMenu.ClickHomeLink();
            topMenu.ClickAboutMeLink();
            topMenu.SearchPost(Strings.SamplePost);
        }