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