Skip to content

Conversation

rin-st
Copy link
Member

@rin-st rin-st commented Sep 3, 2025

E2e tests for user registration + gh action.

Testing wallet: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266


To initialize playwright run in your nextjs folder (only first time)

yarn next:playwright-install

Build wallet cache. It couldn't install metamask extension (11.9.1) with latest versions of playwright/synpress so I used older versions, which use a bit older chromium and MM works fine with it

yarn next:cache-synpress

docs: https://docs.synpress.io/docs/setup-playwright


To run tests locally

yarn next:test
from root folder or yarn next:test-ui if you want to see and analyze how it looks

There's one bug though, when running yarn next:test you can meet the error Error: Cache for 08a20e3c7fc77e6ae298 does not exist. Create it first!. In that case you need to rename your cache folder name to that "does not exist" cache packages/nextjs/.cache-synpress/<cache-folder>. In my case it's 532f685e346606c2a803 to 08a20e3c7fc77e6ae298

Since the testing user is registered, to make the test work again you need to run remove user from db or run yarn db:seed

fixes: #313

Copy link

vercel bot commented Sep 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
speedrunethereum-v2 Ready Ready Preview Comment Sep 5, 2025 10:50am

@rin-st rin-st requested review from carletex and technophile-04 and removed request for carletex September 5, 2025 10:48
@rin-st rin-st marked this pull request as ready for review September 5, 2025 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gh action for testing
1 participant