@owlmeans/test-ui 0.1.19 → 0.1.20-rc.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/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 3,
|
|
3
3
|
"package": "@owlmeans/test-ui",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"generatedAt": "2026-11-
|
|
4
|
+
"version": "0.1.20-rc.0",
|
|
5
|
+
"generatedAt": "2026-11-03T15:22:30.467Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -6,7 +6,7 @@ description: Category-D component-level acceptance tests for OwlMeans Common UI
|
|
|
6
6
|
|
|
7
7
|
# UI Acceptance Tests — Category D (bun test + Playwright as a library)
|
|
8
8
|
|
|
9
|
-
**Install:** `"@owlmeans/test-ui": "^0.1.
|
|
9
|
+
**Install:** `"@owlmeans/test-ui": "^0.1.20-rc.0"` in `devDependencies`
|
|
10
10
|
|
|
11
11
|
`@owlmeans/test-ui` depends on `playwright`, so the browser library arrives with it; add
|
|
12
12
|
`playwright` to `devDependencies` as well when a spec imports a launcher itself. The Vite harness
|
|
@@ -321,16 +321,19 @@ showing a working login form the entire time. Any new helper that calls `page.go
|
|
|
321
321
|
screen when an assertion timed out; `.loginViaSupervisorForm` takes a `screenshotDir` that captures
|
|
322
322
|
the filled form just before submit.
|
|
323
323
|
|
|
324
|
-
##
|
|
324
|
+
## An unanswered consent gates the login form, and the failure blames the button
|
|
325
325
|
|
|
326
|
-
An OwlMeans app asks for cookie consent **before** it will start an authentication flow
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
326
|
+
An OwlMeans app asks for cookie consent **before** it will start an authentication flow. The first
|
|
327
|
+
ask is the bar, which blocks nothing — the page is usable and the bar simply stays — so a spec that
|
|
328
|
+
never answers it clicks a login control and meets the gate instead: the sign-in precondition
|
|
329
|
+
(`@owlmeans/client-iam`) refuses the click and raises the preferences WINDOW, a modal over a
|
|
330
|
+
dimmed overlay that offers no dismissal. From then on the overlay intercepts pointer events, so a
|
|
331
|
+
login form renders, resolves, reports itself `visible, enabled and stable`, and still cannot be
|
|
332
|
+
clicked. Playwright retries for the full timeout and then reports `click: Timeout … waiting for
|
|
333
|
+
getByTestId('supervisor-submit')`, naming the button. Nothing is wrong with the button; read the
|
|
334
|
+
`subtree intercepts pointer events` line, which names `[data-consent-dialog]`. (A bar that is still
|
|
335
|
+
up is not in the way of anything — and a window that was not asked for is a sign the spec skipped
|
|
336
|
+
the answer.)
|
|
334
337
|
|
|
335
338
|
`makePageHelper(page).loginViaSupervisorForm` and `.loginViaEmailForm` therefore call `.acceptConsent()` after navigating. `.acceptConsent` is
|
|
336
339
|
public for specs that drive their own login: it waits for the consent store to SETTLE — never while
|
|
@@ -366,7 +369,9 @@ pick. Both also default `marketingConsent` (their own option, not `.answerMarket
|
|
|
366
369
|
(root, carrying `data-state="loading"` while its status read is outstanding and `"ready"` once it can
|
|
367
370
|
render), `[data-marketing-consent-terms]` (the Terms checkbox, Terms mode only, with `data-version`),
|
|
368
371
|
`[data-marketing-consent-terms-error]` (Terms record failed — the person stays and retries),
|
|
369
|
-
`[data-marketing-consent-all]` (select-all
|
|
372
|
+
`[data-marketing-consent-all]` (select-all — exactly one per page; the step's closing copy above the
|
|
373
|
+
buttons is `[data-marketing-consent-all-end]` — and in Terms mode it ticks the Terms box with the
|
|
374
|
+
consents, in required-only mode only the Terms box), `[data-marketing-consent-item="<key>"]`
|
|
370
375
|
(per-consent), `[data-marketing-consent-save]`, `[data-marketing-consent-skip]` (shown whenever the
|
|
371
376
|
step is optional-only — i.e. `!loading && !terms.needed` — not only after a failed save),
|
|
372
377
|
`[data-marketing-consent-skip-note]`, `[data-marketing-consent-signout]` (shown while a Terms box or
|