@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.
Files changed (160) hide show
  1. package/HOW_TO_USE.md +190 -189
  2. package/README.md +12 -12
  3. package/THIRD_PARTY_NOTICES.md +2 -2
  4. package/dist/docs-site/architecture-map/index.html +6 -6
  5. package/dist/docs-site/docs/architecture/index.html +31 -31
  6. package/dist/docs-site/docs/containers/index.html +9 -10
  7. package/dist/docs-site/docs/custom-agents-first-run/index.html +5 -5
  8. package/dist/docs-site/docs/desktop/index.html +8 -10
  9. package/dist/docs-site/docs/feature-test-prompts/index.html +4 -4
  10. package/dist/docs-site/docs/graphify/index.html +1 -1
  11. package/dist/docs-site/docs/index.html +214 -165
  12. package/dist/docs-site/docs/mobile/index.html +6 -6
  13. package/dist/docs-site/docs/model-routing/index.html +58 -10
  14. package/dist/docs-site/docs/product-graph/index.html +3 -3
  15. package/dist/docs-site/docs/product-views/index.html +1 -1
  16. package/dist/docs-site/docs/search.js +1 -1
  17. package/dist/docs-site/docs/web-app/index.html +6 -6
  18. package/dist/forgeqe.js +1858 -1825
  19. package/dist/template.html +69 -69
  20. package/dist/web/assets/Agent-BF6goYbq.js +8 -0
  21. package/dist/web/assets/ApiTests-08El24XV.js +10 -0
  22. package/dist/web/assets/Browse-DB7lNo6R.js +2 -0
  23. package/dist/web/assets/Chat-Co7EJfA9.js +5 -0
  24. package/dist/web/assets/{CommandPalette-CAAPFMZn.js → CommandPalette-BkNNac9P.js} +1 -1
  25. package/dist/web/assets/{Compare-DZfbMjDK.js → Compare-Ce214eXq.js} +1 -1
  26. package/dist/web/assets/Cost-B_oVlEve.js +1 -0
  27. package/dist/web/assets/Data-BNXAWpvT.js +6 -0
  28. package/dist/web/assets/Desktop-Dnsmc_L-.js +1 -0
  29. package/dist/web/assets/DesktopReview-C7SG_gBt.js +1 -0
  30. package/dist/web/assets/{Evidence-CijYL67k.js → Evidence-C6PtAQ6y.js} +1 -1
  31. package/dist/web/assets/{Explore-DZ5PoVZp.js → Explore-BN8zgzmv.js} +2 -2
  32. package/dist/web/assets/{Features-BvZfZIb7.js → Features-DRONEGA3.js} +1 -1
  33. package/dist/web/assets/{Flags-B_-HOAeZ.js → Flags-CF8Zboey.js} +2 -2
  34. package/dist/web/assets/{Flaky-CWyV0rE3.js → Flaky-B6IYRvE2.js} +1 -1
  35. package/dist/web/assets/Impact-DglYEuEY.js +3 -0
  36. package/dist/web/assets/Jobs-BX-DXp28.js +5 -0
  37. package/dist/web/assets/KindPage-ByaxfUiE.js +6 -0
  38. package/dist/web/assets/Migration-wVEuZ3zr.js +2 -0
  39. package/dist/web/assets/Product-Bcv7xIYx.js +7 -0
  40. package/dist/web/assets/{Production-Dakb3WS-.js → Production-DTdUc-ze.js} +1 -1
  41. package/dist/web/assets/{Quality-CcrANX20.js → Quality-B0MRg6wI.js} +1 -1
  42. package/dist/web/assets/{Readiness-DvYQ17Oh.js → Readiness-XpGisxdv.js} +1 -1
  43. package/dist/web/assets/Record-C0vcXk-u.js +2 -0
  44. package/dist/web/assets/Regression-CthpK77C.js +5 -0
  45. package/dist/web/assets/{RelationGraph-evMcSFoO.js → RelationGraph-MHWsIy8b.js} +1 -1
  46. package/dist/web/assets/Reports-Cy1MvUqg.js +2 -0
  47. package/dist/web/assets/Response-53IPohSg.js +4 -0
  48. package/dist/web/assets/RunDiff-BQH6Wacd.js +1 -0
  49. package/dist/web/assets/Runs-IwZWhlyu.js +2 -0
  50. package/dist/web/assets/Steps-DKCrz0ed.js +2 -0
  51. package/dist/web/assets/{TestCases-93xQKkMT.js → TestCases-Bt81xr3X.js} +1 -1
  52. package/dist/web/assets/TestData-CXRhxaD8.js +2 -0
  53. package/dist/web/assets/{TestDebt-CE62ftuJ.js → TestDebt-DM5VeTwn.js} +1 -1
  54. package/dist/web/assets/Tosca-B42EZ5YF.js +3 -0
  55. package/dist/web/assets/{WhatsNew-lX-LhWKt.js → WhatsNew-D3yHnxgW.js} +1 -1
  56. package/dist/web/assets/agentLink-BlI6CU6m.js +1 -0
  57. package/dist/web/assets/{dataParts-LCnV1x8c.js → dataParts-B0tYVMhQ.js} +2 -2
  58. package/dist/web/assets/{families-DLmHA4rL.js → families-DGOQO6Mu.js} +1 -1
  59. package/dist/web/assets/filters-Btr3PTRn.js +1 -0
  60. package/dist/web/assets/{fold-pif2b5qg.js → fold-B_G_xXZM.js} +1 -1
  61. package/dist/web/assets/frame-CU0pSxTD.js +18 -0
  62. package/dist/web/assets/index-CCNq91up.js +68 -0
  63. package/dist/web/assets/index-D6jp6pDW.css +2 -0
  64. package/dist/web/assets/{logos-gqcS1A90.js → logos-DpiYLP3H.js} +1 -1
  65. package/dist/web/assets/{markdown-BcuknPlh.js → markdown-Dn8IZFhS.js} +5 -5
  66. package/dist/web/assets/{paletteCommands-qeRU49pp.js → paletteCommands-DKcFFV7I.js} +1 -1
  67. package/dist/web/assets/{parts-C7nGHnut.js → parts-Ct3kXHNO.js} +1 -1
  68. package/dist/web/assets/{productParts-3lWHIbdH.js → productParts-IDyVJAgM.js} +1 -1
  69. package/dist/web/assets/{qualityParts-B-TQusS6.js → qualityParts-Db6YfFIY.js} +1 -1
  70. package/dist/web/assets/recordTest-_r_cdTC6.js +1 -0
  71. package/dist/web/assets/{rows-vVKLONno.js → rows-De2l3NFN.js} +1 -1
  72. package/dist/web/assets/{segmented-Bi4QAoQY.js → segmented-CHGzMxbS.js} +1 -1
  73. package/dist/web/assets/{usePageChat-De5Fn1X3.js → usePageChat-CpAYTNqJ.js} +1 -1
  74. package/dist/web/index.html +5 -5
  75. package/docs/ARCHITECTURE.md +30 -30
  76. package/docs/BUSINESS_ASSURANCE.md +7 -7
  77. package/docs/CONTAINERS.md +8 -10
  78. package/docs/CUSTOM_AGENTS_FIRST_RUN.md +4 -4
  79. package/docs/DESKTOP.md +8 -10
  80. package/docs/GRAPHIFY.md +1 -1
  81. package/docs/MOBILE.md +6 -6
  82. package/docs/MODEL_ROUTING.md +57 -9
  83. package/docs/PRODUCT_KNOWLEDGE.md +3 -3
  84. package/docs/PRODUCT_VIEWS.md +1 -1
  85. package/docs/WEB_APP.md +6 -6
  86. package/docs/demo-qi-commerce.md +30 -30
  87. package/docs/feature-test-prompts.md +3 -3
  88. package/docs/prompts/graphify-evidence.md +3 -3
  89. package/docs/security-data-flow.html +23 -23
  90. package/docs/user-guide.html +214 -165
  91. package/docs/walkthrough/hotfix-narration.md +19 -19
  92. package/docs/walkthrough/index.html +26 -26
  93. package/env.example.yaml +1 -1
  94. package/evals/evidence/records/forgeqe-test-writing/source.jsonl +1 -1
  95. package/forgeqe-architecture.html +48 -48
  96. package/forgeqe.example.yaml +16 -10
  97. package/package.json +1 -1
  98. package/prompts/README.md +7 -7
  99. package/prompts/agent-builder.md +1 -1
  100. package/prompts/api-tests.md +1 -1
  101. package/prompts/brain.md +8 -5
  102. package/prompts/business-interview.md +3 -3
  103. package/prompts/business-persona.md +3 -3
  104. package/prompts/business-strategist.md +1 -1
  105. package/prompts/db-agent.md +3 -3
  106. package/prompts/doc-reader.md +2 -2
  107. package/prompts/heal.md +1 -1
  108. package/prompts/knowledge-agent.md +3 -3
  109. package/prompts/model-profile.md +1 -1
  110. package/prompts/page-differs.md +1 -1
  111. package/prompts/persona-own.md +3 -3
  112. package/prompts/talk.md +3 -2
  113. package/prompts/test-agent.md +2 -2
  114. package/prompts/test-plan.md +2 -2
  115. package/prompts/tosca-assistant.md +1 -1
  116. package/py/forgeqe_engine/copilot_gateway.py +1 -1
  117. package/py/forgeqe_engine/memory.py +48 -2
  118. package/py/forgeqe_engine/recordsession.py +31 -1
  119. package/py/forgeqe_engine/video.py +104 -12
  120. package/py/forgeqe_engine/webrecord_page.py +88 -7
  121. package/py/forgeqe_tosca/__init__.py +2 -2
  122. package/py/forgeqe_tosca/render.py +1 -1
  123. package/py/forgeqe_tosca/tsu.py +2 -2
  124. package/skills/playwright-automation/SKILL.md +102 -0
  125. package/skills/playwright-automation/references/dotnet.md +90 -0
  126. package/skills/playwright-automation/references/java.md +41 -0
  127. package/skills/playwright-automation/references/python.md +42 -0
  128. package/skills/playwright-automation/references/typescript.md +54 -0
  129. package/skills/test-data/SKILL.md +1 -1
  130. package/skills/writing-skills/SKILL.md +2 -2
  131. package/dist/web/assets/Agent-Bha4Lr91.js +0 -8
  132. package/dist/web/assets/ApiTests-xhnOnRi9.js +0 -10
  133. package/dist/web/assets/Browse-DPfzCrMZ.js +0 -2
  134. package/dist/web/assets/Chat-DuLj5IPw.js +0 -5
  135. package/dist/web/assets/Cost-PNcsRgPW.js +0 -1
  136. package/dist/web/assets/Data-DaKzcO_S.js +0 -6
  137. package/dist/web/assets/Desktop-sXYXYwRy.js +0 -1
  138. package/dist/web/assets/DesktopReview-Bz6bfPkM.js +0 -1
  139. package/dist/web/assets/Impact-BqHiKxoG.js +0 -3
  140. package/dist/web/assets/Jobs-DUfRHoko.js +0 -5
  141. package/dist/web/assets/KindPage-Dj3vryGF.js +0 -6
  142. package/dist/web/assets/Migration-CP3o4tLy.js +0 -2
  143. package/dist/web/assets/Product-BeHmrA7Z.js +0 -7
  144. package/dist/web/assets/Record-V7x9VxRQ.js +0 -2
  145. package/dist/web/assets/Regression-DgXh0V-X.js +0 -5
  146. package/dist/web/assets/Reports--eyV0Gfp.js +0 -2
  147. package/dist/web/assets/Response-B1S-n787.js +0 -4
  148. package/dist/web/assets/RunDiff-DwEopDsx.js +0 -1
  149. package/dist/web/assets/Runs-B6bSGdrI.js +0 -2
  150. package/dist/web/assets/Steps-DxPqrmZK.js +0 -2
  151. package/dist/web/assets/TestData-BiW5r9gA.js +0 -2
  152. package/dist/web/assets/Tosca-CrvuVNqG.js +0 -3
  153. package/dist/web/assets/agentLink-ZQZx1pK-.js +0 -1
  154. package/dist/web/assets/filters-CorGh2vA.js +0 -1
  155. package/dist/web/assets/frame-BgpCUEoM.js +0 -18
  156. package/dist/web/assets/index-0YhzcgZJ.css +0 -2
  157. package/dist/web/assets/index-CEVZ8F8_.js +0 -67
  158. package/dist/web/assets/recordTest-BmD8jtw0.js +0 -1
  159. package/skills/dotnet-nunit-playwright/SKILL.md +0 -36
  160. package/skills/playwright-typescript/SKILL.md +0 -36
