Instantly share code, notes, and snippets.

Embed
What would you like to do?
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