public void AddUser_WhenCall_UserCouldBeUsedForLogin(string login, string password)
        {
            _addAUserPage.Open();
            _addAUserPage.CreateNewUser(login, password);

            var loginPage = new LoginPage(_addAUserPage.GetDriver());

            loginPage.Open();
            loginPage.InputCredits(login, password);
            loginPage.ClickLogin();

            Assert.IsTrue(loginPage.IsLoginSuccess());
        }
Exemplo n.º 2
0
        public void Login_UseExistingCreds_Success()
        {
            var username = _loginPage.GetExistingLogin();
            var password = _loginPage.GetExistingPassword();

            _loginPage.Open();
            _loginPage.InputCredits(username, password);
            _loginPage.ClickLogin();

            Assert.IsTrue(_loginPage.IsLoginSuccess());
        }