示例#1
0
        public void TestUserSearchForValidPost()
        {
            var topMenu = new TopMenu(driver);

            topMenu.SearchPost(Strings.SamplePost);

            var searchScreen = new SearchScreen(driver);

            searchScreen.ValidateResults(Strings.SamplePost);
        }
示例#2
0
        public void TestUserSearchForInvalidPost()
        {
            var topMenu = new TopMenu(driver);

            topMenu.SearchPost(Strings.InvalidPost);

            var searchScreen = new SearchScreen(driver);

            searchScreen.ValidateNothingFoundError(Strings.InvalidPost);
        }
示例#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);
        }