Example #1
0
        public void P20_1_b14_Curriculums_Containing_a_Document_27154()
        {
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC27154");
            _test.Log(Status.Info, "Create a Document");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In Button");

            CommonSection.CreteNewCurriculumn(curriculumTitle + "TC27154");
            _test.Log(Status.Info, "Create a Curriculum");

            AdminContentDetailsPage.ClickEditandAddCurriculumContent("TC27154", DocumentTitle + "TC27154");
            _test.Log(Status.Info, "Click edit Curriculum content and Add Content");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In Button");

            CommonSection.SearchCatalog(curriculumTitle + "TC27154");
            _test.Log(Status.Info, "Enter curriculum title in global search box");
            SearchResultsPage.ClickCourseTitle(curriculumTitle + "TC27154");
            _test.Log(Status.Info, "Click on search result from catalog");
            ContentDetailsPage.Click_Enroll();
            _test.Log(Status.Info, "Click Enroll to enroll in Curriculum");
            Assert.IsTrue(ContentDetailsPage.IsCurriculumContentBlockDisplayed());
            _test.Log(Status.Pass, "Verify Curriculum Block is Dispalyed");
            ContentDetailsPage.ClickCurriculumContentBlock();
            _test.Log(Status.Info, "Click Curriculum Content Block");
            Assert.IsTrue(ContentDetailsPage.IsCurriculumContentDisplayed());
            _test.Log(Status.Pass, "Verify Curriculum Content is Displayed");
            Assert.IsTrue(ContentDetailsPage.IsCurriculumContentStatusDisplayed());
            _test.Log(Status.Pass, "Verify Curriculum Status is Displayed");
        }