Skip to content

Commit

Permalink
chore: improved e2e doc, regen yarn lock, improved scripts`
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanConn committed Jul 15, 2023
1 parent 2c9c330 commit 6ae31f3
Show file tree
Hide file tree
Showing 4 changed files with 11,409 additions and 8,087 deletions.
26 changes: 21 additions & 5 deletions .github/DOCS/e2e.md
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
5 changes: 3 additions & 2 deletions dapps/v2Explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"lint": "eslint .",
"start": "react-native start",
"test": "jest",
"maestro": "maestro test ../../.maestro",
"maestro:upload": "maestro cloud ./android/app/build/outputs/apk/release/app-release.apk .maestro"
"e2e": "maestro test ../../.maestro",
"e2e:studio": "maestro studio",
"e2e:upload": "maestro cloud ./android/app/build/outputs/apk/release/app-release.apk .maestro"
},
"dependencies": {
"@babel/plugin-proposal-private-methods": "^7.18.6",
Expand Down
Loading

0 comments on commit 6ae31f3

Please sign in to comment.