Example #1
0
        public void a22_Enroll_User_In_A_Paid_Section_33597()
        {
            #region Create A Paid Classroom Course Section

            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC33597");
            _test.Log(Status.Pass, "New Classroom Course Created");
            Assert.IsTrue(Driver.comparePartialString("The item was created.", ClassroomCoursePage.GetSuccessMessage()));
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            // ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(3);
            ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("30");
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");

            ManageClassroomCoursePage.CreateSection.Create();
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
            _test.Log(Status.Pass, "Create New Course Section and Event");
            ManageClassroomCoursePage.Sectiontab.ClickManageEnrollment();
            ManageClassroomCoursePage.SectionDetailTab();
            ManageClassroomCoursePage.setCostForSection();
            #endregion

            ManageClassroomCoursePage.SearchForContent(classroomcoursetitle + "TC33597");
            _test.Log(Status.Pass, "Search For Classroom Course");
            ClassroomCourseDetailsPage.addToCart();
            _test.Log(Status.Pass, "User Purchasing The Classroom Course");
            ManageClassroomCoursePage.SearchForContent(classroomcoursetitle + "TC33597");
            Assert.IsTrue(ClassroomCourseDetailsPage.verifyEnrollment());
            _test.Log(Status.Pass, "Assertion Pass : User Successfully Purchased Classroom Course and Enrolled");
            ClassroomCoursePage.DeleteClassroomCourse(classroomcoursetitle + "TC33597");
        }