public void WrongAdminUserLoginTest() { LoginPage loginPage = new LoginPage(); ServicRequestPage servicRequestPage = new ServicRequestPage(); loginPage.GoToStaff(); loginPage.LoginAs("*****@*****.**").WithPassword("test1").Login(); Assert.IsFalse(servicRequestPage.IsAt); loginPage.LoginAs("fsdagfds").WithPassword("blaaa").Login(); Assert.IsFalse(servicRequestPage.IsAt); }
public void SuccessfullAdminUserLoginTest() { LoginPage loginPage = new LoginPage(); ServicRequestPage servicRequestPage = new ServicRequestPage(); loginPage.GoToStaff(); loginPage.LoginAs("*****@*****.**").WithPassword("test").Login(); Assert.IsTrue(servicRequestPage.IsAt, "Failed to login."); if (servicRequestPage.IsAt) { loginPage.Logout(); } }