public void AttemptToLoginAtAdministratorsDashboardWithoutSuccess() { LoginPage.GoTo(); LoginPage.LoginAs("*****@*****.**").WithPassword("abcde").Login(); Driver.CloseBrowser = CloseBrowser; Assert.IsFalse(AdministratorDashboardPage.IsAt(), "Page Shouldn´t be Displayed"); }
public void AttemptToLoginAtAdministratorsDashboardWithSuccess() { LoginPage.GoTo(); LoginPage.LoginAs("*****@*****.**").WithPassword("123456").Login(); Driver.CloseBrowser = CloseBrowser; Assert.IsTrue(AdministratorDashboardPage.IsAt(), "Invalid User or Password"); }