public void ValidateUiComponentsExistOnPage() { var postTitle = "VIDEO:Test post article"; BsonArray components = _params["Components"].AsBsonArray; HomePage homePage = new HomePage(_browser); FaceBookconnectPage faceBookconnectPage = homePage.ClickOnConnectBtn(); HomePage homePageConnected = faceBookconnectPage.Login(_config.ConfigObject.Users.AdminUser); homePageConnected.ValidateUserProfilePic(); EditorPage editorPage = homePageConnected.ClickOnAddArticle(); ArticleBase articleBase = editorPage.ClickOnArticle(); articleBase.ClickOnMagicStick(2); articleBase.WriteTitle(postTitle); PreviewPage previewPage = articleBase.ClickOnPreviewBtn(); PostPage postPage = previewPage.ClickOnPublishBtn(); var errors = postPage.ValidateComponents(components); Assert.True(string.IsNullOrEmpty(errors), errors); }
public void Editor_Article_ValidateTagsTextBoxInsertSingleTag() { BsonArray tagExValue = _params["Tag"].AsBsonArray; _browser.Navigate(_config.Url); HomePage homePage = new HomePage(_browser); FaceBookconnectPage faceBookconnectPage = homePage.ClickOnConnectBtn(); HomePage homePageConnected = faceBookconnectPage.Login(_config.ConfigObject.Users.AdminUser); homePageConnected.ValidateUserProfilePic(); EditorPage editorPage = homePageConnected.ClickOnAddArticle(); ArticleBase articleBase = editorPage.ClickOnArticle(); articleBase.WriteTags(tagExValue); articleBase.ClickOnMagicStick(2); articleBase.WriteTitle("VIDEO:Title Title Title"); PreviewPage previewPage = articleBase.ClickOnPreviewBtn(); PostPage postPage = previewPage.ClickOnPublishBtn(); string errors = postPage.ValidateTagsOnSourcePage(tagExValue); Assert.IsTrue(string.IsNullOrEmpty(errors), errors); }