public void Echo_ValidateEnglishFilter() { var language = _params["Language"].ToString(); var languageChannel = _params["LanguageChannel"].ToString(); var channelIndex = _params["ChannelIndex"].AsInt32; _browser.Navigate(_config.ConfigObject.Echo); Auth0LoginPage loginPage = new Auth0LoginPage(_browser); NewsRoomPage newsRoomPage = loginPage.LoginNewsRoom(_config.ConfigObject.Users.AdminUser); EchoPage echoPage = new EchoPage(_browser); PostCreatorEcho postCreatorEcho = new PostCreatorEcho(_browser); string title = postCreatorEcho.CreatePost(); PostPage postPage = new PostPage(_browser); _browser.SwitchToFirstTab(); _browser.Refresh(); echoPage = new EchoPage(_browser); DistributionPage distributionPage = echoPage.SelectPost(title); distributionPage.SelectChannelByIndex(channelIndex); distributionPage.ClickOnPublishBtn(); echoPage = echoPage.ClickOnEchoBtn(); echoPage.ClickOnLangnugeFilter(); echoPage = echoPage.ClickOnLanguage(language); distributionPage = echoPage.SelectPost(title); Assert.True(distributionPage.ValidateChannelLanguage(languageChannel), $"The post {title} was not in {languageChannel}"); }
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."); }