omnius 1.0.663 → 1.0.665
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.
|
@@ -7,8 +7,10 @@ compaction_strategy: structured
|
|
|
7
7
|
# browser-interaction-validation
|
|
8
8
|
|
|
9
9
|
Validate user-facing browser flows with `playwright_browser` as the canonical
|
|
10
|
-
runtime. A page loading, a successful click receipt,
|
|
11
|
-
source assertions alone do **not** prove that a requested interaction
|
|
10
|
+
runtime. A page loading, a successful click receipt, an immediate screenshot,
|
|
11
|
+
or static source assertions alone do **not** prove that a requested interaction
|
|
12
|
+
worked. Some failures appear only after the page remains active. GPU and WebGL
|
|
13
|
+
failures can also differ between headless and headed browsers.
|
|
12
14
|
|
|
13
15
|
## Triggers
|
|
14
16
|
|
|
@@ -39,9 +41,12 @@ static checks separately as static evidence.
|
|
|
39
41
|
1. Use `playwright_browser` for the entire flow. Do not switch to
|
|
40
42
|
`browser_action` (Selenium) mid-flow; it is a separate browser session and
|
|
41
43
|
loses page state. Use Selenium only as an explicit legacy fallback.
|
|
42
|
-
2.
|
|
43
|
-
|
|
44
|
-
and
|
|
44
|
+
2. Start with `validate_lifecycle`. Give it the live URL, an explicit
|
|
45
|
+
postcondition, and a finite `observation_ms`. This starts diagnostics before
|
|
46
|
+
navigation and holds the page open after load. For GUI, GPU, WebGL, WebGPU,
|
|
47
|
+
canvas, or animation claims, set `headless=false` and `force_new=true`. If a
|
|
48
|
+
graphical display is unavailable, report the headed check as blocked. Do not
|
|
49
|
+
substitute a clean headless run as proof.
|
|
45
50
|
3. Choose a stable locator: prefer `data-testid`, then accessible role/name,
|
|
46
51
|
then a specific CSS selector. Avoid ordinal or broad selectors that can race
|
|
47
52
|
reactive re-renders.
|
|
@@ -52,9 +57,11 @@ static checks separately as static evidence.
|
|
|
52
57
|
Re-query after a detached-element/re-render failure; do not retry a stale
|
|
53
58
|
handle blindly. If a stable locator is unavailable, report that as a
|
|
54
59
|
product-testability finding.
|
|
55
|
-
6.
|
|
56
|
-
|
|
57
|
-
page errors, console errors,
|
|
60
|
+
6. After the action, call `observe_window` with the expected state and a finite
|
|
61
|
+
`observation_ms`. Keep the same browser session alive while delayed failures
|
|
62
|
+
surface. Review the window-scoped page errors, console errors, failed network
|
|
63
|
+
requests, DOM state, and screenshot. Use `observe_bundle` only for an
|
|
64
|
+
instantaneous session summary when a timed observation is not required.
|
|
58
65
|
7. Close by listing every requested interaction with its evidence outcome,
|
|
59
66
|
receipt/artifact references, and any precise remediation. Call
|
|
60
67
|
`task_complete` when the implementation work is done; verifier feedback is
|
package/dist/api/py-embed.js
CHANGED
|
@@ -289947,7 +289947,6 @@ init_process_lifecycle();
|
|
|
289947
289947
|
import { dirname, join, resolve as resolve2 } from "node:path";
|
|
289948
289948
|
import { homedir as homedir2, tmpdir } from "node:os";
|
|
289949
289949
|
init_vision();
|
|
289950
|
-
var dynamicImport = new Function("mod", "return import(mod)");
|
|
289951
289950
|
var PLAYWRIGHT_RUNTIME_DIR = join(homedir2(), ".omnius", "playwright-runtime");
|
|
289952
289951
|
var PLAYWRIGHT_BROWSERS_DIR = join(PLAYWRIGHT_RUNTIME_DIR, "browsers");
|
|
289953
289952
|
|