2019-07-19 10:18:51 +03:00
|
|
|
# POA TokenBridge / UI-E2E
|
2019-05-31 15:54:32 +03:00
|
|
|
|
2019-07-19 10:18:51 +03:00
|
|
|
End to end tests for the POA TokenBridge [UI](../UI/README.md).
|
2019-05-09 13:03:18 +03:00
|
|
|
|
2019-05-21 10:41:52 +03:00
|
|
|
- Configure startURL, homeAccount, foreignAccount in ```config.json```
|
2019-05-09 13:03:18 +03:00
|
|
|
|
2019-05-31 15:54:32 +03:00
|
|
|
## Running
|
|
|
|
|
|
|
|
To run the bridge end-to-end tests, you just have to run:
|
|
|
|
|
|
|
|
```
|
|
|
|
./run-tests.sh
|
|
|
|
```
|
|
|
|
|
2019-05-09 13:03:18 +03:00
|
|
|
#### Tests
|
|
|
|
|
|
|
|
```
|
|
|
|
1. User is able to open main page of bridge-ui
|
|
|
|
2. Main page: foreign POA balance is displayed
|
|
|
|
3. Main page: home POA balance is displayed
|
|
|
|
|
|
|
|
4. User is able to send tokens from Home account to Foreign account
|
|
|
|
5. Home POA balance has correctly changed after transaction
|
|
|
|
6. Foreign account has received correct amount of tokens after transaction
|
|
|
|
|
|
|
|
7. User is able to send tokens from Foreign account to Home account
|
|
|
|
8. Foreign POA balance has correctly changed after transaction
|
|
|
|
9. Home account has received correct amount of tokens after transaction
|
|
|
|
```
|