diff --git a/README.md b/README.md index d609aafd2..1a4e7ca70 100644 --- a/README.md +++ b/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