public void tc_60959_Create_External_Learning_item_from_Development_Plan_when_Auto_Approve_setting_is_True_or_ON()
 {
     CommonSection.Learn.CareerDevelopment();
     Assert.IsTrue(ProfessionalDevelopmentPage.isDevelopmentPlanportletdisplay());
     _test.Log(Status.Pass, "Verify Development plan portlet display");
     ProfessionalDevelopmentPage.DevelopmentPlan.ClickCreatePlan();
     ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.ClickAddContentDropdown();
     Assert.IsTrue(ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.ClickAddContent.isExternalLearneingoptiondisplay());
     _test.Log(Status.Pass, "Verify user can see any external learning option");
     ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.ClickAddContent.clickExternallearning();
     ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.ClickAddContent.SubmitExtrernalLearning(ExtlearningTitle);
     Assert.IsTrue(ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.isExternallearnersubmitted());
     _test.Log(Status.Pass, "Verify external learning is submitted");
     ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.ClickContentTitle(ExtlearningTitle);
     Assert.IsTrue(ContentDetailsPage.isContentPageDisplayed());
     CommonSection.Learn.Transcript();
     TranscriptPage.ClickExternalLearningTab();
     Assert.IsTrue(TranscriptPage.ExternalLearning.isTitledisplay(ExtlearningTitle));
     _test.Log(Status.Pass, "Verify external learning is display on Transcript");
     CommonSection.Administer.TrainingManagement.ClickExternalLearningRequests();
     ExternalLearningConsolePage.SearchUser("admin");
     Assert.IsTrue(ExternalLearningConsolePage.isExternalLearningdisplay(ExtlearningTitle));
     _test.Log(Status.Pass, "Verify external learning is display");
     TC60939 = true;
 }
 public void tc_60961_Create_External_Learning_item_from_Development_Plan_when_both_External_Learning_option_is_False()
 {
     CommonSection.Administer.Training.ContentConfiguration.ContentSettings();
     _test.Log(Status.Info, "Goto Administer > Training >Content Configuration>Content Settings Page");
     Assert.IsTrue(ContentSettingsPage.isExternalLearningcontenttobesubmittedforapproval("False"));
     Assert.IsFalse(ContentSettingsPage.isAutoapproveExternalLearningsubmissionsisNonedititable());
     _test.Log(Status.Pass, "Verify Auto approve External Learning submissions is Non edititable");
     CommonSection.Learn.CareerDevelopment();
     Assert.IsTrue(ProfessionalDevelopmentPage.isDevelopmentPlanportletdisplay());
     _test.Log(Status.Pass, "Verify Development plan portlet display");
     ProfessionalDevelopmentPage.DevelopmentPlan.ClickCreatePlan();
     ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.ClickAddContentDropdown();
     Assert.IsFalse(ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.ClickAddContent.isExternalLearneingoptiondisplay());
     _test.Log(Status.Pass, "Verify user can't see any external learning option");
 }
        public void tc_60963_I_want_to_go_to_Content_Detail_page_instead_of_Info_modal()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("srlearner101").WithPassword("").Login();
            CommonSection.Learn.CareerDevelopment();
            _test.Log(Status.Info, "Navigating to Career Development page");
            Assert.IsTrue(ProfessionalDevelopmentPage.isDevelopmentPlanportletdisplay());
            _test.Log(Status.Pass, "Verify Development plan portlet display");
            Assert.IsTrue(ProfessionalDevelopmentPage.DevelopmentPlan.isdeveplandisplay("New Development Plan for Somnath learner 101"));
            ProfessionalDevelopmentPage.DevelopmentPlan.ClickexistingDevplan();
            Assert.IsTrue(ProfessionalDevelopmentPage.isdevplanOpened("New Development Plan for Somnath learner 101"));
            string contenttitle = ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.getContettitle();

            ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.ClickContentTitle();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(contenttitle));
            _test.Log(Status.Pass, "Verify New content details page open for that content");
        }
        public void tc_61731_As_a_learner_I_want_to_view_description_of_content_from_development_plan()
        {
            CommonSection.Learn.CareerDevelopment();
            _test.Log(Status.Info, "Navigating to Career Development page");
            Assert.IsTrue(ProfessionalDevelopmentPage.isDevelopmentPlanportletdisplay());
            _test.Log(Status.Pass, "Verify Development plan portlet display");
            Assert.IsTrue(ProfessionalDevelopmentPage.DevelopmentPlan.isdeveplandisplay("New Development Plan for Somnath learner 101"));
            ProfessionalDevelopmentPage.DevelopmentPlan.ClickexistingDevplan();
            Assert.IsTrue(ProfessionalDevelopmentPage.isdevplanOpened("New Development Plan for Somnath learner 101"));
            string contenttitle = ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.getContettitle();

            Assert.IsTrue(ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.isviewdescriptionLinkdisplay());
            ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.ClickviewdescriptionLink();
            Assert.IsTrue(ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.isDiscriptionmodaldisplay());
            ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.CloseDiscriptionmodal();
            ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.ClickContentTitle();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(contenttitle));
            _test.Log(Status.Pass, "Verify New content details page open for that content");
        }
        public void tc_60964_I_want_to_see_and_remove_external_learning_items_from_my_plan()
        {
            CommonSection.Learn.CareerDevelopment();
            Assert.IsTrue(ProfessionalDevelopmentPage.isDevelopmentPlanportletdisplay());
            _test.Log(Status.Pass, "Verify Development plan portlet display");
            ProfessionalDevelopmentPage.DevelopmentPlan.ClickCreatePlan();
            ProfessionalDevelopmentPage.ProfecionalFocus.AddContent.clickExternallearning();
            ProfessionalDevelopmentPage.PendingDevPlan.GeneralDevelopment.ClickAddContent.SubmitExtrernalLearning(ExtlearningTitle + "TC60964");
            Assert.IsTrue(ProfessionalDevelopmentPage.ProfecionalFocus.isExternallearnersubmitted());
            _test.Log(Status.Pass, "Verify external learning is submitted");
            Assert.IsTrue(ProfessionalDevelopmentPage.ProfecionalFocus.isRemoveExternalLearningicondisplay());
            ProfessionalDevelopmentPage.ProfecionalFocus.RemoveExternalLearning();
            CommonSection.Learn.Transcript();
            TranscriptPage.ClickExternalLearningTab();
            Assert.IsTrue(TranscriptPage.ExternalLearning.isTitledisplay(ExtlearningTitle + "TC60964"));
            _test.Log(Status.Pass, "Verify external learning is display on Transcript");

            CommonSection.Administer.Training.ContentConfiguration.ContentSettings();
            _test.Log(Status.Info, "Goto Administer > Training >Content Configuration>Content Settings Page");
            Assert.IsTrue(ContentSettingsPage.isExternalLearningcontenttobesubmittedforapproval("True"));
            ContentSettingsPage.SetExternalLearningcontenttobesubmittedforapproval("False");
            ContentSettingsPage.ClickSave();
        }