updated skills
This commit is contained in:
@@ -78,7 +78,9 @@ downloaded to `~/.cache/cloakbrowser/`. CI runners pre-cache it via
|
||||
- [page-object](./src/page-objects/page-object.md) — <!-- begin:auto-docs --> _(no submodules)_ <!-- end:auto-docs -->
|
||||
- [presets](./src/presets/stealth-presets.md) — Ready-made `CloakOptions` bundles for the most common cloakbrowser deployment shapes. Pulled from the official CloakBro…
|
||||
- [stealth-presets](./src/presets/stealth-presets.md) — Ready-made `CloakOptions` bundles for the most common cloakbrowser deployment shapes. Pulled from the official CloakBro…
|
||||
|
||||
<!-- end:auto-docs --> - [create-playwright-config](./src/config/create-playwright-config.md) — <!-- begin:auto-docs --> _(no submodules)_- [console-monitor](./src/console-monitor/console-monitor.md) — <!-- begin:auto-docs --> _(no submodules)_- [console-monitor](./src/console-monitor/console-monitor.md) — <!-- begin:auto-docs --> _(no submodules)_- [codes](./src/errors/codes.md) — `TESTING_E2E_ERROR_CODES` is the frozen registry of every failure code `@suaveplan/testing-e2e` emits. All codes carry…
|
||||
|
||||
- [testing-e2e-error](./src/errors/testing-e2e-error.md) — `TestingE2eError` is the structured error class thrown by every helper, fixture, and page object in `@suaveplan/testing…
|
||||
- [extension-fixture](./src/extension-fixture/launch-with-extension.md) — <!-- begin:auto-docs --> _(no submodules)_- [launch-with-extension](./src/extension-fixture/launch-with-extension.md) — <!-- begin:auto-docs --> _(no submodules)_- [fixtures](./src/fixtures/extended-test.md) — <!-- begin:auto-docs --> _(no submodules)_- [extended-test](./src/fixtures/extended-test.md) — <!-- begin:auto-docs --> _(no submodules)_- [dismiss-dialog](./src/helpers/dismiss-dialog.md) — `dismissDialog` attaches a one-shot handler to the next `page.on("dialog")` event, with the caller choosing between `ac…
|
||||
- [mock-clipboard](./src/helpers/mock-clipboard.md) — `mockClipboard` installs a deterministic, in-memory clipboard implementation on the navigator object for a Playwright p…
|
||||
@@ -107,6 +109,7 @@ downloaded to `~/.cache/cloakbrowser/`. CI runners pre-cache it via
|
||||
- [screenshot-on-failure](./src/helpers/screenshot-on-failure.md) — `screenshotOnFailure` captures a full-page screenshot when a Playwright test fails and attaches it to the `TestInfo` re…
|
||||
- [wait-for-network-idle](./src/helpers/wait-for-network-idle.md) — `waitForNetworkIdle` suspends until a Playwright page has had zero in-flight requests for at least `idleMs` consecutive…
|
||||
- [multi-session](./src/multi-session/create-multi-session.md) — <!-- begin:auto-docs --> _(no submodules)_ - [create-multi-session](./src/multi-session/create-multi-session.md) — <!-- begin:auto-docs --> _(no submodules)_- [network-monitor](./src/network-monitor/network-monitor.md) — <!-- begin:auto-docs --> _(no submodules)_ - [network-monitor](./src/network-monitor/network-monitor.md) — <!-- begin:auto-docs --> _(no submodules)_- [observability](./src/observability/instrumented.md) — <!-- begin:auto-docs --> _(no submodules)_ - [instrumented](./src/observability/instrumented.md) — <!-- begin:auto-docs --> _(no submodules)_- [page-objects](./src/page-objects/page-object.md) — <!-- begin:auto-docs --> _(no submodules)_ - [page-object](./src/page-objects/page-object.md) — <!-- begin:auto-docs --> _(no submodules)_
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
@@ -277,4 +280,3 @@ See `docker/README.md` for the full operator playbook.
|
||||
| `@suaveplan/testing-e2e/errors` | [src/errors/testing-e2e-error.md](src/errors/testing-e2e-error.md) | Typed error classes (`NavigationError`, `WaitTimeoutError`, `AbortedError`, `CloakLaunchError`) + `classifyCloakError` / `wrapCloakError` helpers |
|
||||
| | [src/errors/codes.md](src/errors/codes.md) | `TESTING_E2E_ERROR_CODES` registry |
|
||||
| _(observability)_ | [src/observability/instrumented.md](src/observability/instrumented.md) | `instrumented` — optional OTel wrapper (gated by `TESTING_E2E_OTEL_ENABLED=1`) that records call counts and duration histograms for package entrypoints |
|
||||
|
||||
|
||||
@@ -112,11 +112,11 @@ loaded and resolves the extension's runtime ID.
|
||||
- `options.userDataDir` — absolute path to the persistent browser
|
||||
profile directory; must be writable and unique per concurrent test
|
||||
run
|
||||
- `options.launchPersistentContext` — *optional* launcher override.
|
||||
- `options.launchPersistentContext` — _optional_ launcher override.
|
||||
Defaults to `cloakbrowser.launchPersistentContext` (loaded
|
||||
lazily via dynamic `import`). Tests inject a spy here; adapters
|
||||
inject a profile-manager-backed launcher
|
||||
- `options.launchOptions` — *optional* extra options forwarded
|
||||
- `options.launchOptions` — _optional_ extra options forwarded
|
||||
unchanged to the launcher. Use this to set `proxy`, `humanize`,
|
||||
`geoip`, `timezone`, `locale`, or any other cloakbrowser
|
||||
`LaunchPersistentContextOptions` field
|
||||
|
||||
@@ -122,10 +122,10 @@ await browser.close();
|
||||
|
||||
A Playwright `test` function extended with the following fixtures:
|
||||
|
||||
- `browser: Browser` *(worker, overridden)* — stealth Chromium launched
|
||||
- `browser: Browser` _(worker, overridden)_ — stealth Chromium launched
|
||||
via `cloakbrowser.launch`. Cleanup (`browser.close()`) runs once per
|
||||
worker
|
||||
- `cloak: CloakOptions` *(worker option)* — options forwarded to
|
||||
- `cloak: CloakOptions` _(worker option)_ — options forwarded to
|
||||
`cloakbrowser.launch`. Default `{ headless: true }`
|
||||
- `apiContext: APIRequestContext` — fresh per test, browser-free
|
||||
- `freshPage: Page` — fresh context + page per test
|
||||
|
||||
Reference in New Issue
Block a user