Last active
November 15, 2020 17:20
-
-
Save eliasnogueira/f3ee8d14d99c54104b16113d84349fff to your computer and use it in GitHub Desktop.
Usage example of a Data Factory in a test
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
@Test | |
void submitValidLoan() { | |
Loan validLoanData = LoanDataFactory.createLoan(); | |
LoanPage loanPage = new LoanPage(); | |
loanPage.fillName(validLoanData.getName()); | |
loanPage.fillEmail(validLoanData.getEmail()); | |
loanPage.fillAmount(validLoanData.getAmount()); | |
loanPage.fillInstallments(validLoanData.getInstallments()); | |
loanPage.clickOnSubmit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment