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); }
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); }