Skip to content

Tests + CI speedups: ClearLocalData, Playwright workers, PR scope, share-button e2e - #1023

Merged
Austinaminu2 merged 2 commits into
FlowwStar:mainfrom
yosemite01:fix/yosemite01-batch
Oct 18, 2026
Merged

Austinaminu2 merged 2 commits into
FlowwStar:mainfrom
yosemite01:fix/yosemite01-batch

Conversation

@yosemite01

Copy link
Copy Markdown
Contributor

Summary

Bundles fixes for four good-first-issue tickets:

  • Add tests for ClearLocalData #913 — Added __tests__/components/clear-local-data.test.tsx covering the "clear local data" control: the confirmation step gates the actual clear, only flowstar*-prefixed localStorage keys are removed, non-flowstar keys like walletId are kept, and the success toast reports the cleared count. No production code changes were needed.
  • Playwright: use more than one worker in CI #910 — playwright.config.ts: raised CI workers from 1 to 2 so the suite no longer serialises on CI.
  • CI: run Playwright on chromium-desktop only for pull requests #909 — .github/workflows/ci.yml (e2e job): on pull_request events, install only the chromium browser and run npx playwright test --project=chromium-desktop; pushes to main keep installing and running the full project matrix.
  • E2E: rewrite the stream-detail share-button test against a real mock stream #904 — e2e/contract-integration.spec.ts: the "should display share buttons on stream detail" test now connects a mock wallet (same withWallet pattern used elsewhere in e2e/) and visits /app/stream/1 (an existing mock stream from lib/mock-data.ts) instead of the nonexistent /app/stream/test-id, and asserts on getByRole('button', { name: 'Share stream' }) per lib/copy/stream-detail.ts.

Test plan

  • npm test passes, including the new clear-local-data.test.tsx cases
  • CI e2e job on a PR run only executes chromium-desktop
  • CI e2e job on a push to main still runs the full browser matrix
  • should display share buttons on stream detail passes on chromium-desktop

Closes #913
Closes #910
Closes #909
Closes #904

🤖 Generated with Claude Code

- Add Vitest coverage for the "clear local data" settings control:
  confirmation gating, flowstar*-only key removal, walletId preserved,
  and the success toast.
- Raise Playwright CI workers from 1 to 2 to stop serialising the suite.
- Run Playwright on chromium-desktop only for pull_request CI runs (full
  cross-browser matrix stays on pushes to main), and only install the
  browsers needed for each case.
- Rewrite the stream-detail share-button e2e test to visit an existing
  mock stream (id "1") with a connected wallet and assert on the actual
  "Share stream" button, instead of a nonexistent stream id.

Closes FlowwStar#913
Closes FlowwStar#910
Closes FlowwStar#909
Closes FlowwStar#904

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@drips-wave

drips-wave Bot commented Oct 18, 2026

Copy link
Copy Markdown

@yosemite01 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Austinaminu2
Austinaminu2 merged commit 203a0a0 into FlowwStar:main Oct 18, 2026
1 of 7 checks passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Oct 18, 2026
3 tasks

This branch had an error being deployed

1 failed deployment
staging — ff768f49 Deployed Oct 18, 2026 by Austinaminu2 via deploy-staging #350
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