예제 #1
0
            public void Echo_ValidateAuthorName()
            {
                _browser.Navigate(_config.ConfigObject.Echo);
                Auth0LoginPage  loginPage       = new Auth0LoginPage(_browser);
                NewsRoomPage    newsRoomPage    = loginPage.LoginNewsRoom(_config.ConfigObject.Users.AdminUser);
                PostCreatorEcho postCreatorEcho = new PostCreatorEcho(_browser);
                string          title           = postCreatorEcho.CreatePost();
                PostPage        postPage        = new PostPage(_browser);
                string          authorName      = postPage.GetAuthorName();

                _browser.SwitchToFirstTab();
                _browser.Refresh();
                EchoPage echoPage = new EchoPage(_browser);

                Assert.True(echoPage.ValidateAuthor(authorName, title), $"The author name for {title} was diffrent than expected.");
            }