@@ -1 +0,0 @@
1
- import{ct as e,p as t,u as n}from"./filters-CorGh2vA.js";var r=e=>t(`record`,`recording`,encodeURIComponent(e)),i=e=>e.split(`/`).pop()||e;function a(e){let t=!!e?.testFile&&e.exists!==!1,n=e?.testFile?i(e.testFile):``,r=e=>e;if(!e)return{tone:`neutral`,label:`No test yet`,detail:`No test has been written from this recording. Write turns it into a test in your repository.`,hasTest:!1,writing:!1};if(e.state===`checking`)return{tone:`running`,label:`Checking the steps…`,detail:`The steps are played in a new browser first; when they work, the Coding agent ${t?`updates ${n}`:`writes the test`}. You can leave this page.`,hasTest:t,writing:!0};if(e.state===`check_failed`)return{tone:`fail`,label:t?`Steps failed, test not updated`:`Steps failed, no test written`,detail:`${e.error||`The steps did not work when played.`} Fix the step (Show, Record or Remove), or write the test anyway.`,hasTest:t,writing:!1};if(e.state===`writing`&&e.waiting&&e.resumeUntil){let n=new Date(e.resumeUntil).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`});return{tone:`warn`,label:`Waiting for the model…`,detail:`${e.waiting} ForgeQE checks every 30 seconds and carries on from where it stopped as soon as the model answers, until ${n}. Stop writing to give up now.`,hasTest:t,writing:!0}}if(e.state===`writing`&&e.waiting)return{tone:`warn`,label:`Waiting for the model…`,detail:`${e.waiting} The agent keeps retrying; if the model stays away ForgeQE stops it after 10 minutes and carries on by itself once the model answers. Stop writing to give up now.`,hasTest:t,writing:!0};if(e.state===`writing`)return r({tone:`running`,label:e.resumes?`Carrying on…`:t?`Updating the test…`:`Writing the test…`,detail:`${e.resumes?`The model answered again: the Coding agent carries on from where it stopped. `:``}The Coding agent is ${t?`updating ${n}`:`writing the test`} from this recording. It goes on if you leave or refresh this page; it shows here when it is done.`,hasTest:t,writing:!0});if(e.testFile&&e.exists===!1)return{tone:`warn`,label:`Test file not found`,detail:`${e.testFile} was written from this recording but is no longer in the repository. Write makes a new one.`,hasTest:!1,writing:!1};if(t){if(e.state===`passed`||e.state===`stopped`||e.state===`interrupted`){let r=e.error?` (${e.error})`:``,i=e.state===`stopped`?` The last update was stopped; what it changed so far is kept, and Update carries on from there.${r}`:e.state===`interrupted`?` The last update did not finish; what it changed so far is kept, and Update carries on from there.${r}`:``;return e.changedSince?{tone:`warn`,label:`Test out of date`,detail:`${n} was written before you changed the recording. Update the test to bring it in line.${i}`,hasTest:t,writing:!1}:{tone:`pass`,label:`Test written`,detail:`${n} was written from this recording and passed.${i} Update the test only if the recording changes.`,hasTest:t,writing:!1}}return{tone:`warn`,label:`Test not passing`,detail:`${n} was written, but it did not pass ForgeQE's run${e.state===`blocked`?` (something blocked it)`:``}.${e.error?` ${e.error}`:``} Update the test to try again.`,hasTest:t,writing:!1}}if(e.state===`stopped`)return{tone:`neutral`,label:`Writing stopped`,detail:`${e.error||`Writing the test was stopped before a test was written.`} Write starts again.`,hasTest:!1,writing:!1};if(e.state===`interrupted`)return{tone:`warn`,label:`Writing did not finish`,detail:`${e.error||`The writing ended before a test was written.`} Write starts again.`,hasTest:!1,writing:!1};let a=!!e.error&&/^(Couldn't reach the model|The model refused|The model is busy|Stopped after)/.test(e.error);return{tone:`fail`,label:a?`Model not reachable`:`Writing failed`,detail:`${e.error||`The Coding agent could not write a passing test from this recording.`} ${a?`Write tries again once it is fixed.`:`Open the chat to see more, or Write to try again.`}`,hasTest:!1,writing:!1}}function o(t){return n(t,t=>e.openFile(t,{}))}export{r as n,a as r,o as t};
@@ -1,36 +0,0 @@
1
- ---
2
- name: dotnet-nunit-playwright
3
- description: "Use when the repository's browser tests are C# with Microsoft.Playwright.NUnit (PageTest or ContextTest base classes, .runsettings files): browser settings, base classes and page objects, async style and ConfigureAwait, test data and categories, and running one test with dotnet test."
4
- agents: [scribe]
5
- ---
6
-
7
- # Playwright for .NET with NUnit
8
-
9
- ## Read the setup first
10
- - The test project: the `.csproj` that references `Microsoft.Playwright.NUnit`. Note its target framework, `Nullable`, `TreatWarningsAsErrors`, analyzers, and anything set in `Directory.Build.props` and `.editorconfig`.
11
- - Base classes: tests inherit `PageTest` (gives `Page`, `Context`, `Browser`, and `Expect`), or `ContextTest` / `BrowserTest`. Repositories usually add their own base (for example `BaseTest : PageTest`) that signs in, sets context options, or starts tracing. Inherit the repository's base, not `PageTest` directly.
12
- - Page objects: classes that take `IPage`, expose `ILocator` properties, and have `async Task` methods. Extend the existing one for a page.
13
-
14
- ## Browser settings
15
- - Launch settings live in the `.runsettings` file's `<Playwright>` section: `<BrowserName>chromium</BrowserName>` and `<LaunchOptions><Channel>chrome</Channel><Headless>true</Headless></LaunchOptions>`. It is used through `dotnet test --settings <file>` or `<RunSettingsFilePath>` in the `.csproj`. The `BROWSER` and `HEADED=1` environment variables override it.
16
- - Context settings (viewport, locale, time zone, base URL, storage state) go in an override of `public override BrowserNewContextOptions ContextOptions()` in the base class.
17
-
18
- ## Run one test
19
- - Build: `dotnet build <Tests.csproj>`.
20
- - Install browsers once: `pwsh <Tests>/bin/Debug/<tfm>/playwright.ps1 install chromium` (use `install chrome` for the Chrome channel). Without PowerShell, install it first (`dotnet tool install --global PowerShell`).
21
- - Run: `dotnet test <Tests.csproj> --no-build --settings <file>.runsettings --filter "FullyQualifiedName~MyTests.CheckoutTests.PlacesOrder" --logger "console;verbosity=normal"`. To run a category, filter with `Category=Smoke`.
22
-
23
- ## Code style
24
- - Tests are `public async Task` methods that await every call. Never use `.Result`, `.Wait()`, `Thread.Sleep`, or `Task.Delay`.
25
- - Use `ConfigureAwait(false)` exactly where the repository does (an analyzer such as CA2007 asks for it). Follow the analyzers so the build gains no warnings.
26
- - Locators: `Page.GetByRole(AriaRole.Button, new() { Name = "Save" })`, `GetByLabel`, `GetByPlaceholder`, `GetByText`, and `GetByTestId`, then CSS. Avoid XPath and position-based selectors.
27
- - Assert page state with retrying assertions: `await Expect(locator).ToBeVisibleAsync()`, `ToHaveTextAsync`, `ToHaveValueAsync`, and `await Expect(Page).ToHaveURLAsync(...)`. Use NUnit's `Assert.That` for plain values only, never on `await locator.IsVisibleAsync()`.
28
- - Wait for outcomes with `Page.WaitForURLAsync`, `Page.RunAndWaitForResponseAsync`, or an assertion.
29
- - One overlay that appears at random (a cookie banner, a survey): register `Page.AddLocatorHandlerAsync(...)` in `[SetUp]` of the base class (Playwright 1.42 and later) rather than clicking it inside a test.
30
- - Find an overlay's close button inside the overlay's own container (`banner.GetByRole(AriaRole.Button, new() { Name = "Accept all", Exact = true })`): consent tools often render a second "Accept all" elsewhere, and strict mode then throws. After the click, `await Expect(banner).ToBeHiddenAsync()`. A helper that closes it "if present" catches only the `TimeoutException` of it not showing, never a `PlaywrightException`.
31
- - Two or more that can show at once: write one helper that closes each visible one, top first, as the test rules describe. A handler's click is blocked while another overlay covers it.
32
-
33
- ## Data, secrets, attributes
34
- - Data: `[TestCase(...)]` or `[TestCaseSource(nameof(Cases))]`, or the repository's data files and builders. Compute dates when the test runs.
35
- - Secrets: `Environment.GetEnvironmentVariable("SHOP_USER") ?? throw new InvalidOperationException("Set SHOP_USER")`. If the repository reads `TestContext.Parameters` from `.runsettings`, follow that, without committing secret values.
36
- - Match the repository's `[Category]`, `[Parallelizable]`, `[Description]`, and naming. `PageTest` gives each test its own browser context, so tests must not share state through static fields.
@@ -1,36 +0,0 @@
1
- ---
2
- name: playwright-typescript
3
- description: "Use when the repository's browser tests are Playwright Test in TypeScript or JavaScript (@playwright/test, playwright.config.ts): where browser settings go, fixtures and page objects, sign-in state, locators and waiting, pop-up overlays, and the command that runs one test."
4
- agents: [scribe]
5
- ---
6
-
7
- # Playwright Test (TypeScript / JavaScript)
8
-
9
- ## Read the setup first
10
- - Config: `playwright.config.ts` (or `.js`, `.mjs`; a repo can have several, run with `--config`). Note `testDir`, `projects` and their `dependencies`, `use` (baseURL, channel, headless, viewport, locale, timezoneId, storageState, testIdAttribute), `webServer`, `globalSetup`, `timeout`, `expect.timeout`, `retries`.
11
- - Fixtures: files that call `test.extend<...>()` (often `fixtures.ts` or `tests/fixtures/`). When tests import `test` and `expect` from such a file, the new test imports from it too, never straight from `@playwright/test`.
12
- - Page objects: classes that take `page: Page` in the constructor and expose locators and actions. Extend the existing one for a page; when the repo hands page objects out as fixtures, add yours the same way.
13
- - Sign-in: a setup project (`*.setup.ts`, `dependencies: ['setup']`) that saves `storageState`. Reuse it; sign in inside the test only when sign-in is what the test checks.
14
-
15
- ## Run one test
16
- - `npx playwright test tests/checkout.spec.ts --project=chromium --reporter=line`, plus `-g "title"` for one test in a file. Use the repo's package manager when its lockfile says so (`pnpm exec playwright`, `yarn playwright`). Add `--workers=1` while debugging.
17
- - Missing browsers: `npx playwright install chromium`; `channel: 'chrome'` needs `npx playwright install chrome`; on Linux CI add `--with-deps`.
18
- - Never commit `test.only`, `--headed`, `--debug`, or `page.pause()`.
19
-
20
- ## Browser settings
21
- - Put them in `use` of the config, at the top level or in the project the test runs in: `channel`, `headless`, `viewport`, `locale`, `timezoneId`, and `userAgent` only when the site needs it. Use `test.use()` in a spec file only if the repo already overrides settings per file.
22
-
23
- ## Locators and assertions
24
- - Prefer `getByRole(role, { name })`, `getByLabel`, `getByPlaceholder`, `getByText`, and `getByTestId` (check `testIdAttribute`), then CSS. Avoid XPath and position-based selectors (`nth`, `:nth-child`); narrow with `.filter({ hasText })` or a parent locator instead.
25
- - A locator that matches several elements throws on click or fill (strict mode). Make it unique; use `.first()` only when any match is fine.
26
- - Assert with retrying web-first assertions: `await expect(locator).toBeVisible()`, `toHaveText`, `toHaveValue`, `toHaveURL`, `toHaveCount`. Never `expect(await locator.isVisible()).toBe(true)`.
27
- - Wait for outcomes, never time: no `page.waitForTimeout`. Use an assertion, `page.waitForURL`, or a `page.waitForResponse(...)` promise created before the click that triggers the request.
28
-
29
- ## Overlays that come and go
30
- - One cookie banner, chat prompt, or survey that appears at random: register `page.addLocatorHandler(banner, async () => { await banner.getByRole('button', { name: 'Accept all', exact: true }).click(); await expect(banner).toBeHidden() })`, where `banner` is the overlay's own container (`page.locator('#cookie-banner')`) in a fixture or `beforeEach` (Playwright 1.42 and later), instead of clicking it inside the test.
31
- - Two or more that can show at once: write one helper that closes each visible one, top first, as the test rules describe. A handler's click is blocked while another overlay covers it.
32
-
33
- ## Data and secrets
34
- - Read secrets with `process.env.NAME`, and fail with a clear message when one is missing. If the config loads `dotenv`, add new names to `.env.example` without values.
35
- - Compute dates such as "tomorrow" when the test runs. Run one test over several inputs with a `for (const c of cases) test(\`... ${c.name}\`, ...)` loop or the repo's data files.
36
- - Tag tests the repo's way: `test('title', { tag: '@smoke' }, ...)` or tags in the title.