Update UI testing docs
This commit is contained in:
parent
153ed5444e
commit
d49a2578b2
|
@ -6,14 +6,24 @@ Please try to be as descripive as possible.
|
|||
|
||||
## For Developers
|
||||
|
||||
To run appium tests:
|
||||
### UI (Appium) tests
|
||||
|
||||
1. install appium `npm install -g appium`
|
||||
2. start appium server in new tab `appium &`
|
||||
3. start application on emulator or real device
|
||||
4. run tests `lein test`
|
||||
To run the tests:
|
||||
|
||||
To run unit tests execute:
|
||||
1. Install appium: run `npm install -g appium`
|
||||
2. Start application on emulator or real device ([more details here](https://wiki.status.im/contributing/development/building-status/#build-and-test))
|
||||
3. Start appium server in new tab: run `appium --session-override`
|
||||
4. Run `lein test`
|
||||
|
||||
Hints / Gotchas:
|
||||
|
||||
- Confirmed working using Appium version 1.6.1.
|
||||
- To find an element easily in the tests, use the `:accessibility-label` property in the respective Reagent component.
|
||||
- When querying an element by its inner text, be sure to use the whole text that the element is supposed to contain (it won't match just a part of the text).
|
||||
|
||||
### Unit tests
|
||||
|
||||
To run the unit tests execute:
|
||||
|
||||
`lein doo node test once`
|
||||
or
|
||||
|
|
Loading…
Reference in New Issue