Beispiel #1
0
            public void Castr_NavigateToCastrFromAdminPage()
            {
                _browser.Navigate(_config.Url);
                HomePage            homePage            = new HomePage(_browser);
                FaceBookconnectPage faceBookconnectPage = homePage.ClickOnConnectBtn();
                HomePage            homePageConnected   = faceBookconnectPage.Login(_config.ConfigObject.Users.AdminUser);

                homePageConnected.ValidateUserProfilePic();
                homePageConnected.HoverOverUserProfilePic();
                AdminPage adminPage = homePageConnected.ClickOnAdmin();
                CastrPage castrPage = adminPage.ClickOnCasterLink();

                Assert.True(castrPage.ValidateCasterPage());
            }
Beispiel #2
0
            public void Castr_FilterByLanguageEn()
            {
                _browser.Navigate(_config.Url);
                HomePage homePage = new HomePage(_browser);

                homePage.Login(_config.ConfigObject.Users.AdminUser);
                homePage.HoverOverUserProfilePic();
                AdminPage adminPage = homePage.ClickOnAdmin();
                CastrPage castrPage = adminPage.ClickOnCasterLink();

                castrPage.FilterByLanguage("en");
                CastrPage englishPosts = new CastrPage(_browser);
                var       errors       = englishPosts.CheckAllPostsInEnglish();

                Assert.True(string.IsNullOrEmpty(errors), errors);
            }
Beispiel #3
0
            public void Castr_FilterByType_Article()
            {
                _browser.Navigate(_config.Url);
                HomePage            homePage            = new HomePage(_browser);
                FaceBookconnectPage faceBookconnectPage = homePage.ClickOnConnectBtn();
                HomePage            homePageConnected   = faceBookconnectPage.Login(_config.ConfigObject.Users.AdminUser);

                homePageConnected.ValidateUserProfilePic();
                homePageConnected.HoverOverUserProfilePic();
                AdminPage adminPage = homePageConnected.ClickOnAdmin();
                CastrPage castrPage = adminPage.ClickOnCasterLink();

                castrPage.DeselectAllCheckBoxes();
                CastrPage ariclesPosts = castrPage.SelectType(Types.article);

                Assert.True(ariclesPosts.ValidateFilterByType(Types.article), "Not all posts was Article type");
            }