Skip to content

Instantly share code, notes, and snippets.

@O5ten
Last active May 1, 2018 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save O5ten/2327672f08ad225af6b3aea040a04a3c to your computer and use it in GitHub Desktop.
Save O5ten/2327672f08ad225af6b3aea040a04a3c to your computer and use it in GitHub Desktop.
Logout
public class LogoutTest extends SeleniumTestBase {
private StartPage startPage = new StartPage();
private LoggedOutPage loggedOutPage = new LoggedOutPage();
public LogoutTest() {
this.pagesToInitialize = Lists.newArrayList(startPage);
}
@Test
public void shouldEndUpOnLoggedOutPageWhenLoggedOut() {
startPage.navigateTo();
startPage.logoutUser();
assertThat("should end up at LoggedOutPage when logged out",
this.browser.getCurrentUrl(), comparesEqualTo(loggedOutPage.getUrl()));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment