Exemple #1
0
        public void b1_Save_Items_From_Recently_Added_34738()
        //Prerequisite - Recently added in recommendation must be Enabled

        {
            Driver.CreateNewAccount();
            _test.Log(Status.Info, "Create new user account");
            LoginPage.LoginAs(Meridian_Common.NewUserId).WithPassword("").Login();
            _test.Log(Status.Info, "Login as Learner");
            Assert.IsTrue(HomePage.RecentlyAdded.isSaveButtonDisplyed());
            _test.Log(Status.Pass, "Verify Save Button is Displayed");
            HomePage.RecentlyAdded.ClickSaveButton();
            _test.Log(Status.Info, "Click Save Button in Recently Added Portlet");

            Assert.IsTrue(HomePage.RecentlyAdded.isSaveButtonIconGreen());
            _test.Log(Status.Pass, "Verify Save Button icon is Green");
            Assert.IsTrue(HomePage.RecentlyAdded.isTooltipDisplyed("Saved"));
            _test.Log(Status.Pass, "Verify Tooltip Display Saved and the content get Saved");
            HomePage.RecentlyAdded.ClickSaveButton();
            _test.Log(Status.Info, "Click Save Button in Recently Added Portlet");
            Assert.IsFalse(HomePage.RecentlyAdded.isSaveButtonIconGreen());
            _test.Log(Status.Pass, "Verify Save Button icon is Plane");
            Assert.IsTrue(HomePage.RecentlyAdded.isTooltipDisplyed("Save"));
            _test.Log(Status.Pass, "Verify Tooltip Display Save and the content get UnSaved");
            HomePage.RecentlyAdded.ClickSaveButton();
            _test.Log(Status.Info, "Click Save Button in Recently Added Portlet");
            CommonSection.Dropdowntoggle.SavedContent();
            _test.Log(Status.Info, "Open Saved Content Form Dropdown Toggle");
            Assert.IsTrue(SavedContentPage.isSavedDataDisplayed(""));
            _test.Log(Status.Pass, "Saved content get Displayed");
            SavedContentPage.ClickSaveButton();
            _test.Log(Status.Info, "Click Save Button in Saved content Page");
            Assert.IsTrue(SavedContentPage.isToolTipDisplayed("Save"));
            _test.Log(Status.Pass, "Verify Tooltip Display Save and the content get UnSaved");
            CommonSection.Dropdowntoggle.SavedContent();
            _test.Log(Status.Info, "Open Saved Content Form Dropdown Toggle");
            Assert.IsFalse(SavedContentPage.isSavedDataDisplayed(""));
            _test.Log(Status.Pass, "Saved content is not Displayed");
        }
Exemple #2
0
        public void b4_Save_Item_Based_on_Interest_34740()
        //Prerequisite - Based on Interest in Recommendation must be Enabled
        {
            CommonSection.Logout();
            _test.Log(Status.Info, "Logout of the Site Admin Account");
            LoginPage.LoginAs("").WithPassword("").Login();
            _test.Log(Status.Info, "Login with Learner's Account");
            //CommonSection.ClickHome();
            //_test.Log(Status.Info, "Click Home From Common Section");

            Assert.IsTrue(HomePage.BasedOnYourInterest.isDisplayed());
            _test.Log(Status.Pass, "Verify Based On Your Interest Portlet is Displayed ");

            Assert.IsTrue(HomePage.BasedOnYourInterest.isSaveButtonDispalyed());
            _test.Log(Status.Pass, "Verify in Based On Your Interest Portlet Save Button is Displayed ");

            if (HomePage.BasedOnYourInterest.isSaveButtonIconGreen() == true)
            {
                Assert.IsTrue(HomePage.BasedOnYourInterest.isToolTipDisplayed("Saved"));
                _test.Log(Status.Pass, "Verify Tooltip Display Saved");

                HomePage.BasedOnYourInterest.ClickSaveButton();
                _test.Log(Status.Info, "Click on Content Save Button");

                Assert.IsFalse(HomePage.BasedOnYourInterest.isSaveButtonIconGreen());
                _test.Log(Status.Pass, "Verify Save Button icon is Plane");

                Assert.IsTrue(HomePage.BasedOnYourInterest.isToolTipDisplayed("Save"));
                _test.Log(Status.Pass, "Verify Tooltip Display Save and the content get UnSaved");
                HomePage.BasedOnYourInterest.ClickSaveButton();
                _test.Log(Status.Info, "Click on Content Save Button");
            }
            else
            {
                HomePage.BasedOnYourInterest.ClickSaveButton();
                _test.Log(Status.Info, "Click on Content Save Button");
                Assert.IsTrue(HomePage.BasedOnYourInterest.isSaveButtonIconGreen());
                _test.Log(Status.Pass, "Verify Save Button icon is Green ");
                Assert.IsTrue(HomePage.BasedOnYourInterest.isToolTipDisplayed("Saved"));
                _test.Log(Status.Pass, "Verify Tooltip Display Saved");
            }



            CommonSection.Learn.SavedContent();
            _test.Log(Status.Info, "Open Saved Content Form Dropdown Toggle");

            Assert.IsTrue(SavedContentPage.isSavedDataDisplayed(""));
            _test.Log(Status.Pass, "Verify content is Displayed");

            SavedContentPage.ClickSaveButton();
            _test.Log(Status.Info, "Click Save Button in Saved content Page");

            Assert.IsFalse(SavedContentPage.isSaveButtonIconGreen());
            _test.Log(Status.Pass, "Verify Save Button icon is Plane");

            Assert.IsTrue(SavedContentPage.isToolTipDisplayed("Save"));
            _test.Log(Status.Pass, "Verify Tooltip Display Save and the content get UnSaved");

            CommonSection.Learn.SavedContent();
            _test.Log(Status.Info, "Open Saved Content Form Dropdown Toggle");

            Assert.IsFalse(SavedContentPage.isSavedDataDisplayed(""));
            _test.Log(Status.Pass, "Saved content is not Displayed");
        }