Test Airwallex's web app, automate following scenario:
- Launch and login to Web app.
- Click the LOG IN or 登录
- Assert user have been successfully logged in
- Navigate to Payments > Payment List
- Assert user is on Payment List.
- Click and validate the payment details.
- Clone or dowload this project from github
git clone git@github.com:mmcatt/Airwallex.git
- Installing Cypress, or Download Cypress directly
- Open Cypress and choose Airwallex project
- Click spec.js, the test will automatically run
You can change enviroments without changing code, following these instructions:
- Change base URL
Checkcypress.json
, modify"baseUrl"
- Switch between languages
To support Chinese, usingCypress.env('zh'), 'utf8')
inspec.js
for English, usingCypress.env('en'), 'utf8')
You can add more language support, and configure them incypress.json
- User data
Set user data path incypress.json
, you can modify it, or add other user's data.
usingCypress.env('user')
inspec.js