Exemplo n.º 1
0
            public void Editor_FullFlow_SlideShow()
            {
                Auth0LoginPage loginPage    = new Auth0LoginPage(_browser);
                NewsRoomPage   newsRoomPage = loginPage.LoginNewsRoom(_config.ConfigObject.Users.AdminUser);
                EditorPage     editorPage   = newsRoomPage.ClickOnEditorBtn();
                BsonArray      tagExValue   = _params["Tags"].AsBsonArray;
                BsonArray      titles       = _params["Titles"].AsBsonArray;
                string         body         = _params["Body"].ToString();
                SlideShowPage  slideShow    = editorPage.ClickOnSlideShow();

                slideShow.WriteTitle("VIDEO:test slideshow template");
                slideShow.SearchImage("cats");
                slideShow.DragAndDropImages();
                slideShow.SetSubTitles(titles);
                slideShow.SetBodyTextBoxsSlide(body);
                slideShow.WriteTags(tagExValue);
                slideShow.ClickOnAscendingBtn();
                slideShow.ClickOnDscBtn();
                PreviewPage previewPage = slideShow.ClickOnPreviewBtn();
                PostPage    postPage    = previewPage.ClickOnPublishBtn();

                Assert.True(postPage.ValidatePostCreated("VIDEO:test slideshow template"), "Post was not created");
                var errors = postPage.ValidateComponents(_params["Components"].AsBsonArray);

                Assert.True(string.IsNullOrEmpty(errors), errors);
            }
        public App()
        {
            InitializeComponent();

            MainPage = new SlideShowPage();
        }