Ejemplo n.º 1
0
            public void Castr_Ftb90_PublishIdPost()
            {
                _browser.Navigate("http://" + _config.Env + "." + _config.GlobalConfigObject["90Min"]["Url"]);
                HomePage homePage = new HomePage(_browser);

                homePage.Login(_config.ConfigObject.Users.RegularUser);
                PostCreator postCreator = new PostCreator(_browser);

                postCreator.CreateToDomain("90Min");
                var url = $"http://{_config.Env}.{_config.GlobalConfigObject["Ftb90"]["Url"]}";

                _browser.Navigate(url);
                HomePage homePageFtb = new HomePage(_browser);

                homePage.ClickOnConnectBtnWithCoockies();
                CastrPage castrPage = homePageFtb.GoToCastr();
                CastrPage newPosts  = new CastrPage(_browser);

                Assert.True(newPosts.SearchPostByTitle(postCreator.Title), "Post was not found under status new after published through editor-Id.");
            }