Beispiel #1
0
        public void b15_As_Course_Manager_View_Files_And_Notes_For_Classroom_Section_33931()

        {
            CommonSection.Logout();
            LoginPage.LoginAs("somnath1_learner").WithPassword("").Login(); //Login as Course Manager
            #region Manage Classroom Course
            CommonSection.Manage.Training();

            TrainingPage.ManageContentPortlet.SearchForContent(classroomcoursetitle + "TC34067");
            // StringAssert.AreEqualIgnoringCase(classroomcoursetitle + "TC34067", SearchResultsPage.GetSuccessMessage(), "Error message is different");//verify  text
            TrainingPage.ClickSearchRecord(classroomcoursetitle + "TC34067");
            // StringAssert.AreEqualIgnoringCase(classroomcoursetitle + "TC34067", ClassroomCoursePage.GetSuccessMessage(), "Error message is different");//verify  text
            ManageClassroomCoursePage.Clicktab("Sections");
            _test.Log(Status.Info, "Clcik on Sections Tab");
            #endregion
            SectionsPage.ListofSections.ClickSectionTitle();
            // Assert.IsTrue(SectionDetailsPage);
            SectionDetailsPage.ClickContentTab();
            _test.Log(Status.Pass, "Verify Content tab is display");
            // Assert.IsTrue(SectionContentPage);
            Assert.IsTrue(ContentPage.ContentTab.ListFirstNotesdisplay());
            _test.Log(Status.Pass, "Verify Note is display");//Verify Files and Notes page for the sections is displayed with associated Notes and Files
            ContentPage.ContentTab.ClickAssignmentTitle();
            Assert.IsTrue(ContentPage.ContentTab.AddNoteModaldisplay());
            _test.Log(Status.Pass, "Add Note Modal is opened");// Verify the File opens and can be viewed
        }