public void tc_60101_Document_Banner_Actions_Edit_Save_and_Share() { //CommonSection.Logout(); //LoginPage.LoginAs("").WithPassword("").Login(); CommonSection.CreteNewDocuemnt(DocumentTitle + "TC60101"); _test.Log(Status.Info, "Create a Document"); AdminContentDetailsPage.ClickCheckInbutton(); _test.Log(Status.Info, "Click Check-In"); AdminContentDetailsPage.DropDownToggle.ViewAsLearner(); _test.Log(Status.Info, "Click view as Learner"); Assert.IsTrue(ContentDetailsPage.isSaveShareandEditContentbuttndisplay()); _test.Log(Status.Pass, "Verify Save, Share and Edit content button is displayed"); ContentDetailsPage.ClickEditContent_New19_2(); Assert.IsTrue(AdminContentDetailsPage.isContentopened(DocumentTitle + "TC60101")); _test.Log(Status.Pass, "Verify edit content opens admin content details page"); CommonSection.Logout(); LoginPage.LoginAs("srlearner103").WithPassword("").Login(); CommonSection.SearchCatalog(DocumentTitle + "TC60101"); _test.Log(Status.Info, "Searched created Genaral Course"); SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC60101"); _test.Log(Status.Info, "Click on Genaral Course title"); Assert.IsTrue(ContentDetailsPage.isOnlySaveandSharebuttndisplay()); ContentDetailsPage.ClickSaveButton(); Assert.IsTrue(ContentDetailsPage.isSaveButtonIconGreen()); _test.Log(Status.Pass, "Click at Green saved button "); Assert.IsTrue(ContentDetailsPage.SocialSharingDropDown("Facebook")); _test.Log(Status.Pass, "verify the facebook "); }
public void tc_54750_Edit_Content_Bundle() { //depend on 54735 CommonSection.SearchCatalog(bunbdleTitle + "_TC54735"); SearchResultsPage.ClickCourseTitle(bunbdleTitle + "_TC54735"); ContentDetailsPage.ClickEditContent_New19_2(); Assert.IsTrue(AdminContentDetailsPage.isContentopened(bunbdleTitle + "_TC54735")); Assert.IsTrue(Driver.Instance.Title == (bunbdleTitle + "_TC54735")); }
public void tc_59986_AICC_Banner_Actions_Edit_Save_and_Share() { CommonSection.SearchCatalog(AICCCourseTitle + "TC60042"); _test.Log(Status.Info, "Searched created Genaral Course"); SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC60042"); _test.Log(Status.Info, "Click on Genaral Course title"); Assert.IsTrue(ContentDetailsPage.isOnlySaveandSharebuttndisplay()); ContentDetailsPage.ClickSaveButton(); Assert.IsTrue(ContentDetailsPage.isSaveButtonIconGreen()); _test.Log(Status.Pass, "Click at Green saved button "); Assert.IsTrue(ContentDetailsPage.SocialSharingDropDown("Facebook")); _test.Log(Status.Pass, "verify the facebook "); CommonSection.Logout(); LoginPage.LoginAs("").WithPassword("").Login(); CommonSection.SearchCatalog(AICCCourseTitle + "TC60042"); SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC60042"); Assert.IsTrue(ContentDetailsPage.isSaveShareandEditContentbuttndisplay()); _test.Log(Status.Pass, "Verify Save, Share and Edit content button is displayed"); ContentDetailsPage.ClickEditContent_New19_2(); Assert.IsTrue(AdminContentDetailsPage.isContentopened(AICCCourseTitle + "TC60042")); _test.Log(Status.Pass, "Verify edit content opens admin content details page"); }