mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
E2e readme docs (#14434)
* Updated README with improvements * Fix table spacing * remove argument from flag Co-authored-by: Mark Stacey <markjstacey@gmail.com> * Rephrased chrome version sentence Co-authored-by: Mark Stacey <markjstacey@gmail.com> Co-authored-by: Mark Stacey <markjstacey@gmail.com> Co-authored-by: David Walsh <davidwalsh83@gmail.com>
This commit is contained in:
parent
dd0b34c050
commit
f32a651ad4
18
README.md
18
README.md
@ -60,9 +60,23 @@ You can run the linter by itself with `yarn lint`, and you can automatically fix
|
||||
|
||||
Our e2e test suite can be run on either Firefox or Chrome. In either case, start by creating a test build by running `yarn build:test`.
|
||||
|
||||
Firefox e2e tests can be run with `yarn test:e2e:firefox`.
|
||||
- Firefox e2e tests can be run with `yarn test:e2e:firefox`.
|
||||
|
||||
Chrome e2e tests can be run with `yarn test:e2e:chrome`, but they will only work if you have Chrome v79 installed. Update the `chromedriver` package to a version matching your local Chrome installation to run e2e tests on newer Chrome versions.
|
||||
- Chrome e2e tests can be run with `yarn test:e2e:chrome`. The `chromedriver` package major version must match the major version of your local Chrome installation. If they don't match, update whichever is behind before running Chrome e2e tests.
|
||||
|
||||
- Single e2e tests can be run with `yarn test:e2e:single test/e2e/tests/TEST_NAME.spec.js` along with the options below.
|
||||
|
||||
```console
|
||||
--browser Set the browser used; either 'chrome' or 'firefox'.
|
||||
|
||||
--leave-running Leaves the browser running after a test fails, along with anything else
|
||||
that the test used (ganache, the test dapp, etc.).
|
||||
|
||||
--retries Set how many times the test should be retried upon failure. Default is 0.
|
||||
```
|
||||
|
||||
An example for running `account-details` testcase with chrome and leaving the browser open would be:
|
||||
`yarn test:e2e:single test/e2e/tests/account-details.spec.js --browser=chrome --leave-running`
|
||||
|
||||
### Changing dependencies
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user