Skip to content

Commit 86400e1

Browse files
committed
docs: add visual and headless local e2e instructions
1 parent 73999ea commit 86400e1

3 files changed

Lines changed: 37 additions & 1 deletion

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,24 @@ just fmt
499499
just lint
500500
```
501501
502+
### Visual E2E (Playwright)
503+
504+
From the repository root, run UI tests in a visible browser with:
505+
506+
```bash
507+
bun run --cwd packages/opencode/packages/app test:e2e:local -- --headed --project=chromium e2e/settings/settings-authentication.spec.ts
508+
bun run --cwd packages/opencode/packages/app test:e2e:local -- --ui e2e/settings/settings-authentication.spec.ts
509+
PWDEBUG=1 bun run --cwd packages/opencode/packages/app test:e2e:local -- --headed --project=chromium e2e/settings/settings-authentication.spec.ts
510+
```
511+
512+
Headless run (default Playwright mode):
513+
514+
```bash
515+
bun run --cwd packages/opencode/packages/app test:e2e:local -- --project=chromium e2e/settings/settings-authentication.spec.ts
516+
```
517+
518+
Use `test:e2e:local` for local harness/sandbox provisioning. Plain `test:e2e` expects a backend that is already running at the configured Playwright host/port.
519+
502520
> **Note:** The git hooks automatically sync `README.md` to npm package directories on commit.
503521
504522
## Architecture

packages/core/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,24 @@ just fmt
499499
just lint
500500
```
501501
502+
### Visual E2E (Playwright)
503+
504+
From the repository root, run UI tests in a visible browser with:
505+
506+
```bash
507+
bun run --cwd packages/opencode/packages/app test:e2e:local -- --headed --project=chromium e2e/settings/settings-authentication.spec.ts
508+
bun run --cwd packages/opencode/packages/app test:e2e:local -- --ui e2e/settings/settings-authentication.spec.ts
509+
PWDEBUG=1 bun run --cwd packages/opencode/packages/app test:e2e:local -- --headed --project=chromium e2e/settings/settings-authentication.spec.ts
510+
```
511+
512+
Headless run (default Playwright mode):
513+
514+
```bash
515+
bun run --cwd packages/opencode/packages/app test:e2e:local -- --project=chromium e2e/settings/settings-authentication.spec.ts
516+
```
517+
518+
Use `test:e2e:local` for local harness/sandbox provisioning. Plain `test:e2e` expects a backend that is already running at the configured Playwright host/port.
519+
502520
> **Note:** The git hooks automatically sync `README.md` to npm package directories on commit.
503521
504522
## Architecture

packages/opencode

0 commit comments

Comments
 (0)