示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }