示例#1
0
        public void CreateNewUserAndUnsuccessfullyLogin()
        {
            var username = "******";
            var password = "******";

            app.Screenshot("Application Start");

            var loginPage = new LoginPage(app, platform);

            loginPage.PressNewUserButton();

            var newUserPage = new NewUserPage(app, platform);

            newUserPage.CreateNewUserWithPassword(username, password);

            loginPage.ClearUsername();
            loginPage.LoginWithUsernamePassword(username, "incorrect");

            Assert.IsNotNull(app.Query(x => x.Marked("loginPage")));
        }
示例#2
0
        public void CreateNewUserFromPromptAndLogin()
        {
            var username = "******";
            var password = "******";

            app.Screenshot("Application Start");

            var loginPage = new LoginPage(app, platform);

            loginPage.LoginWithUsernamePassword(username, password);
            loginPage.SignUpNewUserFromDialog();

            var newUserPage = new NewUserPage(app, platform);

            newUserPage.CreateNewUserWithPassword(username, password);

            loginPage.ClearUsername();
            loginPage.LoginWithUsernamePassword(username, password);
            Console.WriteLine("test");
            Assert.AreEqual(app.Query(x => x.Marked("loginPage")).Length, 0);
        }