public void tc_35372_Learner_Plays_Promotional_Videos_From_Document() { // CommonSection.Logout(); // LoginPage.LoginAs("").WithPassword("").Login(); //Login as regular user (Learner) CommonSection.CreteNewDocuemnt(DocumentTitle + "TC35372"); _test.Log(Status.Info, "Create A new Document"); Assert.IsTrue(ContentDetailsPage.Accordians.isPromotionalVideoPresent()); _test.Log(Status.Info, "Verify Promotional Video accordian display on RHS side"); ContentDetailsPage.Accordians.PromotionalVideo.Click_Edit(); _test.Log(Status.Info, "Click Promotional Video Edit button"); Assert.IsTrue(PromotionalVideoPage.VerifyCompenets("ULR", "Preview", "Save")); _test.Log(Status.Info, "Verify Add URL, preview section and save button are displaying in Promotional Video Page"); PromotionalVideoPage.AddNewURL(PromoURL); ////www.youtube.com/embed/Fc1P-AEaEp8 _test.Log(Status.Info, "Add a URl"); Assert.IsTrue(PromotionalVideoPage.isVideoPreviewDisplay()); _test.Log(Status.Info, "Verify video is added and preview display"); PromotionalVideoPage.Click_SaveButton(); _test.Log(Status.Info, "Click Save button"); Assert.IsTrue(Driver.comparePartialString("The changes were saved.", PromotionalVideoPage.getSuccessfulmessage())); _test.Log(Status.Info, "Verify Successful message"); PromotionalVideoPage.Click_BackButton(); _test.Log(Status.Info, "Click on Course title bread crumb"); Assert.IsTrue(ContentDetailsPage.Accordians.PromotionalVideo.isVedioPreviewDisplay()); _test.Log(Status.Info, "Verify Promotional Video preview on content details page"); CommonSection.SearchCatalog('"' + DocumentTitle + "TC35372" + '"'); // Search for Bundle that has Promotional Video _test.Log(Status.Info, "Searched" + DocumentTitle + "TC35372" + "from Catalog"); SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC35372"); // Click on Bundle Title _test.Log(Status.Info, "Clicked searched course title"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isPromotionalVideodisplay()); //Verify the Promotional Video is displayed _test.Log(Status.Pass, "Verified Promotional Video display in content details page overview tab"); }
[Test, Order(12)]//"Dolly's General Course w/ promotional video_12172018" public void a12_Learner_Plays_Promotional_Videos_From_General_Course_35375() { CommonSection.CreateLink.GeneralCourse(); _test.Log(Status.Info, "Goto Content Creation Page"); GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC35375", generalcoursetitle + "TC35375"); _test.Log(Status.Info, "A new Genaral Course Created"); Assert.IsTrue(ContentDetailsPage.Accordians.isPromotionalVideoPresent()); _test.Log(Status.Info, "Verify Promotional Video accordian display on RHS side"); ContentDetailsPage.Accordians.PromotionalVideo.Click_Edit(); _test.Log(Status.Info, "Click Promotional Video Edit button"); Assert.IsTrue(PromotionalVideoPage.VerifyCompenets("ULR", "Preview", "Save")); _test.Log(Status.Info, "Verify Add URL, preview section and save button are displaying in Promotional Video Page"); PromotionalVideoPage.AddNewURL(PromoURL); ////www.youtube.com/embed/Fc1P-AEaEp8 _test.Log(Status.Info, "Add a URl"); Assert.IsTrue(PromotionalVideoPage.isVideoPreviewDisplay()); _test.Log(Status.Info, "Verify video is added and preview display"); PromotionalVideoPage.Click_SaveButton(); _test.Log(Status.Info, "Click Save button"); PromotionalVideoPage.Click_BackButton(); _test.Log(Status.Info, "Click on Course title bread crumb"); Assert.IsTrue(ContentDetailsPage.Accordians.PromotionalVideo.isVedioPreviewDisplay()); _test.Log(Status.Info, "Verify Promotional Video preview on content details page"); ContentDetailsPage.ClickCheckInbutton(); CommonSection.Logout(); LoginPage.LoginAs("srlearner103").WithPassword("").Login(); //Login as regular user (Learner) CommonSection.SearchCatalog('"' + generalcoursetitle + "TC35375" + '"'); // Search for Bundle that has Promotional Video _test.Log(Status.Info, "Searched" + generalcoursetitle + "TC35375" + "from Catalog"); SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC35375"); // Click on Bundle Title _test.Log(Status.Info, "Clicked searched course title"); //Assert.IsTrue(ContentDetailsPage.VerifyPromotionalVideo()); //Verify the Promotional Video is displayed //_test.Log(Status.Pass, "Verified Promotional Video display in content details page"); //ContentDetailsPage.PromotionalVideo.ClickPlayButton(); //Click on Play button on Promotional Video //_test.Log(Status.Info, "Clicked Play button of Promotional video"); //Assert.IsTrue(ContentDetailsPage.PromotionalVideo.VerifyPlaysInline()); //Verify the promotional Video plays Inline on the Page //_test.Log(Status.Pass, "Verified Promotional Video is playing in Inline mode"); //Assert.IsTrue(ContentDetailsPage.PromotionalVideo.isFullScreenIconisdisabled()); //Verify the promotional Video plays on full screen //_test.Log(Status.Pass, "Verifyed the promotional Video plays on inline onle"); }
public void tc_55330_Learner_plays_a_Promotional_Video_from_Bundle() { CommonSection.CreateLink.Bundle(); CreatebundlePage.CreateBundle("Progress", bunbdleTitle + "TC55330", "Bundle Price"); Assert.IsTrue(ContentDetailsPage.Accordians.isPromotionalVideoPresent()); _test.Log(Status.Info, "Verify Promotional Video accordian display on RHS side"); ContentDetailsPage.Accordians.PromotionalVideo.Click_Edit(); _test.Log(Status.Info, "Click Promotional Video Edit button"); Assert.IsTrue(PromotionalVideoPage.VerifyCompenets("ULR", "Preview", "Save")); _test.Log(Status.Info, "Verify Add URL, preview section and save button are displaying in Promotional Video Page"); PromotionalVideoPage.AddNewURL(PromoURL); ////www.youtube.com/embed/Fc1P-AEaEp8 _test.Log(Status.Info, "Add a URl"); Assert.IsTrue(PromotionalVideoPage.isVideoPreviewDisplay()); _test.Log(Status.Info, "Verify video is added and preview display"); PromotionalVideoPage.Click_SaveButton(); _test.Log(Status.Info, "Click Save button"); Assert.IsTrue(Driver.comparePartialString("The changes were saved.", PromotionalVideoPage.getSuccessfulmessage())); _test.Log(Status.Info, "Verify Successful message"); PromotionalVideoPage.Click_BackButton(); DocumentPage.ClickButton_CheckIn(); CommonSection.Logout(); LoginPage.LoginAs("ak_learner").WithPassword("").Login(); CommonSection.SearchCatalog(bunbdleTitle + "TC55330"); // Search for Bundle that has Promotional Video _test.Log(Status.Info, "Searched" + bunbdleTitle + "TC55330" + "from Catalog"); SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC55330"); // Click on Bundle Title _test.Log(Status.Info, "Clicked searched course title"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isPromotionalVideodisplay()); // Assert.IsTrue(ContentDetailsPage.VerifyPromotionalVideo()); //Verify the Promotional Video is displayed _test.Log(Status.Pass, "Verified Promotional Video display in content details page"); //ContentDetailsPage.PromotionalVideo.ClickPlayButton(); //Click on Play button on Promotional Video //_test.Log(Status.Info, "Clicked Play button of Promotional video"); //Assert.IsTrue(ContentDetailsPage.PromotionalVideo.VerifyPlaysInline()); //Verify the promotional Video plays Inline on the Page //_test.Log(Status.Pass, "Verified Promotional Video is playing in Inline mode"); //Assert.IsTrue(ContentDetailsPage.PromotionalVideo.isFullScreenIconisdisabled()); }