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_ValidateLanguageFilterList() { var langunges = _params["LagnungesList"].AsBsonArray; _browser.Navigate(_config.ConfigObject.Echo); Auth0LoginPage loginPage = new Auth0LoginPage(_browser); NewsRoomPage newsRoomPage = loginPage.LoginNewsRoom(_config.ConfigObject.Users.AdminUser); EchoPage echoPage = new EchoPage(_browser); echoPage.ClickOnLangnugeFilter(); Assert.True(echoPage.ValidateLanguageFilterList(langunges), "The languages in dropdown didn't match the expected result."); }