Exemplo n.º 1
0
 public void TestNoShareLinksOnMissingGamesPage()
 {
     SeleniumExtensions.ExecuteOnMultipleBrowsers(driver =>
     {
         SignInHelper.GoToMissingGamesPage(driver);
         AssertNoShareLinks(driver);
     });
 }
Exemplo n.º 2
0
 public void TestMissingGamesLinks()
 {
     SeleniumExtensions.ExecuteOnMultipleBrowsers(driver =>
     {
         SignInHelper.GoToMissingGamesPage(driver);
         Assert.IsTrue(driver.FindElement(By.Id(SiteConstants.CachedGamesPanelId)).Displayed, "Expected cached games pane to be visible in missing games page");
         Assert.IsFalse(driver.FindElement(By.Id(SiteConstants.MissingGamesLinkId)).Displayed, "Expected missing games link to be hidden in missing games page");
     });
 }
Exemplo n.º 3
0
 public void TestMissingGames()
 {
     SeleniumExtensions.ExecuteOnMultipleBrowsers(driver =>
     {
         SignInHelper.GoToMissingGamesPage(driver);
         driver.WaitUntil(d =>
         {
             var games = TableHelper.ParseGameTable(d);
             return(games.Length >= 10 && games.All(g => g.MissingCorrelation));
         }, Invariant($"Could not verify missing games page"));
     });
 }