Created
May 24, 2017 17:39
-
-
Save angelovstanton/4be0d0da6c565629c4be5f6d5c3e72b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestClass] | |
public class LoginTests | |
{ | |
private IWebDriver _driver; | |
[TestInitialize] | |
public void SetupTest() | |
{ | |
_driver = new FirefoxDriver(); | |
_driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); | |
} | |
[TestCleanup] | |
public void TeardownTest() | |
{ | |
_driver.Quit(); | |
} | |
[TestMethod] | |
public void SuccessfullyLogin_WhenLoginWithExistingUser() | |
{ | |
var loginPage = new LoginPage(_driver); | |
loginPage.Navigate(); | |
loginPage.LoginSection.Login("myemail@automatetheplanet.com", "somePassword"); | |
} | |
[TestMethod] | |
public void SuccessfullyLogin_WhenLoginWithExistingGoogleAccount() | |
{ | |
var loginPage = new LoginPage(_driver); | |
loginPage.Navigate(); | |
loginPage.ConnectWithSection.GoogleButton.Click(); | |
} | |
[TestMethod] | |
public void SignUpWithNewDefaultUser() | |
{ | |
var signUpPage = new SignUpPage(_driver); | |
signUpPage.Navigate(); | |
signUpPage.SignUpDefault("myemail@automatetheplanet.com", "somePassword"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment