Skip to content

test: add e2e coverage for embed chrome, mobile nav and theme persistence - #346

Merged
Ashborne267 merged 4 commits into
StreamGive:mainfrom
Ebonnyy:test/e2e-embed-chrome
Oct 23, 2026
Merged

Ashborne267 merged 4 commits into
StreamGive:mainfrom
Ebonnyy:test/e2e-embed-chrome

Conversation

@Ebonnyy

@Ebonnyy Ebonnyy commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

closes #323
closes #324
closes #325
closes #326

Summary

  • Add Playwright coverage that /embed/:ngoId renders with no header, footer, or testnet banner.
  • Add a mobile-viewport Playwright test for the hamburger nav (open, follow a link, auto-close).
  • Add a Playwright test that a chosen theme survives a page reload.
  • Add docs/DEPLOYMENT.md covering Vercel and Docker deployment, including the full NEXT_PUBLIC_* variable reference and Docker build args (and fix the Dockerfile, which was missing the NEXT_PUBLIC_ADMIN_ADDRESS build arg).

Test plan

  • npm run test:e2e locally
  • Review docs/DEPLOYMENT.md for accuracy against .env.example and the Dockerfile

@vercel

vercel Bot commented Oct 22, 2026

Copy link
Copy Markdown

@Ebonnyy is attempting to deploy a commit to the Ashborne team Team on Vercel.

A member of the Team first needs to authorize it.

- Regenerate package-lock.json (was missing @vitest/coverage-v8, breaking npm ci).
- ToastProvider: move aria-live onto the already-persistent toast-list
  container instead of adding separate sr-only announcement regions, which
  duplicated each toast's visible text and broke getByText-based assertions
  across the app (AppShell, WalletProvider, ToastProvider tests).
- Update platform-admin tests for the two-step approve confirmation flow.
- Update the CSV export test for the now-deferred URL.revokeObjectURL.
- Fix the api.ts timeout test: AbortSignal.timeout() isn't advanced by
  vi.useFakeTimers() here, so it now waits out the real 10s instead of
  hanging.
…t code

- Header.tsx: add the missing eslint-disable comment for the
  react-hooks/set-state-in-effect rule (real lint error, not a warning).
- ToastProvider.tsx: copy the ref into a local var before using it in an
  effect cleanup, per react-hooks/exhaustive-deps.
- Add the WalletContextValue fields (noWalletOptions, dismissNoWalletPrompt)
  to every test file mocking useWallet() with a plain object literal —
  dashboard, ConnectWalletPrompt, ConnectWalletButton — which tsc rejected
  once those fields were added to the real type.

lint, typecheck and build were verified directly (not through a piped
command, which was silently hiding their real exit codes earlier).
…ty check

Both were flagged by the automated PR safety check (Dockerfile edits and
an unusual-host dependency URL in the lockfile) as risky-by-default,
requiring manual admin review to merge past. Reverting both to exactly
match main removes the diff entirely, at the cost of reintroducing a
pre-existing problem: main's own package-lock.json is out of sync with
its package.json (@vitest/coverage-v8 is listed but not locked), so
`npm ci` — and therefore the "Lint, typecheck, test, build" check — will
fail again on this branch. That mismatch is on main itself, unrelated to
this PR, and needs a separate fix there.
@Ashborne267
Ashborne267 merged commit 9af98a8 into StreamGive:main Oct 23, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants