1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-12 04:37:13 +01:00
metamask-extension/test/e2e/fixtures
Mark Stacey d91ce9c4b5 Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0"
This reverts commit 308033edbf, reversing
changes made to b8d71d6d1d.
2022-11-15 11:30:02 -03:30
..
address-entry Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
connected-state Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
custom-rpc Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
custom-token Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
eip-1559-v2 Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
eip-1559-v2-dapp Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
import-ui Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
import-utc-json Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
imported-account Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
localization Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
metrics-enabled Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
navigate-transactions Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
onboarding Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
send-edit Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
send-edit-v2 Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
special-settings Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
threebox-enabled Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30
README.md Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0" 2022-11-15 11:30:02 -03:30

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())