Skip to content

Latest commit

 

History

History

evm-bridge

Test (Playwright)

Make sure you have the playwright browser drivers. In app run:

pnpm exec playwright install --with-deps chromium

Wallet extension build files should be downloaded into ./wallet-dist-L1 and ./wallet-dist-L2 for e2e tests to run. For this you can use:

pnpm run test:prepare

this command required a GITHUB_TOKEN set in the .env file or specified before the command.

To generate the github token go to Your github profile > Settings > Developer Settings > Personal access token > Fine-grained tokens, then generate a new token with 'iotaledger' resource owner, 'Only selected repositories' (iota) repository access, and in repository permissions set 'Actions' to 'read-only'.

We need a build as the evm bridge app is run from the dist folder for the tests. In root run:

pnpm app build

Finally run the tests (in app working dir)

pnpm run test:e2e