Пример #1
0
        public void WrongRepresentativeUserLoginTest()
        {
            LoginPage loginPage = new LoginPage();
            ServicRequestPage servicRequestPage = new ServicRequestPage();

            loginPage.GoToSite();
            loginPage.LoginAs("K0001_2").WithPassword("test").Login();
            Assert.IsFalse(servicRequestPage.IsAt);

            loginPage.LoginAs("*****@*****.**").WithPassword("test").Login();
            Assert.IsFalse(servicRequestPage.IsAt);
        }
Пример #2
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);
        }
Пример #3
0
        public void SuccessfullRepresentativeUserLoginTest()
        {
            LoginPage loginPage = new LoginPage();
            ServicRequestPage servicRequestPage = new ServicRequestPage();
            loginPage.GoToSite();
            loginPage.LoginAs("K0001_2").WithPassword("7WwNYocKez").Login();

            Assert.IsTrue(servicRequestPage.IsAt, "Failed to login.");

            if (servicRequestPage.IsAt)
            {
                loginPage.Logout();
            }
        }
Пример #4
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();
            }
        }
Пример #5
0
 public static void Login()
 {
     LoginPage loginPage = new LoginPage();
     loginPage.GoToSite();
     loginPage.LoginAs("K0001_2").WithPassword("7WwNYocKez").Login();
 }