public void ShouldSeeLogoutSuccessDisplayed() { FormAuthenticationPage form = new FormAuthenticationPage(Driver); SecureAreaPage secure = new SecureAreaPage(Driver); secure.LogoutButton().Click(); form.IsLogoutSuccessNotificationDisplayed().Should().BeTrue(); }
public void TC0003_FormAuthentication() { const string userId = "tomsmith"; const string password = "******"; const string expectedLoginMsg = "You logged into a secure area!"; const string expectedLogoutMsg = "You logged out of the secure area!"; GuiHelper.OpenWebBrowser(); Navigation.NavToWebPageUnderTest(); HomePage.ClickFormAuthentication(); LoginPage.EnterCredentials(userId, password); SecureAreaPage.VerifyMessage(TestAssert, expectedLoginMsg); SecureAreaPage.ClickLogoutButton(); LoginPage.VerifyMessage(TestAssert, expectedLogoutMsg); GuiHelper.CloseWebBrowser(); }
public void ShouldSeeLoginSuccessNotification() { SecureAreaPage secure = new SecureAreaPage(Driver); secure.IsSuccessfulLoginNotificationDisplayed().Should().BeTrue(); }