Example #1
0
        public void Z03_Learner_see_Recent_Contents_in_Recent_Added_Contents_Portlet_33472()
        {
            #region Create a content and access it from recommendation portlet
            CommonSection.CreateLink.Document();
            _test.Log(Status.Info, "Click on Create Document Top Menu");

            DocumentPage.Populate_DocumentData(ExtractDataExcel.MasterDic_document["Title"]);
            _test.Log(Status.Info, "Populate Document data");

            DocumentPage.ClickButton_Create();
            _test.Log(Status.Info, "Click on Create Button");

            DocumentPage.ClickButton_CheckIn();
            _test.Log(Status.Info, "Checkin the Document");

            CommonSection.Learn.Home();
            _test.Log(Status.Info, "Navigate to Homepage");

            Assert.IsTrue(HomePage.RecommendationPortlet.Access_Content(ExtractDataExcel.MasterDic_document["Title"]));

            _test.Log(Status.Info, "Assert : Pass as Recently Created Content has been accessed from recommendation portlet successfully");

            CommonSection.Manage.Recommendations();
            RecommendationsPage.ChangeShortingType_For_RecentlyAdded("most recent");
            CommonSection.Learn.Home();

            Assert.IsFalse(HomePage.RecommendationPortlet.Verify_Content_InRandom(ExtractDataExcel.MasterDic_document["Title"]));
            _test.Log(Status.Info, "Assert : Pass as Contents are displaying in random order after changing the sorting order");
            #endregion
        }