Files
hapi/.github/workflows/test.yml
T
SSU-WEI HUANGandGitHub 72483229c7 fix(web): restore Ctrl+A select-all on the chat page (#1595)
* fix(web): restore Ctrl+A select-all on the chat page

Chromium's SelectAll collapses to an empty caret when the page contains
a contenteditable (the rich composer) but focus is outside it, so
Ctrl+A + Ctrl+C on the Happy page copied nothing. Take over Ctrl/Cmd+A
at window scope when focus is outside the composer/inputs and select
the message thread manually.

Also removes a duplicate property in markdown-a.test.tsx that broke
`bun typecheck` on upstream/main.

* fix(web): restrict select-all takeover to unshifted Ctrl/Cmd+A; wire e2e spec into CI

Address review findings:
- leave Ctrl+Shift+A to the browser (matches native Chromium, where
  the shift variant is unbound)
- run the composer-copy Chromium regression spec in CI alongside
  terminal-wrap-fidelity.spec.ts
- move the spec to the root e2e/ dir so the root playwright config
  picks it up
2026-08-16 22:35:53 +08:00

33 lines
1015 B
YAML

name: Test
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.14
- run: bun install
- run: bun typecheck
- run: bunx playwright install --with-deps chromium
- run: bun run test:e2e -- terminal-wrap-fidelity.spec.ts composer-copy.spec.ts
- run: bun run test
# Serial runner-integration suite: starts real detached runner/session
# process trees against an isolated temp hub, so it runs in its own job
# (never in the parallel unit-test path). See cli/vitest.integration.config.ts.
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.14
- run: bun install
- run: bun run test:cli:integration