Пример #1
0
        public void CheckUpdatePlayer2Name()
        {
            var playInPage = new PlayInPage(_webDriver);

            playInPage.GoToPlayInPage();
            playInPage.ClickPlayer2();
            Thread.Sleep(3000);

            var actualResult = playInPage.GetPlayer2Text();

            Assert.AreEqual("ÈÃÐÎÊ 2 ()\r\n0", actualResult);
        }
Пример #2
0
        public void CheckRefreshGame()
        {
            var playInPage = new PlayInPage(_webDriver);

            playInPage.GoToPlayInPage();
            playInPage.ClickRight();
            playInPage.ClickPlayer2();
            Thread.Sleep(3000);

            Assert.IsTrue(
                playInPage.GetBottom() == "" && playInPage.GetBottomLeft() == "" && playInPage.GetBottomRight() == "" &&
                playInPage.GetCenter() == "" && playInPage.GetLeft() == "" && playInPage.GetRight() == "" && playInPage.GetTop() == "" &&
                playInPage.GetTopLeft() == "" && playInPage.GetTopRight() == "");
        }
Пример #3
0
        public void CheckUpdateScoreForAppear()
        {
            var playInPage = new PlayInPage(_webDriver);

            playInPage.GoToPlayInPage();
            playInPage.ClickPlayer2();
            playInPage.ClickRight();
            playInPage.ClickLeft();
            playInPage.ClickTopRight();
            playInPage.ClickBottomLeft();
            playInPage.ClickCenter();
            playInPage.ClickTopLeft();
            Thread.Sleep(3000);

            var actualResult = playInPage.GetScoreAppear();

            Assert.AreEqual("1", actualResult);
        }