Last active
May 1, 2018 20:43
-
-
Save O5ten/2327672f08ad225af6b3aea040a04a3c to your computer and use it in GitHub Desktop.
Logout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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