@capagents/forgeqe 3.0.3 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HOW_TO_USE.md +190 -189
- package/README.md +12 -12
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/dist/docs-site/architecture-map/index.html +6 -6
- package/dist/docs-site/docs/architecture/index.html +31 -31
- package/dist/docs-site/docs/containers/index.html +9 -10
- package/dist/docs-site/docs/custom-agents-first-run/index.html +5 -5
- package/dist/docs-site/docs/desktop/index.html +8 -10
- package/dist/docs-site/docs/feature-test-prompts/index.html +4 -4
- package/dist/docs-site/docs/graphify/index.html +1 -1
- package/dist/docs-site/docs/index.html +214 -165
- package/dist/docs-site/docs/mobile/index.html +6 -6
- package/dist/docs-site/docs/model-routing/index.html +58 -10
- package/dist/docs-site/docs/product-graph/index.html +3 -3
- package/dist/docs-site/docs/product-views/index.html +1 -1
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/web-app/index.html +6 -6
- package/dist/forgeqe.js +1858 -1825
- package/dist/template.html +69 -69
- package/dist/web/assets/Agent-BF6goYbq.js +8 -0
- package/dist/web/assets/ApiTests-08El24XV.js +10 -0
- package/dist/web/assets/Browse-DB7lNo6R.js +2 -0
- package/dist/web/assets/Chat-Co7EJfA9.js +5 -0
- package/dist/web/assets/{CommandPalette-CAAPFMZn.js → CommandPalette-BkNNac9P.js} +1 -1
- package/dist/web/assets/{Compare-DZfbMjDK.js → Compare-Ce214eXq.js} +1 -1
- package/dist/web/assets/Cost-B_oVlEve.js +1 -0
- package/dist/web/assets/Data-BNXAWpvT.js +6 -0
- package/dist/web/assets/Desktop-Dnsmc_L-.js +1 -0
- package/dist/web/assets/DesktopReview-C7SG_gBt.js +1 -0
- package/dist/web/assets/{Evidence-CijYL67k.js → Evidence-C6PtAQ6y.js} +1 -1
- package/dist/web/assets/{Explore-DZ5PoVZp.js → Explore-BN8zgzmv.js} +2 -2
- package/dist/web/assets/{Features-BvZfZIb7.js → Features-DRONEGA3.js} +1 -1
- package/dist/web/assets/{Flags-B_-HOAeZ.js → Flags-CF8Zboey.js} +2 -2
- package/dist/web/assets/{Flaky-CWyV0rE3.js → Flaky-B6IYRvE2.js} +1 -1
- package/dist/web/assets/Impact-DglYEuEY.js +3 -0
- package/dist/web/assets/Jobs-BX-DXp28.js +5 -0
- package/dist/web/assets/KindPage-ByaxfUiE.js +6 -0
- package/dist/web/assets/Migration-wVEuZ3zr.js +2 -0
- package/dist/web/assets/Product-Bcv7xIYx.js +7 -0
- package/dist/web/assets/{Production-Dakb3WS-.js → Production-DTdUc-ze.js} +1 -1
- package/dist/web/assets/{Quality-CcrANX20.js → Quality-B0MRg6wI.js} +1 -1
- package/dist/web/assets/{Readiness-DvYQ17Oh.js → Readiness-XpGisxdv.js} +1 -1
- package/dist/web/assets/Record-C0vcXk-u.js +2 -0
- package/dist/web/assets/Regression-CthpK77C.js +5 -0
- package/dist/web/assets/{RelationGraph-evMcSFoO.js → RelationGraph-MHWsIy8b.js} +1 -1
- package/dist/web/assets/Reports-Cy1MvUqg.js +2 -0
- package/dist/web/assets/Response-53IPohSg.js +4 -0
- package/dist/web/assets/RunDiff-BQH6Wacd.js +1 -0
- package/dist/web/assets/Runs-IwZWhlyu.js +2 -0
- package/dist/web/assets/Steps-DKCrz0ed.js +2 -0
- package/dist/web/assets/{TestCases-93xQKkMT.js → TestCases-Bt81xr3X.js} +1 -1
- package/dist/web/assets/TestData-CXRhxaD8.js +2 -0
- package/dist/web/assets/{TestDebt-CE62ftuJ.js → TestDebt-DM5VeTwn.js} +1 -1
- package/dist/web/assets/Tosca-B42EZ5YF.js +3 -0
- package/dist/web/assets/{WhatsNew-lX-LhWKt.js → WhatsNew-D3yHnxgW.js} +1 -1
- package/dist/web/assets/agentLink-BlI6CU6m.js +1 -0
- package/dist/web/assets/{dataParts-LCnV1x8c.js → dataParts-B0tYVMhQ.js} +2 -2
- package/dist/web/assets/{families-DLmHA4rL.js → families-DGOQO6Mu.js} +1 -1
- package/dist/web/assets/filters-Btr3PTRn.js +1 -0
- package/dist/web/assets/{fold-pif2b5qg.js → fold-B_G_xXZM.js} +1 -1
- package/dist/web/assets/frame-CU0pSxTD.js +18 -0
- package/dist/web/assets/index-CCNq91up.js +68 -0
- package/dist/web/assets/index-D6jp6pDW.css +2 -0
- package/dist/web/assets/{logos-gqcS1A90.js → logos-DpiYLP3H.js} +1 -1
- package/dist/web/assets/{markdown-BcuknPlh.js → markdown-Dn8IZFhS.js} +5 -5
- package/dist/web/assets/{paletteCommands-qeRU49pp.js → paletteCommands-DKcFFV7I.js} +1 -1
- package/dist/web/assets/{parts-C7nGHnut.js → parts-Ct3kXHNO.js} +1 -1
- package/dist/web/assets/{productParts-3lWHIbdH.js → productParts-IDyVJAgM.js} +1 -1
- package/dist/web/assets/{qualityParts-B-TQusS6.js → qualityParts-Db6YfFIY.js} +1 -1
- package/dist/web/assets/recordTest-_r_cdTC6.js +1 -0
- package/dist/web/assets/{rows-vVKLONno.js → rows-De2l3NFN.js} +1 -1
- package/dist/web/assets/{segmented-Bi4QAoQY.js → segmented-CHGzMxbS.js} +1 -1
- package/dist/web/assets/{usePageChat-De5Fn1X3.js → usePageChat-CpAYTNqJ.js} +1 -1
- package/dist/web/index.html +5 -5
- package/docs/ARCHITECTURE.md +30 -30
- package/docs/BUSINESS_ASSURANCE.md +7 -7
- package/docs/CONTAINERS.md +8 -10
- package/docs/CUSTOM_AGENTS_FIRST_RUN.md +4 -4
- package/docs/DESKTOP.md +8 -10
- package/docs/GRAPHIFY.md +1 -1
- package/docs/MOBILE.md +6 -6
- package/docs/MODEL_ROUTING.md +57 -9
- package/docs/PRODUCT_KNOWLEDGE.md +3 -3
- package/docs/PRODUCT_VIEWS.md +1 -1
- package/docs/WEB_APP.md +6 -6
- package/docs/demo-qi-commerce.md +30 -30
- package/docs/feature-test-prompts.md +3 -3
- package/docs/prompts/graphify-evidence.md +3 -3
- package/docs/security-data-flow.html +23 -23
- package/docs/user-guide.html +214 -165
- package/docs/walkthrough/hotfix-narration.md +19 -19
- package/docs/walkthrough/index.html +26 -26
- package/env.example.yaml +1 -1
- package/evals/evidence/records/forgeqe-test-writing/source.jsonl +1 -1
- package/forgeqe-architecture.html +48 -48
- package/forgeqe.example.yaml +16 -10
- package/package.json +1 -1
- package/prompts/README.md +7 -7
- package/prompts/agent-builder.md +1 -1
- package/prompts/api-tests.md +1 -1
- package/prompts/brain.md +8 -5
- package/prompts/business-interview.md +3 -3
- package/prompts/business-persona.md +3 -3
- package/prompts/business-strategist.md +1 -1
- package/prompts/db-agent.md +3 -3
- package/prompts/doc-reader.md +2 -2
- package/prompts/heal.md +1 -1
- package/prompts/knowledge-agent.md +3 -3
- package/prompts/model-profile.md +1 -1
- package/prompts/page-differs.md +1 -1
- package/prompts/persona-own.md +3 -3
- package/prompts/talk.md +3 -2
- package/prompts/test-agent.md +2 -2
- package/prompts/test-plan.md +2 -2
- package/prompts/tosca-assistant.md +1 -1
- package/py/forgeqe_engine/copilot_gateway.py +1 -1
- package/py/forgeqe_engine/memory.py +48 -2
- package/py/forgeqe_engine/recordsession.py +31 -1
- package/py/forgeqe_engine/video.py +104 -12
- package/py/forgeqe_engine/webrecord_page.py +88 -7
- package/py/forgeqe_tosca/__init__.py +2 -2
- package/py/forgeqe_tosca/render.py +1 -1
- package/py/forgeqe_tosca/tsu.py +2 -2
- package/skills/playwright-automation/SKILL.md +102 -0
- package/skills/playwright-automation/references/dotnet.md +90 -0
- package/skills/playwright-automation/references/java.md +41 -0
- package/skills/playwright-automation/references/python.md +42 -0
- package/skills/playwright-automation/references/typescript.md +54 -0
- package/skills/test-data/SKILL.md +1 -1
- package/skills/writing-skills/SKILL.md +2 -2
- package/dist/web/assets/Agent-Bha4Lr91.js +0 -8
- package/dist/web/assets/ApiTests-xhnOnRi9.js +0 -10
- package/dist/web/assets/Browse-DPfzCrMZ.js +0 -2
- package/dist/web/assets/Chat-DuLj5IPw.js +0 -5
- package/dist/web/assets/Cost-PNcsRgPW.js +0 -1
- package/dist/web/assets/Data-DaKzcO_S.js +0 -6
- package/dist/web/assets/Desktop-sXYXYwRy.js +0 -1
- package/dist/web/assets/DesktopReview-Bz6bfPkM.js +0 -1
- package/dist/web/assets/Impact-BqHiKxoG.js +0 -3
- package/dist/web/assets/Jobs-DUfRHoko.js +0 -5
- package/dist/web/assets/KindPage-Dj3vryGF.js +0 -6
- package/dist/web/assets/Migration-CP3o4tLy.js +0 -2
- package/dist/web/assets/Product-BeHmrA7Z.js +0 -7
- package/dist/web/assets/Record-V7x9VxRQ.js +0 -2
- package/dist/web/assets/Regression-DgXh0V-X.js +0 -5
- package/dist/web/assets/Reports--eyV0Gfp.js +0 -2
- package/dist/web/assets/Response-B1S-n787.js +0 -4
- package/dist/web/assets/RunDiff-DwEopDsx.js +0 -1
- package/dist/web/assets/Runs-B6bSGdrI.js +0 -2
- package/dist/web/assets/Steps-DxPqrmZK.js +0 -2
- package/dist/web/assets/TestData-BiW5r9gA.js +0 -2
- package/dist/web/assets/Tosca-CrvuVNqG.js +0 -3
- package/dist/web/assets/agentLink-ZQZx1pK-.js +0 -1
- package/dist/web/assets/filters-CorGh2vA.js +0 -1
- package/dist/web/assets/frame-BgpCUEoM.js +0 -18
- package/dist/web/assets/index-0YhzcgZJ.css +0 -2
- package/dist/web/assets/index-CEVZ8F8_.js +0 -67
- package/dist/web/assets/recordTest-BmD8jtw0.js +0 -1
- package/skills/dotnet-nunit-playwright/SKILL.md +0 -36
- package/skills/playwright-typescript/SKILL.md +0 -36
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Playwright in Python
|
|
2
|
+
|
|
3
|
+
Official requirement: Python 3.8 or higher (playwright.dev/python/docs/intro). The installed wheel may want more;
|
|
4
|
+
read the repository's own floor from `pyproject.toml` or `setup.cfg` and match it.
|
|
5
|
+
|
|
6
|
+
## Shape of a test
|
|
7
|
+
Sync API with the `pytest-playwright` plugin's `page` fixture is the common case:
|
|
8
|
+
|
|
9
|
+
```python
|
|
10
|
+
import re
|
|
11
|
+
from playwright.sync_api import Page, expect
|
|
12
|
+
|
|
13
|
+
def test_checkout(page: Page):
|
|
14
|
+
page.goto("/cart")
|
|
15
|
+
page.get_by_role("button", name="Checkout").click()
|
|
16
|
+
expect(page).to_have_url(re.compile(r"/checkout"))
|
|
17
|
+
expect(page.get_by_role("heading", name="Payment")).to_be_visible()
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The async API exists (`playwright.async_api`) — use it only when the repository already does.
|
|
21
|
+
|
|
22
|
+
## Naming
|
|
23
|
+
snake_case throughout: `get_by_role`, `get_by_label`, `to_have_text`, `to_be_visible`, `frame_locator`,
|
|
24
|
+
`storage_state`. Options are keyword arguments: `get_by_role("button", name="Save", exact=True)`.
|
|
25
|
+
Filtering: `.filter(has_text=...)`, `.filter(has=page.get_by_role(...))`.
|
|
26
|
+
|
|
27
|
+
## Fixtures worth reusing
|
|
28
|
+
- `page`, `context`, `browser` come from the plugin. Do not build a browser by hand in a test.
|
|
29
|
+
- Per-run options come from `browser_context_args` / `browser_type_launch_args` overrides in `conftest.py`.
|
|
30
|
+
- Sign-in: a session-scoped fixture that logs in once and writes `storage_state(path=...)`, then a
|
|
31
|
+
`browser_context_args` override that loads it.
|
|
32
|
+
|
|
33
|
+
## Running one test
|
|
34
|
+
```bash
|
|
35
|
+
pytest tests/test_checkout.py::test_checkout --tracing retain-on-failure
|
|
36
|
+
pytest -k checkout --headed --browser chromium
|
|
37
|
+
```
|
|
38
|
+
`PWDEBUG=1 pytest -s` opens the Inspector. Trace: `playwright show-trace trace.zip`.
|
|
39
|
+
|
|
40
|
+
## Gaps against the Node runner
|
|
41
|
+
No `expect.soft`, no `expect.poll`, no `toPass`, no projects or sharding. Use pytest's own
|
|
42
|
+
`pytest-xdist`, parametrize and markers; the repository will already have a choice made.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Playwright Test in TypeScript / JavaScript
|
|
2
|
+
|
|
3
|
+
Official requirement: "Node.js: latest 22.x, 24.x or 26.x" (playwright.dev/docs/intro). This is the only binding
|
|
4
|
+
with the full runner: projects, fixtures, sharding, the HTML reporter, UI Mode, `expect.soft`, `expect.poll`
|
|
5
|
+
and `toPass`.
|
|
6
|
+
|
|
7
|
+
## Read the setup first
|
|
8
|
+
- Config: `playwright.config.ts` (or `.js`, `.mjs`; a repo can have several, run with `--config`). Note `testDir`,
|
|
9
|
+
`projects` and their `dependencies`, `use` (baseURL, channel, headless, viewport, locale, timezoneId,
|
|
10
|
+
storageState, testIdAttribute), `webServer`, `globalSetup`, `timeout`, `expect.timeout`, `retries`.
|
|
11
|
+
- Fixtures: files that call `test.extend<...>()` (often `fixtures.ts` or `tests/fixtures/`). When the repository's
|
|
12
|
+
tests import `test` and `expect` from such a file, the new test imports from it too, never straight from
|
|
13
|
+
`@playwright/test`.
|
|
14
|
+
- Page objects: classes taking `page: Page` in the constructor, exposing locators and actions. Extend the
|
|
15
|
+
existing one for the page; when the repository hands page objects out as fixtures, add yours the same way.
|
|
16
|
+
- Sign-in: a setup project (`*.setup.ts`, `dependencies: ['setup']`) that saves `storageState`.
|
|
17
|
+
|
|
18
|
+
## Browser settings
|
|
19
|
+
Put them in `use` of the config, at the top level or in the project the test runs in: `channel`, `headless`,
|
|
20
|
+
`viewport`, `locale`, `timezoneId`, and `userAgent` only when the site needs it. Use `test.use()` in a spec file
|
|
21
|
+
only if the repository already overrides settings per file.
|
|
22
|
+
|
|
23
|
+
## Run one test
|
|
24
|
+
```bash
|
|
25
|
+
npx playwright test tests/checkout.spec.ts --project=chromium --reporter=line
|
|
26
|
+
npx playwright test tests/checkout.spec.ts -g "places an order" --workers=1
|
|
27
|
+
```
|
|
28
|
+
Use the repository's package manager when its lockfile says so (`pnpm exec playwright`, `yarn playwright`).
|
|
29
|
+
Trace: `--trace on` locally, `trace: 'on-first-retry'` in CI, then `npx playwright show-trace trace.zip`.
|
|
30
|
+
`--ui` opens UI Mode, `--debug` the Inspector.
|
|
31
|
+
|
|
32
|
+
Browsers are installed by ForgeQE, not by you: if a browser is missing, say which (`chromium`, or `chrome` for
|
|
33
|
+
`channel: 'chrome'`) and stop.
|
|
34
|
+
|
|
35
|
+
## The overlay handler's call
|
|
36
|
+
The test rules say when a handler is right and when a helper is. Playwright's call, from 1.42, registered in a
|
|
37
|
+
fixture or `beforeEach`:
|
|
38
|
+
```ts
|
|
39
|
+
await page.addLocatorHandler(banner, async () => {
|
|
40
|
+
await banner.getByRole('button', { name: 'Accept all', exact: true }).click()
|
|
41
|
+
await expect(banner).toBeHidden()
|
|
42
|
+
})
|
|
43
|
+
```
|
|
44
|
+
`banner` is the overlay's own container (`page.locator('#cookie-banner')`), and its body runs on every action
|
|
45
|
+
the overlay blocks.
|
|
46
|
+
|
|
47
|
+
## Data, secrets and tags
|
|
48
|
+
- Secrets: `process.env.NAME`, failing with a clear message when one is missing. If the config loads `dotenv`,
|
|
49
|
+
add new names to `.env.example` without values.
|
|
50
|
+
- Several inputs, where the repository has no data file of its own:
|
|
51
|
+
`for (const c of cases) test(\`… ${c.name}\`, …)`.
|
|
52
|
+
- Tag the repository's way: `test('title', { tag: '@smoke' }, …)` or tags in the title.
|
|
53
|
+
- Enable `@typescript-eslint/no-floating-promises` reasoning when reviewing: an un-awaited Playwright call is a
|
|
54
|
+
silent flake.
|
|
@@ -25,7 +25,7 @@ agents: [scribe]
|
|
|
25
25
|
(`forgeqe data gen <spec> --insert --yes --export <file>`); never fall back to values copied from a run.
|
|
26
26
|
|
|
27
27
|
## Make data a test needs
|
|
28
|
-
- Before you run or write a test that needs rows, ask
|
|
28
|
+
- Before you run or write a test that needs rows, ask Miner with `data_request_test_data`: the need in words,
|
|
29
29
|
`kind: existing` for rows that are there, `kind: new` for rows to make. Use the values in its `rows`; its `sql` or
|
|
30
30
|
`script` and the `replay` command (`forgeqe data fetch <name>`) get the same data again, from
|
|
31
31
|
`test-data/requests/<name>/`. Name that folder in your summary.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: writing-skills
|
|
3
|
-
description: "Use when the user asks to create, change, or review a ForgeQE skill (a SKILL.md under .forgeqe/skills or ~/.forgeqe/skills), for example \"make a skill for our date picker\" or \"teach
|
|
3
|
+
description: "Use when the user asks to create, change, or review a ForgeQE skill (a SKILL.md under .forgeqe/skills or ~/.forgeqe/skills), for example \"make a skill for our date picker\" or \"teach Quill our test conventions\": choosing who uses it, a description agents choose by, and short concrete instructions."
|
|
4
4
|
agents: [forgeqe]
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ agents: [forgeqe]
|
|
|
9
9
|
A skill is a folder `<name>/SKILL.md`: YAML frontmatter with `name` (lowercase words joined by hyphens, the same as the folder), `description`, and `agents`, then Markdown instructions.
|
|
10
10
|
|
|
11
11
|
## Who uses it (agents)
|
|
12
|
-
- `scribe`: how tests are written in a repository (framework, folders, base classes, page objects, the command that runs one test).
|
|
12
|
+
- `scribe`: how tests are written in a repository (framework, folders, base classes, page objects, the command that runs one test). Quill can also read files placed next to SKILL.md, such as `references/locators.md`, when SKILL.md names them by relative path.
|
|
13
13
|
- `browser`: how to drive one site or widget during browser runs (lookups, date pickers, grids, save buttons). The browser agent sees only the SKILL.md text, so put everything it needs there and keep it under about 1,500 characters; all chosen skills together are capped by skills.browser_max_chars.
|
|
14
14
|
- `forgeqe`: how to handle a kind of request (which sources, tools, and order).
|
|
15
15
|
- With no `agents`, a skill is for forgeqe and scribe. Browser skills must say `agents: [browser]`.
|