public void LHN_Marketplace() { var mainMenu = new MainMenu(_driver); var marketPlacePage = new MarketPlacePage(_driver); var expectedMenuItems = new StringCollection { "Modules", "Training and Consulting Services", "Integrations", "Frontline" }; try { mainMenu.ClickMarketplace(); _test.Log(LogStatus.Info, "Navigate to Marketplace"); CollectionAssert.AreEqual(expectedMenuItems, mainMenu.GetNavLinkText(), "The Marketplace menu does not contain the correct items"); _test.Log(LogStatus.Pass, "The Marketplace menu contains the correct items"); Assert.IsTrue(marketPlacePage.IsDisplayed(), "Marketplace dashboard did not load correctly."); _test.Log(LogStatus.Pass, "Marketplace dashboard loaded correctly."); } catch (Exception e) { HandleException(e, _driver); throw; } }
public void ManageUserAccessPage_LHN_Marketplace() { var mainMenu = new MainMenu(_driver); var superSuitNav = new SuperSuitNavigation(_driver); var manageUserAccessPage = new ManageUserAccessPage(_driver); var marketPlacePage = new MarketPlacePage(_driver); var expectedMenuItems = new StringCollection { "Modules", "Training and Consulting Services", "Integrations", "Frontline" }; try { _driver.Navigate().GoToUrl(_muapUrl); manageUserAccessPage.WaitForPageToLoad(); _test.Log(LogStatus.Info, $"Navigate to the MUAP: {_muapUrl}"); superSuitNav.ClickMarketplace(); CollectionAssert.AreEqual(mainMenu.GetNavLinkText(), expectedMenuItems, "Marketplace menu did not load correctly."); _test.Log(LogStatus.Pass, "Marketplace Menu items loaded correctly."); Assert.IsTrue(marketPlacePage.IsDisplayed(), "Marketplace dashboard did not load correctly."); _test.Log(LogStatus.Pass, "Marketplace dashboard loaded correctly."); } catch (Exception e) { HandleException(e, _driver); throw; } }