mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-03 03:27:10 +00:00
test(browser): the exit code a dead run and a violated one actually leave
Drives the built binary against a page with nothing to tap and reads the process status, then the same run through campaign to pin what lands in runs.jsonl: exit_code 1 there is a detection the analysis drops as missing data.
This commit is contained in:
1 parent
f4b9ff1468
commit
c8d52cb7d5
4 files changed
+208
No files matched your search
+10
@@ -0,0 +1,10 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>nothing-to-tap</title>
|
||||
</head>
|
||||
<body>
|
||||
<p id="banner">nothing here answers a tap</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
import { always, extract, taps } from "@sanderling/spec";
|
||||
|
||||
const banner = extract((s) => s.ax.find({ id: "banner" })?.text ?? "").named("banner");
|
||||
|
||||
const bannerStays = always(() => banner.current === "nothing here answers a tap");
|
||||
|
||||
export const properties = { bannerStays };
|
||||
|
||||
export const actionsRoot = taps;
|
||||
@@ -0,0 +1,9 @@
|
||||
import { always, extract, taps } from "@sanderling/spec";
|
||||
|
||||
const banner = extract((s) => s.ax.find({ id: "banner" })?.text ?? "").named("banner");
|
||||
|
||||
const bannerIsEmpty = always(() => banner.current === "");
|
||||
|
||||
export const properties = { bannerIsEmpty };
|
||||
|
||||
export const actionsRoot = taps;
|
||||
Reference in new issue
Block a user