@orion-qa/orion 3.2.0 → 3.4.0
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/.claude/settings.json +1 -0
- package/.claude/skills/appium/SKILL.md +2 -2
- package/.claude/skills/appium/templates/ci/github-actions-android.yml +1 -1
- package/.claude/skills/appium/templates/ci/github-actions-ios.yml +1 -1
- package/.claude/skills/appium/templates/ci/github-actions-windows.yml +1 -1
- package/.claude/skills/automation-implementation/SKILL.md +1 -1
- package/.claude/skills/automation-strategy/SKILL.md +1 -0
- package/.claude/skills/cicd-integration/SKILL.md +1 -1
- package/.claude/skills/code-review/SKILL.md +1 -1
- package/.claude/skills/code-review/references/pattern-rules.md +1 -0
- package/.claude/skills/csharp/SKILL.md +1 -0
- package/.claude/skills/documentation/SKILL.md +2 -2
- package/.claude/skills/execution/SKILL.md +9 -9
- package/.claude/skills/httpclient/templates/ci/github-actions.yml +2 -2
- package/.claude/skills/java/SKILL.md +1 -0
- package/.claude/skills/javascript/SKILL.md +1 -0
- package/.claude/skills/junit5/SKILL.md +1 -1
- package/.claude/skills/k6/SKILL.md +1 -1
- package/.claude/skills/k6/templates/project/tests/load/products.js +1 -1
- package/.claude/skills/karate/SKILL.md +1 -1
- package/.claude/skills/karate/templates/ci/github-actions.yml +2 -2
- package/.claude/skills/newman/templates/ci/github-actions.yml +2 -2
- package/.claude/skills/newman/templates/collection/src/config/env.js +1 -1
- package/.claude/skills/nunit/SKILL.md +1 -1
- package/.claude/skills/orion/SKILL.md +2 -2
- package/.claude/skills/orion/references/assess-fix.md +2 -2
- package/.claude/skills/orion/references/batch.md +2 -2
- package/.claude/skills/orion/references/capabilities.md +1 -1
- package/.claude/skills/orion/references/conversation.md +12 -25
- package/.claude/skills/orion/references/greeting.md +23 -0
- package/.claude/skills/orion/references/hosts.md +2 -2
- package/.claude/skills/orion/references/modes.md +1 -1
- package/.claude/skills/orion/references/plain-language.md +5 -2
- package/.claude/skills/orion/references/recovery-loop.md +2 -2
- package/.claude/skills/orion/references/setup-card.md +1 -1
- package/.claude/skills/orion/references/status-lines.md +11 -6
- package/.claude/skills/orion/references/task-brief.md +1 -1
- package/.claude/skills/orion/scripts/batch_state.mjs +1 -1
- package/.claude/skills/orion/scripts/done_check.mjs +12 -5
- package/.claude/skills/orion/scripts/quiet.mjs +1 -1
- package/.claude/skills/orion/scripts/report_check.mjs +5 -2
- package/.claude/skills/orion/scripts/report_make.mjs +186 -0
- package/.claude/skills/orion/scripts/results_parse.mjs +7 -0
- package/.claude/skills/orion/templates/project-context/assessment.md +1 -1
- package/.claude/skills/orion/templates/project-context/report.md +2 -2
- package/.claude/skills/pact/SKILL.md +1 -1
- package/.claude/skills/playwright/SKILL.md +2 -2
- package/.claude/skills/playwright/references/electron.md +1 -1
- package/.claude/skills/playwright/templates/README.md +1 -1
- package/.claude/skills/playwright/templates/ci/azure-pipelines.yml +1 -1
- package/.claude/skills/playwright/templates/ci/github-actions-dotnet.yml +2 -2
- package/.claude/skills/playwright/templates/ci/github-actions-javascript.yml +2 -2
- package/.claude/skills/playwright/templates/ci/github-actions-python.yml +2 -2
- package/.claude/skills/playwright/templates/ci/github-actions.yml +1 -1
- package/.claude/skills/playwright/templates/javascript/.prettierignore +6 -0
- package/.claude/skills/playwright/templates/javascript/.prettierrc.json +4 -0
- package/.claude/skills/playwright/templates/javascript/fixtures/index.js +56 -48
- package/.claude/skills/playwright/templates/javascript/package.json +4 -1
- package/.claude/skills/playwright/templates/javascript/pageObjects/basePage.js +5 -1
- package/.claude/skills/playwright/templates/javascript/playwright.config.js +6 -2
- package/.claude/skills/playwright/templates/javascript/reporters/summaryReporter.js +92 -15
- package/.claude/skills/playwright/templates/javascript/resources/desc/signIn.desc.js +10 -3
- package/.claude/skills/playwright/templates/javascript/src/config/env.js +12 -3
- package/.claude/skills/playwright/templates/javascript/src/config/flags.js +3 -1
- package/.claude/skills/playwright/templates/javascript/tests/api/session.spec.js +8 -4
- package/.claude/skills/playwright/templates/javascript/tests/unit/summaryReporter.test.js +30 -6
- package/.claude/skills/playwright/templates/javascript/utils/random.js +3 -1
- package/.claude/skills/playwright/templates/project/.prettierignore +6 -0
- package/.claude/skills/playwright/templates/project/.prettierrc.json +4 -0
- package/.claude/skills/playwright/templates/project/fixtures/index.ts +21 -15
- package/.claude/skills/playwright/templates/project/fixtures/session.ts +9 -2
- package/.claude/skills/playwright/templates/project/package.json +4 -1
- package/.claude/skills/playwright/templates/project/pageObjects/basePage.ts +5 -1
- package/.claude/skills/playwright/templates/project/playwright.config.ts +4 -2
- package/.claude/skills/playwright/templates/project/reporters/summaryReporter.ts +97 -15
- package/.claude/skills/playwright/templates/project/resources/desc/signIn.desc.ts +10 -3
- package/.claude/skills/playwright/templates/project/src/config/env.ts +15 -4
- package/.claude/skills/playwright/templates/project/src/services/apiClient.ts +5 -1
- package/.claude/skills/playwright/templates/project/tests/api/session.spec.ts +8 -4
- package/.claude/skills/playwright/templates/project/tests/unit/summaryReporter.test.ts +30 -6
- package/.claude/skills/playwright/templates/project/utils/formFill.ts +4 -1
- package/.claude/skills/playwright/templates/project/utils/random.ts +3 -1
- package/.claude/skills/playwright/templates/project/utils/redact.ts +4 -1
- package/.claude/skills/pytest/SKILL.md +1 -1
- package/.claude/skills/python/SKILL.md +1 -0
- package/.claude/skills/quality-checks/SKILL.md +1 -1
- package/.claude/skills/requests/templates/ci/github-actions.yml +2 -2
- package/.claude/skills/rest-assured/SKILL.md +2 -2
- package/.claude/skills/rest-assured/templates/ci/github-actions.yml +2 -2
- package/.claude/skills/selenium/SKILL.md +1 -1
- package/.claude/skills/selenium/templates/ci/github-actions-csharp.yml +2 -2
- package/.claude/skills/selenium/templates/ci/github-actions-java.yml +2 -2
- package/.claude/skills/selenium/templates/ci/github-actions-python.yml +2 -2
- package/.claude/skills/self-healing/SKILL.md +1 -1
- package/.claude/skills/test-design/SKILL.md +1 -1
- package/.claude/skills/test-reporting/references/report-levels.md +1 -1
- package/.claude/skills/test-reporting/references/tool-mapping.md +1 -1
- package/.claude/skills/testng/SKILL.md +1 -1
- package/.claude/skills/typescript/SKILL.md +1 -0
- package/.claude/skills/ui-observation/SKILL.md +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.cursor/commands/orion.md +1 -1
- package/.gemini/commands/orion.toml +1 -1
- package/.github/prompts/orion.prompt.md +1 -1
- package/.windsurf/workflows/orion.md +1 -1
- package/AGENTS.md +2 -2
- package/README.md +8 -7
- package/assets/architecture.svg +1 -1
- package/assets/run-flow.svg +1 -1
- package/bin/orion.mjs +8 -8
- package/hosts/gemini-extension/gemini-extension.json +1 -1
- package/package.json +2 -2
|
@@ -10,11 +10,11 @@ The native files for Cursor, GitHub Copilot, Windsurf, Gemini CLI and Codex are
|
|
|
10
10
|
| `cursor` | `/orion` (`.cursor/commands/`); or the Cursor plugin (`.cursor-plugin/`, unverified) | **single-agent**: in a run on 2026-10-16 the Task tool rejected `subagent_type: requirement-analyst` (the platform's agent types), so the main chat does every step itself with each specialist's skills; it says so once and names itself, not the specialist, in the run file (earlier runs on 2026-09-29 delegated) | auto-run off, Auto-review guidance (steers, doesn't block) | per-agent tools, read-only, no nesting, commit approval (`git commit` ran unprompted, CU-6) | measured: delegation 2026-09-29, rejected 2026-10-16 |
|
|
11
11
|
| `github-copilot` | `/orion` (`.github/prompts/`) | reads `.claude/agents/` (docs) | tool approval prompts | per-agent limits until measured | unverified |
|
|
12
12
|
| `copilot-studio` | chat with the orchestrator | connected agents | tools attached per agent; each user's own sign-in; ask-before-run where the tenant offers it | approvals content; no shell anywhere | partial, read-only (Gates 1–4, repo reads, design mode 2026-10-05/07; analyze up to Gate 7 2026-10-06; chat safety tests 2026-10-09); no writes or runs |
|
|
13
|
-
| `codex` |
|
|
13
|
+
| `codex` | plain words, e.g. "Orion, write tests for login on …" (Codex reads `AGENTS.md`; the long form "Host: codex. Follow `.claude/skills/orion/SKILL.md` for this story: …" still works) | `.codex/agents/*.toml` (loaded from a trusted project's `.codex/agents/`) if Codex lets the session start them by name; else single-agent mode. A Codex plugin install carries skills only, no agents | sandbox per agent: `read-only` unless the agent may edit files or run its own shell commands (then `workspace-write`; see each file's `sandbox_mode`); approval prompts. the agents whose own commands reach the network (implementer, executor, change-agent, requirement-analyst and test-reporter: installs, test runs, `git push`, `tm.py`) also get `[sandbox_workspace_write] network_access = true`, because Codex's sandbox cuts the network off otherwise; a third-party report says newer Codex versions apply the parent session's sandbox to every agent instead (verify) | command ask/deny lists (not generated for Codex) | unverified |
|
|
14
14
|
| `gemini-cli` | `/orion` (`.gemini/commands/`) | `.gemini/agents/*.md` | tool allowlist per agent (no edit/write tools for read-only agents); ask/deny from the rules extension `orion-rules` (`hosts/gemini-extension`, installed once per user; Gemini CLI ignores policy files inside a repo) | shell command prefixes per agent (an agent with any shell rule gets the shell tool); path rules (`.env`, keys) | unverified |
|
|
15
15
|
| `grok-build` | `/orion` (reads `.claude/` skills and `AGENTS.md`, per its docs) | `.claude/agents/` if it reads them, else single-agent mode | its permission settings | everything until measured | unverified |
|
|
16
16
|
| `windsurf` | `/orion` (`.windsurf/workflows/`) | single-agent mode | Cascade approval settings | per-agent limits, separation of duties | unverified |
|
|
17
|
-
| unknown host | "Host: <tool name>. Follow `.claude/skills/orion/SKILL.md` for this story: …" | single-agent mode (`AGENTS.md`) | the host's approval mode, if on | everything else | — |
|
|
17
|
+
| unknown host | plain words, e.g. "Orion, write tests for login on …", where the tool reads `AGENTS.md`; else "Host: <tool name>. Follow `.claude/skills/orion/SKILL.md` for this story: …" | single-agent mode (`AGENTS.md`) | the host's approval mode, if on | everything else | — |
|
|
18
18
|
|
|
19
19
|
## Single-agent mode
|
|
20
20
|
You play each specialist in turn: for each gate, open that specialist's agent file and the skills it lists, follow them, keep its *Never* list, write its RESULT, then switch back to orchestrator and judge the RESULT with the seven checks (`task-brief.md`). The reviewer step re-reads the diff from disk, never from memory.
|
|
@@ -5,7 +5,7 @@ A run does only what the user asked for and stops at that mode's stop point. It
|
|
|
5
5
|
| Mode | Start (command or plain words) | Agents, in order | Gates | Stops when | Approvals that can come up | Writes |
|
|
6
6
|
|---|---|---|---|---|---|---|
|
|
7
7
|
| **full** (default) | `/orion <story>` · "automate this story" | requirement-analyst → environment-discovery ∥ codebase-analyst → automation-strategist → implementer → reviewer → executor (+ failure-analyst) → evidence-validator → you (report) → test-reporter only if you ask to share | 1–8 | you accept the report (H13), or decline it | as they arise, except that exploring the test URL and running the new tests on this machine are part of the request; running the rest of the suite or CI is H6 | the existing suite, extended in place on a local work branch (`work-branch.md`); PR only with H4 |
|
|
8
|
-
| **build** | `/orion build <story>` · "write the tests / give me the script", with a test URL; the workspace has no suite for this app (or it is the agent install) | requirement-analyst → environment-discovery (opens the URL first) → automation-strategist (test cases from the sentence and the live site; default stack Playwright + JavaScript unless named) → implementer (starter template + UI map, in `sut/<app>/`) → reviewer (one round) → executor (
|
|
8
|
+
| **build** | `/orion build <story>` · "write the tests / give me the script", with a test URL; the workspace has no suite for this app (or it is the agent install) | requirement-analyst → environment-discovery (opens the URL first) → automation-strategist (test cases from the sentence and the live site; default stack Playwright + JavaScript unless named) → implementer (starter template + UI map, in `sut/<app>/`) → reviewer (one round) → executor (1 counted run on this machine) → you (deliver) | 1, 2, 4, 5, 6, 7, 8; 3 `greenfield: <template>` | the suite in `sut/<app>/` passes its counted run (or is delivered with its failures and known issues), and you accept it or ask for changes | the setup card (go / change) before anything starts, and the test-case table (go / change) before code; the confirmed card covers exploring the URL, installing the runner and browser in `sut/<app>/`, and running the new tests here. Asked: H5 production, H3/H4 git, H8 an expected value, H10 installs outside `sut/<app>/` | `sut/<app>/` only (`work-branch.md`); a zip, PR, chat code or test-case files only when asked (`delivery-formats.md`); never a commit or push without H3 |
|
|
9
9
|
| **analyze** | `/orion analyze <repo or folder>` · "analyse / what's the stack of …" | environment-discovery ∥ codebase-analyst → evidence-validator | 2, 3, 7; others `n/a — analyze` | the analysis report is shown | none (read-only); H11 if it would need a database | none (facts may be written to `project-context/` on hosts with files) |
|
|
10
10
|
| **design** | `/orion design <story>` · "only the test cases" | requirement-analyst → environment-discovery ∥ codebase-analyst → automation-strategist → evidence-validator | 1–4, 7, 8; 5, 6 `n/a — design` | you accept the test design (H13); then, unless a format was named, one line offers the test cases as a file (`delivery-formats.md`) | H1, H2; exploring the test URL the user gave is part of the request (no URL → the map is `not observed` and the design says its cases are `not checked against the app`) | the test-case files you ask for (Excel, CSV, PDF, Word, HTML, Markdown, Gherkin, JSON, a TestRail / Xray / Zephyr Scale / Azure Test Plans import file) under `project-context/test-designs/<story>/`, all by `cases_export.py`; writing into the tool itself only on request (H9, test-reporter) |
|
|
11
11
|
| **review** | `/orion review <PR, branch, diff or files>` · "review these tests" | reviewer | 5 (review part only) | the findings are shown | none | none; fixes only if you then start a full run |
|
|
@@ -17,7 +17,7 @@ People say what they want in their own words, with typos, in another language, h
|
|
|
17
17
|
## What people say → what happens
|
|
18
18
|
| They might say | It means | Shortcut (optional) |
|
|
19
19
|
|---|---|---|
|
|
20
|
-
| "automate this story", "write tests for PR-1 on https://…", "test login and cart on this site" | full or build: setup card, test cases, tests,
|
|
20
|
+
| "automate this story", "write tests for PR-1 on https://…", "test login and cart on this site" | full or build: setup card, test cases, tests, 1 counted run | `/orion <story>` · `/orion build …` |
|
|
21
21
|
| "just the test cases", "no code yet", "design the tests", "what should we test for this" | design: stops at the accepted cases | `/orion design <story>` |
|
|
22
22
|
| "what's in this repo", "what framework is this", "analyse our tests" | analyze: stack and structure, read-only | `/orion analyze <folder>` |
|
|
23
23
|
| "how good are our tests", "what's wrong with our framework", "audit the suite" | assess: findings and a fix plan | `/orion assess` |
|
|
@@ -25,6 +25,7 @@ People say what they want in their own words, with typos, in another language, h
|
|
|
25
25
|
| "review this PR", "check these tests", "is this test any good" | review: findings only | `/orion review …` |
|
|
26
26
|
| "why did this fail", "checkout is red", "here's the log, what happened" | triage: the cause with evidence | `/orion triage …` |
|
|
27
27
|
| "run the smoke tests", "run everything tagged @cart", "rerun login" | run: asks once, then runs | `/orion run …` |
|
|
28
|
+
| "are these tests stable", "is TS-3 flaky", "run them 5 times" | run as a stability check: N runs (default 3), retries off; a flaky test is checked on the live page and fixed only on your yes, then run N times again | — |
|
|
28
29
|
| "do all the stories in the sprint", "these 6 tickets", "the whole epic" | batch: a plan card first | `/orion batch …` |
|
|
29
30
|
| "just check these locators", "only write the defect for this bug", "export last run's results to TestRail" (one small job) | task: that one job, its own approvals only ([modes.md](modes.md), task mode) | — |
|
|
30
31
|
| "how did last sprint go", "summary of runs", "trend" | report across runs | `/orion report …` |
|
|
@@ -39,6 +40,8 @@ People say what they want in their own words, with typos, in another language, h
|
|
|
39
40
|
| "don't push", "skip that", "not now" | writes nothing, moves on | — |
|
|
40
41
|
| "where are we", "what's happening", "still running?" | one status line from the run file | — |
|
|
41
42
|
| "continue", "carry on", "pick up where you left off" | resume from the run file (SKILL step 1r) | `continue` |
|
|
43
|
+
| "continue batch B-…", "carry on with the sprint batch" | resume that batch from its `batch.json` ([batch.md](batch.md)) | `/orion batch resume B-<id>` |
|
|
44
|
+
| "continue the fixes", "carry on with A-…" | resume the fix run from its plan ([assess-fix.md](assess-fix.md)) | `/orion fix A-<id> resume` |
|
|
42
45
|
| "how much did that cost", "how long has it been" | the budget line (`run_state.mjs budget`) | — |
|
|
43
46
|
| "show me the details", "what did each agent do", "hide that again" | the board on, or off | `details` · `details off` |
|
|
44
47
|
| "yes", "accept", "ship it" (after the result) | accepts the result | `yes` |
|
|
@@ -50,6 +53,6 @@ People say what they want in their own words, with typos, in another language, h
|
|
|
50
53
|
Answer in at most five short lines, in plain words, with the numbers below only where they were measured:
|
|
51
54
|
- **Quiet Runner:** test runs show only the failures with their context and the counts; the full log is kept for when it's needed (a passing run 2.3 KB → 0.7 KB; real runs' output roughly halved).
|
|
52
55
|
- **Code Map:** your suite as one line per file, with line numbers, so agents open only what they change (a 13 KB suite → 1.6 KB).
|
|
53
|
-
- **Smart Reading:** each step reads only the part of Orion's rules it needs (the setup rules
|
|
56
|
+
- **Smart Reading:** each step reads only the part of Orion's rules it needs (the setup rules 15 KB → 1.5 KB).
|
|
54
57
|
- **Reuse Ladder:** reuse what you have, then extend it, then combine it, and only then write the smallest new code; copied code fails the finish check.
|
|
55
58
|
- **Done Check and Lean Guard:** "done" is checked by a script, not the agent's word, and wasteful habits are blocked during a run on every tool with hooks.
|
|
@@ -9,11 +9,11 @@ executor RESULT with failures
|
|
|
9
9
|
APPLICATION_DEFECT → show defect draft; ask to file it (H9, listing the draft and the target project); on yes → test-reporter `file-defects` with the D-nnn; test stays failing, never healed
|
|
10
10
|
RETRYABLE → executor reruns the same tests (no code change), per retry-policy.md
|
|
11
11
|
FLAKY on an existing test → one rerun; still inconsistent → report as flaky, don't heal
|
|
12
|
-
FLAKY on a new test (mixed results
|
|
12
|
+
FLAKY on a new test (mixed results across the runs of a stability check) → treat as AUTOMATION_DEFECT: failure-analyst finds the cause (wait, data, order) → heal proposal; a new test is never accepted while flaky
|
|
13
13
|
TEST_DATA_ISSUE / AUTOMATION_DEFECT → heal proposal
|
|
14
14
|
→ reviewer (code-review + assertion guard) → blocking? → back to failure-analyst with findings (counts as an attempt)
|
|
15
15
|
→ append the changed rows to the UI map; implementer applies exactly the proposal, changing the script from those rows
|
|
16
|
-
→ executor reruns failing tests, then the affected file/suite (new tests:
|
|
16
|
+
→ executor reruns failing tests, then the affected file/suite (new tests: 1 counted run, retries off, or N in a stability check; fail check again when the heal touched what an assertion reads); in CI, the heal is pushed first as a follow-up commit under the run's H3 (work-branch.md step 5)
|
|
17
17
|
→ pass → evidence-validator → report
|
|
18
18
|
→ fail → next attempt (1 → 2 → ESCALATE)
|
|
19
19
|
NEEDS_ADAPTER → new-technology path (H12)
|
|
@@ -26,7 +26,7 @@ Nothing missing: no message; carry on. Otherwise:
|
|
|
26
26
|
Reply **yes** to set up all, **yes, not 1** to skip one, or **no**."
|
|
27
27
|
Number only the items that are missing, in this order. Item 1 is offered only when the check printed `setup in the chat`; when it didn't, item 1 is "**Browser for exploring:** <its `ready: no` reason>; to fix it: <its Fix>", for the user to do. On Cursor and VS Code, after item 1 is set up or when the check says ready, the same message also asks, as its last line before the reply line: "And please confirm `browser_run_code_unsafe` and the other unused browser tools are switched off (<where>); it runs any code on this machine." (once per workspace, recorded). Windsurf and other tools whose settings live elsewhere (exit 3): "**Browser for exploring:** I can't see your tool's MCP settings; make sure its `playwright` entry points at `sut/<site>/.env`."
|
|
28
28
|
|
|
29
|
-
Nothing else goes in this message
|
|
29
|
+
Nothing else goes in this message, with one exception that saves a round: when line 7 (the login, which has no default) is still unanswered, the message ends, after the reply line, with "**Login:** paste it with your reply (it goes only into the git-ignored `.env`), or say *I'll add it*." The yes approves only the numbered items; a login pasted in the same reply is written as [conversation.md](conversation.md) item 6. Any other unanswered card line is asked in its own message **after** the setup is done. Only a yes typed after this message counts; the card's "go" never approves it, and it's never bundled with the card or another question. Record message and reply in `decisions.md`. On yes, do the items approved, in order: item 1 with `node .claude/skills/orion/scripts/browser_setup.mjs <URL>` from the workspace root (an existing suite: add `--env-file <its own env file>`, so the browser signs in with the suite's account and no `sut/<site>/` is created) (never edit the file yourself; if it exits 1 or 2, give its warning in one line and use the test project's Playwright); items 2 and 3 with the install commands (the host shows its own prompts). Then one line on what was set up and what needs a reload ("**All set:** the browser for saucedemo (starts after you reload Cursor), Playwright in `sut/saucedemo/`. Exploring now.") and carry on; it never repeats the browser-tools reminder (said once, in the setup message). If the reply brought no login and the site needs one, the same line ends with the login question, once ("…in `sut/saucedemo/`. **Login:** paste it, or say *I'll add it*."), never a separate message. The tracker item (5) is never waited for: it is the user's to do whenever they like, so after **yes** (or **no**, or any reply that isn't "done") the run carries on without it, by [conversation.md](conversation.md) item 2a, in the same turn: explore, then the test-case table titled "Story <PR-1> not read: cases from your request and the site". Never end the turn after this message with only "connect <Jira> or paste the story". A skipped item 1 means the test project's Playwright for this run. **no**, or a skipped item the run can't do without: say in one line what that stops (for example "Without the test project I can't explore or run tests: I'll design the test cases from your description and mark the screens not observed") and carry on with what's possible; don't ask again in this run. "done" or "reloaded" means: run the checks again, then continue.
|
|
30
30
|
|
|
31
31
|
## The card (send it word for word)
|
|
32
32
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
The user wants results and questions, not a narration of the machinery. Everything else follows the output budget in [conversation.md](conversation.md).
|
|
4
4
|
|
|
5
5
|
## Hosts that show their own activity (Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, Windsurf, Grok Build)
|
|
6
|
-
- **No narration, three milestones.** The host already shows each file read, command and tool call. Write only: the one question you need, a result the user can use, a blocker, the deliverable. No "I'll…" lines between tool calls ("I'll pull, free the port and install", "I'll write the suite, then review it"): the first text the user sees is the setup card.
|
|
7
|
-
- **Milestone lines** (a long run otherwise shows minutes of tool output and no sentence): one line, at most three times in a build or full run, each a result that just happened plus what comes next, never a plan: after exploring ("Signed in and mapped 4 pages; all 23 locators matched exactly one element. Designing the test cases."), after the code is reviewed ("8 tests written and reviewed in `sut/shop/tests`. Running them
|
|
6
|
+
- **No narration, three milestones.** The host already shows each file read, command and tool call. Write only: the one question you need, a result the user can use, a blocker, the deliverable. No "I'll…" lines between tool calls ("I'll pull, free the port and install", "I'll write the suite, then review it"), and no reasoning out loud while working ("Next I'll run the regression three times", "The checker wants a results file", "The output was cut off, so I'll rerun it", "I'll fix both"): the first text the user sees is the setup card, and during a build only the three milestones below. Fixing your own checker findings is silent work; its outcome shows in the result.
|
|
7
|
+
- **Milestone lines** (a long run otherwise shows minutes of tool output and no sentence): one line, at most three times in a build or full run, each a result that just happened plus what comes next, never a plan: after exploring ("Signed in and mapped 4 pages; all 23 locators matched exactly one element. Designing the test cases."), after the code is reviewed ("8 tests written and reviewed in `sut/shop/tests`. Running them."), and after a slow install ("Playwright and Chromium installed in `sut/shop/`."). No milestone may restate one already sent.
|
|
8
8
|
- **No step names, icons or prefixes** in chat: never `Understand ·`, `Design ·`, `Mode:`, `Confirmed:`, `⛔`, `📖` or the like. Two exceptions: the one-line confirmation of a decision the user just made, led by **Approved:**, **Updated:**, **Understood, …** or **All set:** ([conversation.md](conversation.md), Voice), and the result: its bold verdict (✅ ⚠️ ❌) and "⚠️ " on its attention lines, the same marks as the report ([conversation.md](conversation.md), "What the user sees"). The steps and gates are internal; they live in the run file.
|
|
9
9
|
- Each message is plain sentences: what you found or did, then what you need (if anything). Numbers come from accepted RESULTs and the run file's `Run state` (UI map, test design, executor's `executed / planned`); no number without its source.
|
|
10
10
|
|
|
@@ -24,14 +24,19 @@ One short plain sentence when a long step starts, because a connected-agent call
|
|
|
24
24
|
[user: go]
|
|
25
25
|
Signed in and mapped 3 pages: login, 6 products each with Add to cart, the cart. All 14 locators matched exactly one element. Designing the test cases.
|
|
26
26
|
[the test-case table: ID · What it checks · Type · Priority · Expected]
|
|
27
|
-
8 test cases, from your request and what the site shows. **Shall I write these?** Reply **go**, or change
|
|
27
|
+
8 test cases, from your request and what the site shows. **Shall I write these?** Reply **go**, or tell me what to change in your own words, like "add a locked-out user" or "drop the fourth one".
|
|
28
28
|
[user: go]
|
|
29
|
-
8 tests written and reviewed in sut/saucedemo/tests. Running them
|
|
30
|
-
**⚠️ Ready, with notes**: 8 tests in `sut/saucedemo/tests`,
|
|
29
|
+
8 tests written and reviewed in sut/saucedemo/tests. Running them.
|
|
30
|
+
**⚠️ Ready, with notes**: 8 tests in `sut/saucedemo/tests`, 7 of 8 pass with retries off; each failed when its check was broken.
|
|
31
|
+
|
|
31
32
|
Login: automated, signed in once per run and the session reused.
|
|
33
|
+
|
|
32
34
|
Coverage: log in → TS-1, TS-2 · add to cart → TS-3 to TS-5 · cart → TS-6 to TS-8.
|
|
33
|
-
|
|
35
|
+
|
|
36
|
+
⚠️ TS-6 fails: the app shows a different locked-out message than the story says. A defect draft is in the report; reply "file it" to send it to Jira.
|
|
37
|
+
|
|
34
38
|
Report: `project-context/runs/R-20261113-1010-cart.report.md`
|
|
39
|
+
|
|
35
40
|
**Accept?** Reply **yes**, or tell me what to change. What next: 1 open the report · 2 the test cases as Excel, PDF, Word or any file · 3 commit to a new branch (I'll ask first)
|
|
36
41
|
```
|
|
37
42
|
With the story read from a connected tracker, choice 2 becomes "push the 8 test cases to Jira, linked to PR-1 (I'll show exactly what first)" and the files move to 3. The coverage line is never a table, even when the report's is.
|
|
@@ -34,7 +34,7 @@ Name files in `inputs`; don't paste their content into the brief. On Claude Code
|
|
|
34
34
|
| implementer (clone task, before Gate 3) | the `git clone` command with its exit code and the clone's absolute path; `Changes` lists only that folder |
|
|
35
35
|
| implementer (Gate 5) | per new or changed locator: the UI map row it came from (or `top-up` rows it added, or `unverified` on a host without a browser); the pattern rules self-check list; a fail check row per new test (or `not run` + reason); compile/collect command with exit code |
|
|
36
36
|
| reviewer (Gate 5) | the `Pattern rules checked` line, the assertion inventory per changed test, and every blocking finding with its rule ID or evidence |
|
|
37
|
-
| executor (Gate 6) | command, exit code, `executed / planned` counts, per-run results for new tests (
|
|
37
|
+
| executor (Gate 6) | command, exit code, `executed / planned` counts, per-run results for new tests (1 counted run, or N for a stability check), report paths |
|
|
38
38
|
| failure-analyst | the class with its evidence line; UI failures: the `heal` capture (fresh snapshot, screenshot, `error-context.md` if Playwright JS/TS) and the changed UI map rows; a heal proposal with same-target proof |
|
|
39
39
|
| evidence-validator (Gate 7) | each summary claim marked supported / unsupported / contradicted |
|
|
40
40
|
A UI story never reaches Gate 5 without a UI map or a recorded `not observed` reason, and scripts are never written before it (`ui-observation`, "Explore once, write after").
|
|
@@ -75,7 +75,7 @@ export function next(b) {
|
|
|
75
75
|
if (b.workflow === 'design') return { wave: 'done', start: [], why: `${done(b)} of ${b.stories.length} stories designed and approved` };
|
|
76
76
|
if (at(b, 'approved').length && !b.foundation) return { wave: 'foundation', start: ['foundation'], why: 'shared page objects, fixtures and helpers built once, before any story' };
|
|
77
77
|
if (at(b, 'approved').length) return { wave: 'build', start: at(b, 'approved').slice(0, k).map((s) => s.key), why: `stories built ${k} at a time, each in its own work copy from the foundation` };
|
|
78
|
-
if (at(b, 'built').length) return { wave: 'verify', start: at(b, 'built').slice(0, Math.min(k, 2)).map((s) => s.key), why: 'review and
|
|
78
|
+
if (at(b, 'built').length) return { wave: 'verify', start: at(b, 'built').slice(0, Math.min(k, 2)).map((s) => s.key), why: 'review and the counted run per story, at most 2 runs at a time on a shared environment' };
|
|
79
79
|
if (at(b, 'verified').length) return { wave: 'integration', start: at(b, 'verified').slice(0, 1).map((s) => s.key), why: 'merged one at a time, graph check and one regression run, then accepted' };
|
|
80
80
|
return { wave: 'done', start: [], why: `${done(b)} of ${b.stories.length} stories accepted` };
|
|
81
81
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Usage (from the workspace root):
|
|
10
10
|
* node .claude/skills/orion/scripts/done_check.mjs --project <test project> --story <KEY> --run <run id>
|
|
11
|
-
* [--existing] [--base <git sha>] [--command "npm test"] [--no-run] [--results project-context/results] [--report <report.md>]
|
|
11
|
+
* [--existing] [--base <git sha>] [--runs <n>] [--command "npm test"] [--no-run] [--results project-context/results] [--report <report.md>]
|
|
12
12
|
* [--result-text <file with the result message>] [--known-failures TS-4,TS-6] [--json]
|
|
13
13
|
* Checks (each PASS, FAIL with the next action, or SKIP with why):
|
|
14
14
|
* project suite_check.mjs reports 0 findings (placeholders, layers, scripts that name missing projects, …); for an
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
* hold for any suite count: placeholders left and scripts that name a missing project
|
|
17
17
|
* command the command the result gives the user exits 0; a failing test is allowed only when it is in
|
|
18
18
|
* --known-failures (an app defect the result reports)
|
|
19
|
-
* runs
|
|
19
|
+
* runs at least --runs results files for this run (default 1; results_parse.mjs output, `<run id>*.json`; a
|
|
20
|
+
* stability check passes --runs 3 or more), and in each, every
|
|
20
21
|
* test of the story passed on its first attempt (retries off), except --known-failures
|
|
21
22
|
* coverage graph.mjs check --story finds no gap (an AC with no case, a case with no test, a test with no case)
|
|
22
23
|
* report report_check.mjs finds nothing in the report
|
|
@@ -34,7 +35,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
|
34
35
|
const HERE = path.dirname(fileURLToPath(import.meta.url));
|
|
35
36
|
|
|
36
37
|
function args(argv) {
|
|
37
|
-
const o = { results: 'project-context/results', known: [] };
|
|
38
|
+
const o = { results: 'project-context/results', known: [], runs: 1 };
|
|
38
39
|
for (let i = 0; i < argv.length; i++) {
|
|
39
40
|
const a = argv[i];
|
|
40
41
|
const v = () => argv[++i];
|
|
@@ -50,6 +51,7 @@ function args(argv) {
|
|
|
50
51
|
else if (a === '--json') o.json = true;
|
|
51
52
|
else if (a === '--existing') o.existing = true;
|
|
52
53
|
else if (a === '--base') o.base = v();
|
|
54
|
+
else if (a === '--runs') { o.runs = Number(v()); if (!Number.isInteger(o.runs) || o.runs < 1) { console.log('done_check: --runs takes a whole number, 1 or more'); process.exit(2); } }
|
|
53
55
|
else { console.log(`done_check: unknown argument ${a}`); process.exit(2); }
|
|
54
56
|
}
|
|
55
57
|
if (!o.project || !o.story || !o.run) {
|
|
@@ -86,6 +88,11 @@ export function checkResultText(text) {
|
|
|
86
88
|
const long = lines.filter((l) => words(l) > 30);
|
|
87
89
|
if (long.length) problems.push(`${long.length} line(s) over 30 words, e.g. "${long[0].slice(0, 60)}…"`);
|
|
88
90
|
if (lines.length > 7) problems.push(`${lines.length} lines before "Accept?" (the 5 lines of conversation.md, at most 2 of them ⚠️)`);
|
|
91
|
+
if (lines.length && !/^\*\*(✅|⚠️|❌)/.test(lines[0].trim())) problems.push('the first line is not the bold verdict (**✅ Ready to accept**, **⚠️ Ready, with notes** or **❌ Not ready**)');
|
|
92
|
+
// Chat windows render Markdown: lines with no blank line between them run together into one paragraph (seen in Cursor).
|
|
93
|
+
if (lines.length >= 3 && !/\n[ \t]*\n/.test(top)) problems.push('the lines run together in Markdown: leave a blank line between them');
|
|
94
|
+
const setup = lines.find((l) => /\b(reload|restart) (Cursor|VS Code|Claude Code|Gemini|Codex|your (AI )?tool)|\bMCP\b|browser_run_code_unsafe|Cursor Settings|report_check|done_check|suite_check|type[- ]?check/i.test(l));
|
|
95
|
+
if (setup) problems.push(`a note about the tools' own setup or Orion's checks: "${setup.trim().slice(0, 60)}…" (it goes in the report, not the result)`);
|
|
89
96
|
return problems;
|
|
90
97
|
}
|
|
91
98
|
|
|
@@ -124,7 +131,7 @@ function main() {
|
|
|
124
131
|
// runs
|
|
125
132
|
const dir = path.resolve(root, o.results);
|
|
126
133
|
const files = fs.existsSync(dir) ? fs.readdirSync(dir).filter((f) => f.startsWith(o.run) && f.endsWith('.json') && !/\.(pw|raw|report)\.json$/.test(f)).sort() : [];
|
|
127
|
-
if (files.length <
|
|
134
|
+
if (files.length < o.runs) add('runs', 'FAIL', `${files.length} results file(s) for ${o.run} in ${o.results}`, 'after each counted run: results_parse.mjs <project>/test-summary/results.json (or the run\'s JSON or JUnit report) --run <run id>-<n> --out project-context/results/<run id>-<n>.json');
|
|
128
135
|
else {
|
|
129
136
|
const bad = [];
|
|
130
137
|
for (const f of files) {
|
|
@@ -138,7 +145,7 @@ function main() {
|
|
|
138
145
|
if (t.status !== 'passed' || (t.attempts || 1) > 1) bad.push(`${f}: ${id} ${t.status}${t.attempts > 1 ? ` after ${t.attempts} attempts` : ''}`);
|
|
139
146
|
}
|
|
140
147
|
}
|
|
141
|
-
if (bad.length) add('runs', 'FAIL', bad.slice(0, 4).join(' | '),
|
|
148
|
+
if (bad.length) add('runs', 'FAIL', bad.slice(0, 4).join(' | '), `a new test passes ${o.runs > 1 ? `${o.runs} of ${o.runs}` : 'its counted run'} with retries off: recovery loop for each test named`);
|
|
142
149
|
else add('runs', 'PASS', `${files.length} recorded runs, every ${o.story} test passed first time`);
|
|
143
150
|
}
|
|
144
151
|
|
|
@@ -28,7 +28,7 @@ import path from 'node:path';
|
|
|
28
28
|
import { spawnSync } from 'node:child_process';
|
|
29
29
|
import { pathToFileURL } from 'node:url';
|
|
30
30
|
|
|
31
|
-
const ALLOWED = /^(npm (test|t|ci|install|i)\b|npm run (test|build|lint|typecheck|check|e2e|verify|smoke|compile)[\w:.-]*|npx (--no-install )?playwright (test|install|show-report|--version)\b|pytest\b|python3? -m pytest\b|py -m pytest\b|mvn\b|\.\/mvnw\b|gradle\b|\.\/gradlew\b|dotnet (test|build|restore)\b|k6 (run|version)\b|newman run\b|npx newman run\b|pip3? install\b|python3? -m pip install\b|node (?!-e\b|--eval\b)(?:[\w.-]+\/)*(?:run|test[\w-]*|[\w-]+\.(?:spec|test))\.(?:m?js|cjs)\b|yarn(\s*$| (test|install)\b| run (test|build|lint|typecheck|check|e2e|verify|smoke|compile)[\w:.-]*)|pnpm (test|install|i|run (test|build|lint|typecheck|check|e2e|verify|smoke|compile)[\w:.-]*)\b)/;
|
|
31
|
+
const ALLOWED = /^(npm (test|t|ci|install|i)\b|npm run (test|build|lint|typecheck|check|e2e|verify|smoke|compile|format)[\w:.-]*|npx (--no-install )?playwright (test|install|show-report|--version)\b|pytest\b|python3? -m pytest\b|py -m pytest\b|mvn\b|\.\/mvnw\b|gradle\b|\.\/gradlew\b|dotnet (test|build|restore|format)\b|npx (--no-install )?prettier\b|ruff (format|check)\b|python3? -m ruff (format|check)\b|k6 (run|version)\b|newman run\b|npx newman run\b|pip3? install\b|python3? -m pip install\b|node (?!-e\b|--eval\b)(?:[\w.-]+\/)*(?:run|test[\w-]*|[\w-]+\.(?:spec|test))\.(?:m?js|cjs)\b|yarn(\s*$| (test|install)\b| run (test|build|lint|typecheck|check|e2e|verify|smoke|compile|format)[\w:.-]*)|pnpm (test|install|i|run (test|build|lint|typecheck|check|e2e|verify|smoke|compile|format)[\w:.-]*)\b)/;
|
|
32
32
|
const KEEP = /(\b(error|errors|failed|failing|failure|fail|exception|traceback|assert(ion)?error|timed? ?out|warning|warn|deprecated|npm err|err!|build (success|failure)|tests? run:|passed|skipped|flaky|did not run|interrupted|expected|received|not found|cannot find|unable to)\b|✘|✗|×|^\s*\d+\) |^\s*at .*\.(spec|test)\.|^={3,}|^-{3,} |^\s*\d+ (passed|failed|skipped|flaky))/i;
|
|
33
33
|
const NOISE = /^\s*at .*(node_modules|internal\/|node:)|^\s*$|^\s*(✓|✔|ok \d+|\[\d+\/\d+\].*(✓|passed))/;
|
|
34
34
|
const SECRET_NAME = /(PASSWORD|PASSWD|TOKEN|SECRET|API[_-]?KEY|AUTH|COOKIE)/i;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Run report: `# <story> · test report`; a bold verdict (✅ ⚠️ ❌) in the first lines; the facts table (| Story |);
|
|
9
9
|
* Coverage, What was added, Run it yourself; a <details> block for engineers; the footer.
|
|
10
10
|
* Assessment: `# <suite> · assessment`; the verdict; the facts table (| Suite |, | Baseline run |, | Findings |); Top
|
|
11
|
-
* issues, Fix it (
|
|
11
|
+
* issues, Fix it (how to ask for fixes in plain words); a <details> block holding the full findings table (| F | Rule | …); the footer. Above the
|
|
12
12
|
* details block: at most 45 lines, and no decision ids (D-nnn), gate numbers, agent names, rule codes, temporary-folder
|
|
13
13
|
* paths or a bare "unknown". Each finding names what to change.
|
|
14
14
|
* Exit code: 0 passes · 1 findings · 2 wrong arguments or unreadable file.
|
|
@@ -36,9 +36,12 @@ export function checkReport(text) {
|
|
|
36
36
|
if (!/^# .+ · (test report|assessment)$/.test(lines[0] || '')) out.push("first line: '# <story title> · test report' (or '# <suite folder> · assessment')");
|
|
37
37
|
const verdicts = assess ? '✅ In good shape · ⚠️ Works, needs fixes · ❌ Serious issues' : '✅ Ready to accept · ⚠️ Ready, with notes · ❌ Not ready';
|
|
38
38
|
if (!lines.slice(1, 5).some((l) => /^\*\*.*(✅|⚠️|❌)/.test(l))) out.push(`no bold verdict (${verdicts}) in the first lines`);
|
|
39
|
+
// A template placeholder left in (`<what was built…>`, `<none | one line each…>`): fill it or remove the line.
|
|
40
|
+
// The template itself (its title is a placeholder) is checked for shape only.
|
|
41
|
+
if (!/^# </.test(lines[0] || '')) lines.forEach((l, i) => { if (/<[A-Za-z✅⚠❌][^<>\n=]*\s[^<>\n=]*>/.test(l) && !/<\/?(details|summary)\b[^>]*>/.test(l) && !/^\s*(```| )/.test(l)) out.push(`line ${i + 1}: a template placeholder is left: ${l.trim().slice(0, 80)}`); });
|
|
39
42
|
const facts = assess ? [/^\| Suite \|/m, /^\| Baseline run \|/m, /^\| Findings \|/m] : [/^\| Story \|/m];
|
|
40
43
|
if (!facts.every((rx) => rx.test(text))) out.push(assess ? 'no facts table (| Suite |, | Baseline run |, | Findings |, | Date |)' : 'no facts table (| Story | … |, | App |, | Tests |, | Runs |, | Date |)');
|
|
41
|
-
const need = assess ? ['## Top issues', '## Fix it', '
|
|
44
|
+
const need = assess ? ['## Top issues', '## Fix it', '<details>', '<summary>All findings and details for engineers</summary>']
|
|
42
45
|
: ['## Coverage', '## What was added', '## Run it yourself', '<details>', '<summary>Details for engineers</summary>'];
|
|
43
46
|
for (const h of need) if (!text.includes(h)) out.push(`missing: ${h}`);
|
|
44
47
|
if (assess && !/^\| F \| Rule \|/m.test(text.split('<details>')[1] || '')) out.push('the full findings table (| F | Rule | … |) is not inside the details block');
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Report draft: writes the run report (templates/project-context/report.md) filled from the run's own data, so an agent
|
|
4
|
+
* completes a few lines instead of writing a report by hand and fixing report_check findings one by one. In a measured
|
|
5
|
+
* single-agent run (Cursor, 2026-11-19) writing the report took about ten rounds of check and fix.
|
|
6
|
+
*
|
|
7
|
+
* Usage (from the workspace root):
|
|
8
|
+
* node .claude/skills/orion/scripts/report_make.mjs --project <test project> --story <KEY> --run <run id>
|
|
9
|
+
* [--title "<story title>"] [--app <base URL>] [--command "npm test"] [--out project-context/runs/<run id>.report.md]
|
|
10
|
+
* Reads: project-context/test-designs/<story>/design.md (the AC table `| AC… | Meaning |` and the case table
|
|
11
|
+
* `| ID | What it checks | … | AC |`), project-context/results/<run id>-*.json (results_parse output; the runner's raw
|
|
12
|
+
* .pw.json is skipped), the run file's `fail checks <done>/<new>` line, the project's package.json and its git status.
|
|
13
|
+
* Writes the draft (it never overwrites a report without --force) and prints the lines still to fill: each is a
|
|
14
|
+
* `<…>` placeholder that report_check reports until it is filled or removed.
|
|
15
|
+
* Exit code: 0 written · 1 nothing to report (no results files) · 2 wrong arguments.
|
|
16
|
+
*/
|
|
17
|
+
import fs from 'node:fs';
|
|
18
|
+
import path from 'node:path';
|
|
19
|
+
import { spawnSync } from 'node:child_process';
|
|
20
|
+
import { pathToFileURL } from 'node:url';
|
|
21
|
+
|
|
22
|
+
/** Rows of the first Markdown table whose header matches `head`. */
|
|
23
|
+
export function table(text, head) {
|
|
24
|
+
const lines = text.replace(/\r/g, '').split('\n');
|
|
25
|
+
const i = lines.findIndex((l) => head.test(l));
|
|
26
|
+
if (i < 0) return [];
|
|
27
|
+
const cols = lines[i].split('|').slice(1, -1).map((c) => c.trim());
|
|
28
|
+
const rows = [];
|
|
29
|
+
for (let j = i + 2; j < lines.length && lines[j].trim().startsWith('|'); j++) {
|
|
30
|
+
const cells = lines[j].split('|').slice(1, -1).map((c) => c.trim());
|
|
31
|
+
rows.push(Object.fromEntries(cols.map((c, k) => [c, cells[k] ?? ''])));
|
|
32
|
+
}
|
|
33
|
+
return rows;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Per case id: how many recorded runs it passed first time, out of how many it ran in. */
|
|
37
|
+
export function tally(resultFiles, story) {
|
|
38
|
+
const out = new Map();
|
|
39
|
+
for (const f of resultFiles) {
|
|
40
|
+
let d;
|
|
41
|
+
try { d = JSON.parse(fs.readFileSync(f, 'utf8')); } catch { continue; }
|
|
42
|
+
for (const t of d.tests || []) {
|
|
43
|
+
if (!t.test_id || (t.story && t.story !== story)) continue;
|
|
44
|
+
const id = String(t.test_id).replace(/^.*:/, '');
|
|
45
|
+
const c = out.get(id) || { pass: 0, runs: 0, title: t.title, file: t.file };
|
|
46
|
+
c.runs++;
|
|
47
|
+
if (t.status === 'passed' && (t.attempts || 1) === 1) c.pass++;
|
|
48
|
+
out.set(id, c);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return out;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const pick = (o, ...names) => { for (const n of names) for (const k of Object.keys(o)) if (k.toLowerCase().startsWith(n)) return o[k]; return ''; };
|
|
55
|
+
|
|
56
|
+
/** Files as at most 6 lines: the test files by name, the rest by folder with a count. */
|
|
57
|
+
export function grouped(files, testFiles = []) {
|
|
58
|
+
if (files.length > 10) {
|
|
59
|
+
const tests = files.filter((f) => testFiles.includes(f));
|
|
60
|
+
const folders = [...new Set(files.filter((f) => !tests.includes(f)).map((f) => (f.includes('/') ? f.split('/')[0] + '/' : 'project root')))];
|
|
61
|
+
return [...tests.slice(0, 4).map((f) => `- **Tests:** \`${f}\``), `- **With them:** ${files.length - tests.length} files in ${folders.slice(0, 8).map((x) => (x === 'project root' ? x : `\`${x}\``)).join(', ')}${folders.length > 8 ? ' and more' : ''}`].join('\n');
|
|
62
|
+
}
|
|
63
|
+
const by = new Map();
|
|
64
|
+
for (const f of files) { const d = path.posix.dirname(f); by.set(d, [...(by.get(d) || []), path.posix.basename(f)]); }
|
|
65
|
+
const lines = [...by].map(([d, fs]) => (fs.length <= 2 ? fs.map((x) => `\`${d === '.' ? x : `${d}/${x}`}\``).join(', ') : d === '.' ? `${fs.length} files in the project root` : `\`${d}/\` (${fs.length} files)`));
|
|
66
|
+
return (lines.length > 6 ? [...lines.slice(0, 5), `and ${lines.length - 5} more folders (git status)`] : lines).map((l) => `- ${l}`).join('\n');
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function draft(o, data) {
|
|
70
|
+
const { acRows, caseRows, counts, runs, fail, tool, testDir, command, files, date } = data;
|
|
71
|
+
const ids = [...counts.keys()].sort((a, b) => a.localeCompare(b, 'en', { numeric: true }));
|
|
72
|
+
const allPass = ids.length && ids.every((id) => counts.get(id).pass === counts.get(id).runs && counts.get(id).runs >= 3);
|
|
73
|
+
const passedEach = runs ? `${ids.filter((id) => counts.get(id).pass === counts.get(id).runs).length}/${ids.length}` : '0';
|
|
74
|
+
const verdict = allPass ? '✅ Ready to accept' : '<⚠️ Ready, with notes | ❌ Not ready>';
|
|
75
|
+
const failLine = fail ? (fail[0] === fail[1] ? 'each new test also failed when its check was broken' : `fail check: ${fail[0]} of ${fail[1]} new tests`) : '<each new test also failed when its check was broken | fail check not run: reason>';
|
|
76
|
+
const covered = new Set();
|
|
77
|
+
const cov = [];
|
|
78
|
+
const caseOf = (id) => caseRows.find((r) => pick(r, 'id') === id) || {};
|
|
79
|
+
const res = (id) => (counts.has(id) ? `${counts.get(id).pass === counts.get(id).runs ? '✅' : '❌'} ${counts.get(id).pass}/${counts.get(id).runs}` : 'not run');
|
|
80
|
+
for (const ac of acRows) {
|
|
81
|
+
const acId = pick(ac, 'ac');
|
|
82
|
+
const cases = caseRows.filter((r) => pick(r, 'ac').split(/[,\s]+/).includes(acId));
|
|
83
|
+
if (!cases.length) { cov.push(`| ${pick(ac, 'meaning', 'criterion', 'requirement')} | not covered: <reason> | — |`); continue; }
|
|
84
|
+
const cids = cases.map((c) => pick(c, 'id'));
|
|
85
|
+
cids.forEach((id) => covered.add(id));
|
|
86
|
+
const results = [...new Set(cids.map(res))];
|
|
87
|
+
const tests = cids.length === 1 ? `${cids[0]} ${pick(cases[0], 'what')}` : cids.join(', ');
|
|
88
|
+
cov.push(`| ${pick(ac, 'meaning', 'criterion', 'requirement')} | ${tests} | ${results.length === 1 ? results[0] + (cids.length > 1 ? ' each' : '') : cids.map((id) => `${id} ${res(id)}`).join(' · ')} |`);
|
|
89
|
+
}
|
|
90
|
+
for (const id of ids) if (!covered.has(id)) cov.push(`| ${pick(caseOf(id), 'what') || counts.get(id).title} *(added)* | ${id} ${pick(caseOf(id), 'what') || counts.get(id).title} | ${res(id)} |`);
|
|
91
|
+
const n = ids.length;
|
|
92
|
+
const title = o.title || `<${o.story} story title>`;
|
|
93
|
+
return `# ${title} · test report
|
|
94
|
+
|
|
95
|
+
**${verdict}**: ${allPass ? `${n} new test${n === 1 ? '' : 's'}, all passed in ${runs} run${runs === 1 ? '' : 's'} in a row` : '<what was built and how it ran>'}${allPass && fail && fail[0] === fail[1] ? '; each failed when its check was broken' : ''}.
|
|
96
|
+
|
|
97
|
+
| | |
|
|
98
|
+
|---|---|
|
|
99
|
+
| Story | ${o.story}${o.title ? ` · ${o.title}` : ''} |
|
|
100
|
+
| App | ${o.app || '<base URL> (<test environment>)'} |
|
|
101
|
+
| Tests | ${n} ${tool} tests · \`${testDir}\` |
|
|
102
|
+
| Runs | ${runs} runs, retries off: ${passedEach} passed each time · ${failLine} |
|
|
103
|
+
| Date | ${date} |
|
|
104
|
+
|
|
105
|
+
## Coverage
|
|
106
|
+
| Requirement | Test | Result |
|
|
107
|
+
|---|---|---|
|
|
108
|
+
${cov.join('\n') || '| <requirement> | <TS-n> | <result> |'}
|
|
109
|
+
|
|
110
|
+
## Needs your attention
|
|
111
|
+
- ${allPass ? 'Nothing: every requirement above has a passing test.' : '<one line each, most important first, each ending with what to do>'}
|
|
112
|
+
|
|
113
|
+
## What was added
|
|
114
|
+
${files.length ? grouped(files, data.testFiles || []) : '- <files>'}
|
|
115
|
+
|
|
116
|
+
## Run it yourself
|
|
117
|
+
\`\`\`
|
|
118
|
+
cd ${o.project}
|
|
119
|
+
${command}
|
|
120
|
+
\`\`\`
|
|
121
|
+
|
|
122
|
+
<details>
|
|
123
|
+
<summary>Details for engineers</summary>
|
|
124
|
+
|
|
125
|
+
- **Runs:** ${runs} recorded runs in \`project-context/results/\` (${o.run}-1 … ${o.run}-${runs}); the run summary page is \`${path.join(o.project, 'test-summary', 'index.html').split(path.sep).join('/')}\`.
|
|
126
|
+
- **Review:** <blocking findings n (fixed) · suggestions n>
|
|
127
|
+
- **Failures and fixes during the run:** <none | one line each: test · cause · what was done>
|
|
128
|
+
- **Approvals:** <setup confirmed · test cases accepted · installs approved>
|
|
129
|
+
- **Not checked:** <anything not confirmed, and why | nothing>
|
|
130
|
+
|
|
131
|
+
</details>
|
|
132
|
+
|
|
133
|
+
_Written by Orion's agents from checked results. Not yet accepted._
|
|
134
|
+
`;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function main() {
|
|
138
|
+
const argv = process.argv.slice(2);
|
|
139
|
+
const o = { force: false };
|
|
140
|
+
for (let i = 0; i < argv.length; i++) {
|
|
141
|
+
const k = argv[i];
|
|
142
|
+
if (k === '--force') o.force = true;
|
|
143
|
+
else if (k.startsWith('--')) o[k.slice(2)] = argv[++i];
|
|
144
|
+
}
|
|
145
|
+
if (!o.project || !o.story || !o.run) { console.log('usage: node .claude/skills/orion/scripts/report_make.mjs --project <test project> --story <KEY> --run <run id> [--title …] [--app <url>] [--out <file>]'); process.exit(2); }
|
|
146
|
+
const out = o.out || path.join('project-context', 'runs', `${o.run}.report.md`);
|
|
147
|
+
if (fs.existsSync(out) && !o.force) { console.log(`report_make: ${out} exists; pass --force to write a new draft over it`); process.exit(2); }
|
|
148
|
+
const resDir = path.join('project-context', 'results');
|
|
149
|
+
const resultFiles = fs.existsSync(resDir) ? fs.readdirSync(resDir).filter((f) => f.startsWith(o.run) && f.endsWith('.json') && !/\.(pw|raw|report)\.json$/.test(f)).sort().map((f) => path.join(resDir, f)) : [];
|
|
150
|
+
if (!resultFiles.length) { console.log(`report_make: no results files for ${o.run} in ${resDir} (results_parse after each counted run)`); process.exit(1); }
|
|
151
|
+
const designFile = path.join('project-context', 'test-designs', o.story, 'design.md');
|
|
152
|
+
const design = fs.existsSync(designFile) ? fs.readFileSync(designFile, 'utf8') : '';
|
|
153
|
+
const acRows = table(design, /^\|\s*AC\b[^|]*\|\s*(Meaning|Criterion|Requirement)/i);
|
|
154
|
+
const caseRows = table(design, /^\|\s*ID\s*\|\s*What it checks/i);
|
|
155
|
+
const counts = tally(resultFiles, o.story);
|
|
156
|
+
const runFile = path.join('project-context', 'runs', `${o.run}.md`);
|
|
157
|
+
const rf = fs.existsSync(runFile) ? fs.readFileSync(runFile, 'utf8') : '';
|
|
158
|
+
const fm = rf.match(/fail checks (\d+)\/(\d+)/);
|
|
159
|
+
const pkgFile = path.join(o.project, 'package.json');
|
|
160
|
+
const pkg = fs.existsSync(pkgFile) ? JSON.parse(fs.readFileSync(pkgFile, 'utf8')) : null;
|
|
161
|
+
const deps = pkg ? { ...pkg.dependencies, ...pkg.devDependencies } : {};
|
|
162
|
+
const ts = fs.existsSync(path.join(o.project, 'tsconfig.json'));
|
|
163
|
+
const tool = deps['@playwright/test'] ? `UI · Playwright + ${ts ? 'TypeScript' : 'JavaScript'}` : fs.existsSync(path.join(o.project, 'pom.xml')) ? 'Java' : fs.existsSync(path.join(o.project, 'pytest.ini')) ? 'Python (pytest)' : '<tool + language>';
|
|
164
|
+
// Results name files relative to the runner's test folder (`ui/x.spec.js`): find each one in the project.
|
|
165
|
+
const all = [];
|
|
166
|
+
const walk = (d, rel) => { for (const e of fs.readdirSync(d, { withFileTypes: true })) { if (['node_modules', '.git', 'test-results', 'playwright-report', 'test-summary'].includes(e.name)) continue; const r = rel ? `${rel}/${e.name}` : e.name; if (e.isDirectory()) walk(path.join(d, e.name), r); else all.push(r); } };
|
|
167
|
+
if (fs.existsSync(o.project)) walk(o.project, '');
|
|
168
|
+
const testFiles = [...new Set([...counts.values()].map((c) => c.file).filter(Boolean).map((f) => f.replace(/^(\.\.\/)+/, '')).map((f) => all.find((a) => a === f || a.endsWith(`/${f}`)) || f))];
|
|
169
|
+
const testDir = testFiles.length ? path.posix.join(o.project.split(path.sep).join('/'), path.posix.dirname(testFiles[0])) : o.project;
|
|
170
|
+
const command = o.command || (pkg && pkg.scripts && pkg.scripts.test ? 'npm test' : '<one command>');
|
|
171
|
+
let files = [];
|
|
172
|
+
// Changed and new files, relative to the project (git ls-files answers relative to the folder it runs in).
|
|
173
|
+
const git = spawnSync('git', ['ls-files', '--modified', '--others', '--exclude-standard'], { cwd: o.project, encoding: 'utf8' });
|
|
174
|
+
if (git.status === 0 && git.stdout.trim()) files = [...new Set(git.stdout.trim().split('\n'))].filter((f) => !/(^|\/)(node_modules|test-results|playwright-report|test-summary|auth)\/|\.env$|package-lock\.json$/.test(f));
|
|
175
|
+
if (!files.length) files = testFiles;
|
|
176
|
+
const runs = Math.max(0, ...[...counts.values()].map((c) => c.runs));
|
|
177
|
+
const date = new Date().toLocaleDateString('en-GB', { day: 'numeric', month: 'short', year: 'numeric' });
|
|
178
|
+
const text = draft(o, { testFiles, acRows, caseRows, counts, runs, fail: fm ? [Number(fm[1]), Number(fm[2])] : null, tool, testDir, command, files, date });
|
|
179
|
+
fs.mkdirSync(path.dirname(out), { recursive: true });
|
|
180
|
+
fs.writeFileSync(out, text);
|
|
181
|
+
const todo = text.split('\n').map((l, i) => [i + 1, l]).filter(([, l]) => /<[^<>\n]*\s[^<>\n]*>/.test(l) && !/<\/?(details|summary)>/.test(l));
|
|
182
|
+
console.log(`report draft: ${out} · ${counts.size} cases · ${runs} runs${design ? '' : ' · no design.md: coverage from results only'}`);
|
|
183
|
+
console.log(todo.length ? `fill ${todo.length} line(s), then run report_check.mjs ${out}:\n${todo.map(([n, l]) => ` ${n}: ${l.slice(0, 120)}`).join('\n')}` : `nothing to fill; run report_check.mjs ${out}`);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) main();
|
|
@@ -170,6 +170,13 @@ function main() {
|
|
|
170
170
|
try {
|
|
171
171
|
const j = JSON.parse(text);
|
|
172
172
|
if (Array.isArray(j.suites) && j.stats) { format = 'playwright-json'; found = parsePlaywrightJson(j, rel); }
|
|
173
|
+
// The starters' run summary (test-summary/results.json), written on every run by reporters/summaryReporter.
|
|
174
|
+
else if (j.format === 'orion-summary/1' && Array.isArray(j.tests)) {
|
|
175
|
+
format = 'orion-summary';
|
|
176
|
+
found = j.tests.map((t) => ({ title: String(t.title || ''), file: String(t.file || '').replace(/:\d+$/, ''), project: t.project || null,
|
|
177
|
+
status: ['passed', 'failed', 'flaky', 'skipped'].includes(t.status) ? t.status : 'failed', duration_ms: t.duration_ms ?? null,
|
|
178
|
+
attempts: t.attempts || 1, failure_sig: t.failure_sig ? signature(String(t.failure_sig)) : null, source: rel }));
|
|
179
|
+
}
|
|
173
180
|
// A run that failed before any test (global setup, sign-in, config) lists it in errors[]: say so, never "no tests".
|
|
174
181
|
if (Array.isArray(j.errors) && j.errors.length) runErrors.push(`${rel}: ${String(j.errors[0].message || j.errors[0].value || j.errors[0]).split('\n')[0].replace(/((?:password|passwd|token|secret)\s*[=:]\s*)\S+/gi, '$1***').slice(0, 200)}`);
|
|
175
182
|
} catch { /* not JSON */ }
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
- <one line each, at most 3, e.g. "Page objects for every screen; tests read like user steps.">
|
|
19
19
|
|
|
20
20
|
## Fix it
|
|
21
|
-
`/orion fix A-<id
|
|
21
|
+
Say which findings to fix, in your own words: *fix F-2 and F-5*, or *do the quick wins* (shortcut: `/orion fix A-<id>`). You tick the findings you want fixed. Each fix is made on a separate local branch, run, and kept only if the suite still tests at least what it did; nothing you don't tick is touched.
|
|
22
22
|
|
|
23
23
|
<details>
|
|
24
24
|
<summary>All findings and details for engineers</summary>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# <Story title> · test report
|
|
2
2
|
|
|
3
|
-
**<✅ Ready to accept | ⚠️ Ready, with notes | ❌ Not ready>**: <one sentence: what was built and how it ran, e.g. "6 new tests for login and logout, all passed
|
|
3
|
+
**<✅ Ready to accept | ⚠️ Ready, with notes | ❌ Not ready>**: <one sentence: what was built and how it ran, e.g. "6 new tests for login and logout, all passed with retries off; no app bugs found.">
|
|
4
4
|
|
|
5
5
|
| | |
|
|
6
6
|
|---|---|
|
|
7
7
|
| Story | <key and title, or the request in a few words> |
|
|
8
8
|
| App | <base URL> (<test environment name>) |
|
|
9
9
|
| Tests | <n> <UI · API> tests · <tool + language> · `<test folder inside the workspace>` |
|
|
10
|
-
| Runs | <
|
|
10
|
+
| Runs | <1 counted run, retries off: n/n passed (stability check: N runs, n/n each time)> · <each new test also failed when its check was broken | fail check not run: reason> |
|
|
11
11
|
| Date | <d Mon yyyy> |
|
|
12
12
|
|
|
13
13
|
## Coverage
|
|
@@ -27,7 +27,7 @@ Adapter rules: holds only what differs from the capability skills; the project's
|
|
|
27
27
|
- `publishVerificationResult` and `providerVersion` (the git SHA) only in CI and only with H9 [S3]; tokens (`pactBrokerToken`) from the environment.
|
|
28
28
|
|
|
29
29
|
## Run
|
|
30
|
-
- Consumer: the project's runner on the contract tests (`npm run test:contract`, i.e. `node --test "tests/contract/**/*.test.js"`; a bare folder path fails on Node 22; or `npx jest test/contract`),
|
|
30
|
+
- Consumer: the project's runner on the contract tests (`npm run test:contract`, i.e. `node --test "tests/contract/**/*.test.js"`; a bare folder path fails on Node 22; or `npx jest test/contract`), once for new tests (a stability check on request: N times) [M1].
|
|
31
31
|
- Provider: the verification script against the provider running locally or in a test environment (H6 for a shared one) [M3].
|
|
32
32
|
- **Local verification behind a proxy:** clear `HTTP_PROXY` / `HTTPS_PROXY` for that command (`env -u HTTPS_PROXY -u HTTP_PROXY …`), or every interaction fails with the proxy's 403 (M5).
|
|
33
33
|
- Fail checks: consumer, point the client at a wrong path or field and show the test failing on `mismatches` (M2); provider, change one response field's type and show the verifier naming it (M4). Restore both.
|
|
@@ -32,7 +32,7 @@ Adapter rules: holds only what differs from the capability skills; the project's
|
|
|
32
32
|
## Run
|
|
33
33
|
- Use the project's script if present (`npm test`, `npm run e2e`). Otherwise `npx playwright test`.
|
|
34
34
|
- Scope: `npx playwright test <file>` · `-g "<title>"` · `--project=<name>`. A suite on the suite architecture runs by project: `--project=regression` (UI), `--project=api`, `--project=unit`, `--project=smoke`; the `setup` project runs first on its own (a `--grep` keeps it).
|
|
35
|
-
- New tests: `npx playwright test <files> --repeat-each
|
|
35
|
+
- New tests: `npx playwright test <files> --retries=0`, once. A stability check the user asks for: `--repeat-each=<N> --retries=0` (default 3; all N must agree; on the suite architecture add the spec's project, e.g. `--project=regression`, so a test isn't counted twice through `smoke`).
|
|
36
36
|
- Flaky: Playwright reports tests that passed on retry as `flaky` in the summary line; record that count, never fold it into passed.
|
|
37
37
|
- Fail check: change the expected value of the main assertion, run the single test with `-g`, confirm it fails **on that assertion** (not on an earlier wait or visibility check), restore.
|
|
38
38
|
- A quantity change: read the count before the action (`await quantity.inputValue()` or the cell's text), act, then assert `toHaveValue(String(before + added))` / `toHaveText(...)`; never assert a fixed 1 on a state you didn't measure.
|
|
@@ -51,7 +51,7 @@ Same rules (role, label and test-id locators; web-first assertions; no fixed wai
|
|
|
51
51
|
| Locator | `page.getByRole('button', { name: 'Log in' })` | `page.get_by_role("button", name="Log in")` | `Page.GetByRole(AriaRole.Button, new() { Name = "Log in" })` |
|
|
52
52
|
| Assertion | `await expect(loc).toBeVisible()` | `expect(loc).to_be_visible()` | `await Expect(loc).ToBeVisibleAsync()` |
|
|
53
53
|
| Fixtures / setup | `test.extend` | pytest fixtures (`page`, `context`, `browser`, `base_url`) | `PageTest` base class, `ContextOptions()` |
|
|
54
|
-
|
|
|
54
|
+
| Stability check, N× (on request) | `--repeat-each=<N> --retries=0` | the command N times | the command N times |
|
|
55
55
|
| Trace on failure | config `trace: 'retain-on-failure'` | `--tracing retain-on-failure` | `Context.Tracing.StartAsync` / `StopAsync` in setup and teardown |
|
|
56
56
|
|
|
57
57
|
## Failure signals
|
|
@@ -6,7 +6,7 @@ Use this for desktop apps built on Electron (Windows, macOS, Linux). Native Wind
|
|
|
6
6
|
- **Detect:** `electron` in the app's package.json and tests importing `_electron` from `playwright` (or `@playwright/test`).
|
|
7
7
|
- **Launch:** `const app = await _electron.launch({ args: ['<main script>'] })`; `const window = await app.firstWindow()` gives a normal `Page`, so locators, web-first assertions and fixtures work as in the main adapter [E1]. Code in the main process: `app.evaluate(...)`.
|
|
8
8
|
- **Write:** same locator order as web (`getByRole`, `getByLabel`, `getByTestId`); put the launch in a fixture that closes the app in teardown (`await app.close()`), even on failure.
|
|
9
|
-
- **Run:** the project's Playwright command; new tests `--repeat-each
|
|
9
|
+
- **Run:** the project's Playwright command; new tests `--retries=0`, once (a stability check adds `--repeat-each=<N>`). On Linux CI the app needs a display (`xvfb-run`).
|
|
10
10
|
- **Versions:** check the Electron versions Playwright supports on the page [E1]; an unsupported version → NEEDS_ENVIRONMENT.
|
|
11
11
|
- **Failure signals:** launch timeout or "Process failed to launch" → NEEDS_ENVIRONMENT; locator timeouts → as in the main adapter.
|
|
12
12
|
|
|
@@ -13,7 +13,7 @@ config (environment first, then `.env`; nothing is read or thrown on import) →
|
|
|
13
13
|
| `{{USERNAME_LABEL}}`, `{{PASSWORD_LABEL}}`, `{{SUBMIT_LABEL}}` | the sign-in form's labels as observed (UI map) |
|
|
14
14
|
| `{{SIGNED_IN_ROLE}}` (.NET: `{{SIGNED_IN_ARIA_ROLE}}`, an `AriaRole` member such as `Heading`) | the role of the element that greets the signed-in user, as observed |
|
|
15
15
|
| `{{SIGNED_IN_TEXT}}`, `{{LOGIN_ERROR_TEXT}}` | the expected greeting and wrong-password message, from the requirement (or as observed, said so) |
|
|
16
|
-
| versions (`PLAYWRIGHT_VERSION`, `TYPES_NODE_VERSION`, `TYPESCRIPT_VERSION` (TypeScript), `PYTEST_PLAYWRIGHT_VERSION`, `PYTEST_VERSION`, `PLAYWRIGHT_DOTNET_VERSION`, `TEST_SDK_VERSION`, `NUNIT_ADAPTER_VERSION`) | looked up at init (`npm view`, `pip index versions`, `dotnet package search`) and recorded |
|
|
16
|
+
| versions (`PLAYWRIGHT_VERSION`, `TYPES_NODE_VERSION`, `TYPESCRIPT_VERSION` (TypeScript), `PRETTIER_VERSION` (JavaScript and TypeScript), `PYTEST_PLAYWRIGHT_VERSION`, `PYTEST_VERSION`, `PLAYWRIGHT_DOTNET_VERSION`, `TEST_SDK_VERSION`, `NUNIT_ADAPTER_VERSION`) | looked up at init (`npm view`, `pip index versions`, `dotnet package search`) and recorded |
|
|
17
17
|
|
|
18
18
|
If the app has no sign-in (JavaScript and TypeScript starters): delete `setup/`; in the config the `setup` and `teardown` projects, `signedIn`, and the `dependencies` and `storageState` entries (UI projects then `use: desktop`); `pageObjects/loginPage` and its fixture; `tests/ui/signIn.spec`, `tests/api/session.spec` and `resources/desc/signIn.desc`. Start with the story's first page. `suite_check.mjs` then reports the app as having no sign-in and skips the sign-in-once checks (done this way for the quality-checks run, 2026-11-12). Other starters: delete the login page, the sign-in flow, its data and the smoke tests.
|
|
19
19
|
|