Exemplo n.º 1
0
        public void UserShouldBeLoggedOn()
        {
            var page = new TwitterLogInWebPage(driver);

            page.LogIn(Users.OpenITDemoUser);

            var actualLoggedOnUser = new TwitterAccountWebPage(driver)
                                     .WaitForPageLoad()
                                     .Me;

            actualLoggedOnUser.Should().BeEquivalentTo(Users.OpenITDemoUser.Login);
        }
Exemplo n.º 2
0
        public void TweetShouldBeCreated()
        {
            var tweet = new Tweet {
                Message = $"Hello, World{new Random().Next(100_000)}!"
            };

            var page = new TwitterLogInWebPage(driver);

            page.LogIn(Users.OpenITDemoUser);

            var accountPage = new TwitterAccountWebPage(driver)
                              .WaitForPageLoad();

            accountPage.Tweet(tweet);
            accountPage.WaitForPageLoad().MyTweets.Should().Contain(tweet);
        }