Created
January 17, 2016 10:28
-
-
Save slawekradzyminski/b0183715bc23fde4526a to your computer and use it in GitHub Desktop.
This file contains 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
package org.fluentlenium.sample.tests; | |
import org.fluentlenium.adapter.FluentTestNg; | |
import org.fluentlenium.sample.pages.FacebookLoggedOutPage; | |
import org.fluentlenium.sample.pages.GroupApprovePage; | |
import org.fluentlenium.sample.support.LoadProperties; | |
import org.testng.annotations.BeforeMethod; | |
import org.testng.annotations.Test; | |
public class FacebookTests extends FluentTestNg { | |
private FacebookLoggedOutPage fbLogOutPage; | |
private GroupApprovePage groupApprovePage; | |
private static final String EMAIL = LoadProperties.user.getProperty("email"); | |
private static final String PASSWORD = LoadProperties.user.getProperty("password"); | |
@BeforeMethod | |
public void authenticate() { | |
fbLogOutPage = createPage(FacebookLoggedOutPage.class); | |
fbLogOutPage.go(); | |
fbLogOutPage.login(EMAIL, PASSWORD); | |
fbLogOutPage.verifySuccessfulLogin(); | |
} | |
@Test | |
public void acceptAllPokemons() { | |
groupApprovePage = createPage(GroupApprovePage.class); | |
groupApprovePage.go(); | |
groupApprovePage.isAt(); | |
groupApprovePage.approveAll(); | |
groupApprovePage.confirm(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment