예제 #1
0
        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);
        }
예제 #2
0
        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();
            }
        }