-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improved e2e doc, regen yarn lock, improved scripts`
- Loading branch information
1 parent
2c9c330
commit 6ae31f3
Showing
4 changed files
with
11,409 additions
and
8,087 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,24 @@ | ||
### Testing | ||
# E2E Testing | ||
|
||
## Infra | ||
The tests are written using a framework called **Maestro** | ||
Maestro docs -> [link](https://maestro.mobile.dev/api-reference/commands) | ||
|
||
The tests are stored in the root of the repo under `.maestro` | ||
The `appId` at the top of each test corresponds to the app to test | ||
The app builds are uploaded to the **Maestro Cloud** | ||
Maestro cloud console -> [link](https://console.mobile.dev/) | ||
Maestro cloud docs -> [link](https://cloud.mobile.dev/) | ||
|
||
There is a workflow template you can use to quickly add other projects to the test suite | ||
The tests are stored in the root of the repo under `.maestro` | ||
There is a workflow template you can use to quickly add other projects to the test suite | ||
|
||
## Creating tests | ||
Create a flow file in the `.maestro` folder | ||
Shared flows/utils can be stored in the `.maestro/subflows` folder | ||
Ensure the flow has the correct `appId` at the top of each test | ||
|
||
Flows can be created quickly with *maestro studio* | ||
Maestro studio docs -> [link](https://maestro.mobile.dev/getting-started/maestro-studio) | ||
|
||
## Running tests | ||
- `yarn e2e` to run tests | ||
- `yarn e2e:studio` to open *maestro studio* | ||
- `yarn e2e:upload` to manually upload to maestro cloud |
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
Oops, something went wrong.