public void CheckUserAccountBlockMessage() { //email [email protected] [email protected] //password 123Qwe@321 Oks@n@89 var signInPage = new SignInPage(_webDriver); signInPage.OpenPage() .SetEmail("*****@*****.**") .SetPassword("123Qwe@321") .ClickLoginButton(); var actualMessage = signInPage.GetUserAccountBlockMessage(); Assert.AreEqual("User account is blocked.", actualMessage); }
public void CheckSuccessfulUserAuthorization() { //email [email protected] //password @123Will@ var signInPage = new SignInPage(_webDriver); signInPage.OpenPage() .SetEmail("*****@*****.**") .SetPassword("@123Will@") .ClickLoginButton(); var result = _webDriver.Url; Assert.AreEqual("https://newbookmodels.com/explore", result); }
public void CheckSuccessfulUserLogOut() { //email [email protected] //password @123Will@ var signInPage = new SignInPage(_webDriver); signInPage.OpenPage() .SetEmail("*****@*****.**") .SetPassword("@123Will@") .ClickLoginButton(); var userLogOut = new UserLogOut(_webDriver); userLogOut.ClickMenuButton(); userLogOut.ClickLogOUtButton(); var result = _webDriver.Url; Assert.AreEqual("https://newbookmodels.com/auth/signin", result); }