Esempio n. 1
0
 @Test
 public void hashCanStartWithDiez() {
   $("h2").shouldHave(exactText("Current hash is: ''"));
   Selenide.updateHash("#some-page");
   $("h2").shouldHave(exactText("Current hash is: '#some-page'"));
 }
Esempio n. 2
0
 @Test
 public void userCanUpdateHashWithoutReloadingThePage() {
   $("h2").shouldHave(exactText("Current hash is: ''"));
   Selenide.updateHash("some-page");
   $("h2").shouldHave(exactText("Current hash is: '#some-page'"));
 }