Пример #1
0
        public void CreateNewUserAndUnsuccessfullyLogin()
        {
            //Arrange
            var username          = "******";
            var password          = "******";
            var incorrectPassword = "******";

            //Act
            LoginPage.PressSignUpButton();
            NewUserSignUpPage.CreateNewUserWithPassword(username, password);
            LoginPage.LoginWithUsernamePassword(username, incorrectPassword);
            LoginPage.TapTryAgainDialog();

            //Assert
            Assert.IsTrue(app.Query("Login").Length > 0);
        }
Пример #2
0
        public void CreateNewUserAndLogin()
        {
            //Arrange
            var username = _username;
            var password = "******";
            var expectedFirstPageTitle = "First Page";

            //Act
            LoginPage.PressSignUpButton();
            NewUserSignUpPage.CreateNewUserWithPassword(username, password);
            LoginPage.LoginWithUsernamePassword(username, password);

            //Assert
            var actualFirstPageTitle = FirstPage.GetTitle();

            Assert.AreEqual(expectedFirstPageTitle, actualFirstPageTitle);
        }