Exemplo n.º 1
0
        internal void GivenIAmAtTheScreen(string screen)
        {
            const string home = "HOME";

            if (screen.ToUpperInvariant() == home && !SideBar.IsFound)
            {
                MasterPage.NavigateToHomePageUrl();
                return;
            }

            if (screen.ToUpperInvariant() == home || TestContext.Random.NextBool())
            {
                SideBar.NavItem(screen).Should().BeFound().Then().Click();
                return;
            }

            if (!HomePage.IsFound)
            {
                MasterPage.NavigateToHomePageUrl();
            }

            HomePage.Tile(screen).Should().BeFound().Then().Click();
        }