Skip to content

chore(e2e): add permission tests and Mobile Safari screenshots - #203

Merged
Gaubee merged 2 commits into
mainfrom
chore/add-permission-tests-and-safari-screenshots
Jan 10, 2026
Merged

Gaubee merged 2 commits into
mainfrom
chore/add-permission-tests-and-safari-screenshots

Conversation

@Gaubee

@Gaubee Gaubee commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR addresses two issues raised in the code review:

1. PR #202 - Test Driven Development

Added tests documenting the manifest permission validation behavior in bridge.test.ts:

  • Verify attach stores manifest permissions correctly
  • Document permission rules (account method mapping, system method bypass)
  • Reference the forge miniapp bio_signMessage fix

Note: The actual permission rejection is tested via E2E tests since processRequest is private and MessageEvent simulation has jsdom limitations.

2. PR #200 - Mobile Safari Screenshots

Generated baseline screenshots for Mobile Safari E2E tests (83 new files):

  • e2e/__screenshots__/Mobile-Safari/ directory with all mock test baselines

Important notes:

  • CI currently runs only Mobile Chrome for speed (e2e:ci and e2e:ci:mock)
  • Safari baselines enable local testing: pnpm e2e:mock --project 'Mobile Safari'
  • Some Forge miniapp tests are skipped on Safari due to API loading timing differences

Testing

  • Bridge permission tests pass (12 tests)
  • Safari mock tests pass (108/117, 6 flaky due to miniapp loading)
  • Typecheck passes

Add tests documenting the manifest permission validation behavior:
- Verify attach stores manifest permissions correctly
- Document permission rules (account method mapping, system method bypass)
- Reference PR #202 fix for forge miniapp bio_signMessage issue
Generate baseline screenshots for Mobile Safari E2E tests.
This complements PR #200 which added Safari test configuration.

Note: Some tests are skipped or flaky on Safari due to:
- Forge miniapp API loading differences
- Input clearing behavior differences

The CI currently runs only Mobile Chrome for speed, but these
baselines enable local Safari testing for visual regression.
@Gaubee
Gaubee merged commit b6d449a into main Jan 10, 2026
5 checks passed
@Gaubee
Gaubee deleted the chore/add-permission-tests-and-safari-screenshots branch January 10, 2026 14:21
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.

1 participant