Пример #1
0
            public void Editor_TV_FullFlow()
            {
                _browser.Navigate(_config.Url);
                HomePage homePage = new HomePage(_browser);

                homePage.Login(_config.ConfigObject.Users.AdminUser);
                EditorPage editorPage = homePage.ClickOnAddArticle();
                TVPage     tVPage     = editorPage.ClickOnTVTemplate();

                tVPage.WriteTitle("Test TV Template");
                tVPage.SetEmbedCode(_params["JWembedCode"].ToString());
                tVPage.DragVideo();
                tVPage.ClickOnOkBtn();
                tVPage.SetSeoDesc();
                tVPage.WriteTags(new BsonArray(new List <string>()
                {
                    "Atest", "BTest", "CTest", "DTest"
                }));
                PreviewPage previewPage = tVPage.ClickOnPreviewBtn();
                PostPage    postPage    = previewPage.ClickOnPublishBtn();

                Assert.True(postPage.ValidatePostCreated("Test TV Template"), "The post was not created.");
                var errors = postPage.ValidateComponents(_params["Components"].AsBsonArray);

                Assert.True(string.IsNullOrEmpty(errors), errors);
            }
Пример #2
0
            public void Editor_TV_ValidateEmbedCode()
            {
                _browser.Navigate(_config.Url);
                HomePage homePage = new HomePage(_browser);

                homePage.Login(_config.ConfigObject.Users.AdminUser);
                EditorPage editorPage = homePage.ClickOnAddArticle();
                TVPage     tVPage     = editorPage.ClickOnTVTemplate();

                tVPage.SetEmbedCode(_params["JWembedCode"].ToString());
                tVPage.DragVideo();
                tVPage.ClickOnOkBtn();
                Assert.True(tVPage.ValidateVideoAppear(), "The video was not appear after dragNdrop video.");
            }