public void JoinGithubPageShouldContainCreatePersonalAccountText() { new GitHubPageModel(driver).SignUp.Click(driver); Assert.IsTrue(driver.Url.Contains("/join")); string p = new GitHubPageModel(driver).CreatePersonalAccountHeader.GetText(driver); new GitHubPageModel(driver).CreatePersonalAccountHeader.GetText(driver); }
public void ResetPasswordWithUnknownEmailStartsWithCant() { new GitHubPageModel(driver).SignIn.Click(driver); new GitHubPageModel(driver).ForgetPassword.Click(driver); new GitHubPageModel(driver).EmailReset.SetText(driver, " "); new GitHubPageModel(driver).SendPassResetEmail.Click(driver); string errorCantFindEmail = new GitHubPageModel(driver).CantFindEmailErrorMsg.GetText(driver); Assert.IsTrue(errorCantFindEmail.Trim().StartsWith("Can't")); }
public void ResetPasswordWithEmptyEmailShouldDisplayCantFindEmail() { new GitHubPageModel(driver).SignIn.Click(driver); new GitHubPageModel(driver).ForgetPassword.Click(driver); new GitHubPageModel(driver).EmailReset.SetText(driver, " "); new GitHubPageModel(driver).SendPassResetEmail.Click(driver); string errorCantFindEmail = new GitHubPageModel(driver).CantFindEmailErrorMsg.GetText(driver); Assert.IsTrue(errorCantFindEmail.Contains("Can't find that email, sorry")); }