Skip to content

Commit

Permalink
feat(ui-test): improve readme (#1690)
Browse files Browse the repository at this point in the history
  • Loading branch information
arein authored Jan 2, 2024
1 parent 8b16d59 commit 7a98bb3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion apps/laboratory/tests/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Debugging
# Functional Tests

We use Playwright as our functional test runner. It's configured to try multiple permutations:

- Browsers: Chromium/Firefox
- Modal flavors: default/SIWE/email

## Running Tests

- `npx playwright test` to run in default mode (make sure your `.env` is set up)
- `npm run playwright:debug` to step by step see what the tests are doing

## Debugging

For scenarios when tests pass locally but not remotely you can `await this.page.screenshot({ path: './screenshots/wallet.png' })` and the screenshot will be uploaded to GitHub Actions.

3 comments on commit 7a98bb3

@vercel
Copy link

@vercel vercel bot commented on 7a98bb3 Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 7a98bb3 Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 7a98bb3 Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.