Example #1
0
            public void Echo_ValidateStatusNew()
            {
                _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);

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

                Assert.True(echoPage.ValidateSatatus("New", title), $"The status for {title} was diffrent then New.");
            }
Example #2
0
            public void Echo_ValidateStatusPublished()
            {
                var channelIndex = _params["ChannelIndex"].AsInt32;

                _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);

                _browser.SwitchToFirstTab();
                _browser.Refresh();
                EchoPage         echoPage         = new EchoPage(_browser);
                DistributionPage distributionPage = echoPage.SelectPost(title);

                distributionPage.SelectChannelByIndex(channelIndex);
                distributionPage.ClickOnPublishBtn();
                echoPage = echoPage.ClickOnEchoBtn();
                Assert.True(echoPage.ValidateSatatus("Published", title), $"The status for {title} was diffrent then Published.");
            }