Created
March 3, 2020 15:50
-
-
Save NickBaynham/a88a9748b4b3e32130f24eb699f4feb5 to your computer and use it in GitHub Desktop.
Test for Registration Workflow that uses a Workflow Object instead of Page Objects directly
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 selfHealingExamples.tests.registration; | |
import framework.pageObjects.RegistrationForm; | |
import org.testng.annotations.Test; | |
import selfHealingExamples.workflows.RegistrationWorkflow; | |
import static org.testng.AssertJUnit.assertEquals; | |
import static org.testng.AssertJUnit.assertTrue; | |
public class RegistrationWorkflowTest extends BaseTest { | |
@Test | |
public void TestRegistrationWorkflow() { | |
RegistrationWorkflow registrationWorkflow = new RegistrationWorkflow(getDriver()); | |
assertTrue(registrationWorkflow.completeRegistration( | |
"John", | |
"Jones", | |
"JJ", | |
"Alberqurque", | |
"NM", | |
"87109", | |
false)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment