Esempio n. 1
0
 public void tc_63928_As_a_Course_manager_I_want_to_preview_an_email_for_Classroom_sections()
 {
     CommonSection.Logout();
     LoginPage.LoginAs("srcoursemanager").WithPassword("password").Login();
     CommonSection.SearchCatalog('"' + classroomcoursetitle + "_TC63322" + '"');
     SearchResultsPage.ClickCourseTitle(classroomcoursetitle + "_TC63322");
     ContentDetailsPage.ClickEditContent_New19_2();
     ManageClassroomCoursePage.Clicktab("Sections");
     ManageClassroomCoursePage.ClickSectionTitle("Section1");
     Assert.IsTrue(SectionDetailsPage.isNotificationTabDisplay());
     _test.Log(Status.Pass, "Verify Notification tab is display");
     SectionDetailsPage.ClickNotificationTab();
     _test.Log(Status.Info, "Click Notification tab");
     Assert.IsTrue(SectionDetailsPage.NotificationTab.isEmailTabledisplay());
     _test.Log(Status.Pass, "Verify Email table display in Notification tab");
     SectionDetailsPage.NotificationTab.Action.ClickEdit("FirstRecord");
     Assert.IsTrue(Driver.checkTitle("Edit Email"));
     _test.Log(Status.Pass, "Verify Edit Email page display");
     Assert.IsTrue(EditEmailPage.isPreviewButtondisplay());
     EditEmailPage.ClickPreviewbutton();
     Assert.IsTrue(EditEmailPage.isPreviewEmailModalOpen());
     Assert.IsTrue(EditEmailPage.PreviewEmailModal.isEmailTiteldisplay());
     EditEmailPage.PreviewEmailModal.ClickClose();
     Assert.IsFalse(EditEmailPage.isPreviewButtondisplay());
     _test.Log(Status.Pass, "Verify Preview Email Modal is Closed");
 }
Esempio n. 2
0
 public void tc_63916_As_an_Admin_preview_an_Email_from_Edit_workflow_20_2()
 {
     CommonSection.Administer.System.EmailManagement.SystemEvents();
     _test.Log(Status.Info, "As an Admin navigate to System >> Email Management >> System Event");
     Assert.IsTrue(SystemEventPage.isResultGriddisplay());
     _test.Log(Status.Pass, "Verify Email table is display");
     SystemEventPage.EmailResultTable.Actions.ClickEdit("FirstResult");
     Assert.IsTrue(Driver.checkTitle("Edit Email"));
     _test.Log(Status.Pass, "Verify Edit Email page display");
     Assert.IsTrue(EditEmailPage.isPreviewButtondisplay());
     EditEmailPage.ClickPreviewbutton();
     Assert.IsTrue(EditEmailPage.isPreviewEmailModalOpen());
     Assert.IsTrue(EditEmailPage.PreviewEmailModal.isEmailTiteldisplay());
     EditEmailPage.PreviewEmailModal.ClickClose();
     Assert.IsTrue(EditEmailPage.isPreviewButtondisplay());
     _test.Log(Status.Pass, "Verify Preview Email Modal is Closed");
 }
Esempio n. 3
0
        public void tc_63927_As_an_admin_I_want_to_preview_an_email_for_Classroom_sections()
        {
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "_TC63927");
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            ManageClassroomCoursePage.SelectAddDayEventCheckbox();
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
            _test.Log(Status.Info, "Set enrollment Start date to one day less from current date");
            ManageClassroomCoursePage.EnterMaximum("2");
            ManageClassroomCoursePage.SelectWaitListasYes();
            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Info, "Clcik create button");
            Assert.IsTrue(SectionDetailsPage.isNotificationTabDisplay());
            _test.Log(Status.Pass, "Verify Notification tab is display");
            SectionDetailsPage.ClickNotificationTab();
            _test.Log(Status.Info, "Click Notification tab");
            Assert.IsTrue(SectionDetailsPage.NotificationTab.isEmailTabledisplay());
            _test.Log(Status.Pass, "Verify Email table display in Notification tab");
            SectionDetailsPage.NotificationTab.Action.ClickEdit("FirstRecord");
            Assert.IsTrue(Driver.checkTitle("Edit Email"));
            _test.Log(Status.Pass, "Verify Edit Email page display");
            Assert.IsTrue(EditEmailPage.isPreviewButtondisplay());
            EditEmailPage.ClickPreviewbutton();
            Assert.IsTrue(EditEmailPage.isPreviewEmailModalOpen());
            Assert.IsTrue(EditEmailPage.PreviewEmailModal.isEmailTiteldisplay());
            EditEmailPage.PreviewEmailModal.ClickClose();
            Assert.IsFalse(EditEmailPage.isPreviewButtondisplay());
            _test.Log(Status.Pass, "Verify Preview Email Modal is Closed");

            EditEmailPage.clickBreadcrumb(classroomcoursetitle + "_TC63927");
            ContentDetailsPage.Accordians.ClickEdit_Permissions();
            EditPermissionsPage.clickAssignPermission();
            _test.Log(Status.Info, "Click Assign Permission");
            EditPermissionsPage.AssignPermissionTo("somnath course manager");
            TC63929 = true;
        }