1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/test/e2e/fixtures
PeterYinusa 3b68fc4c58
refactor add/hide token tests to use fixture (#11183)
* refactor add/hide token tests to use fixture

* refactor add/hide token tests to use fixture
2021-05-26 21:36:17 +01:00
..
address-entry Adding notification for updated seed phrase wording (#11131) 2021-05-18 15:00:34 -07:00
connected-state Adding notification for updated seed phrase wording (#11131) 2021-05-18 15:00:34 -07:00
custom-rpc Adding notification for updated seed phrase wording (#11131) 2021-05-18 15:00:34 -07:00
custom-token refactor add/hide token tests to use fixture (#11183) 2021-05-26 21:36:17 +01:00
import-ui Adding notification for updated seed phrase wording (#11131) 2021-05-18 15:00:34 -07:00
imported-account Adding notification for updated seed phrase wording (#11131) 2021-05-18 15:00:34 -07:00
localization Adding notification for updated seed phrase wording (#11131) 2021-05-18 15:00:34 -07:00
metrics-enabled Adding notification for updated seed phrase wording (#11131) 2021-05-18 15:00:34 -07:00
onboarding Refactoring metamask-responsive-ui.spec.js to use fixtures (#10866) 2021-04-15 09:58:51 -04:00
send-edit Adding notification for updated seed phrase wording (#11131) 2021-05-18 15:00:34 -07:00
threebox-enabled Adding notification for updated seed phrase wording (#11131) 2021-05-18 15:00:34 -07:00
README.md

End-to-end tests

This directory contains the fixture data used to bootstrap the individual e2e tests. Each sub-directory contains one thing:

  1. A state.json file that represents a the saved state for the extension (see Generating fixture data below)

Generating fixture data

Fixture data can be generated by following these steps:

  1. Load the unpacked extension in development or test mode
  2. Inspecting the background context of the extension
  3. Call metamaskGetState, then call copy on the results

You can then paste the contents directly in your fixture file.

copy(await metamaskGetState())