@open-qa/qa-studio 0.1.0-alpha.3 → 0.1.0-alpha.4
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/package.json +1 -1
- package/runtime/standalone.tar.gz +0 -0
- package/scripts/launch.mjs +2 -0
- package/scripts/run-fixture.mjs +23 -3
- package/studio-manifest.json +1 -1
package/package.json
CHANGED
|
Binary file
|
package/scripts/launch.mjs
CHANGED
|
@@ -44,6 +44,7 @@ if (process.channel) {
|
|
|
44
44
|
try {
|
|
45
45
|
const { values } = parseArgs({
|
|
46
46
|
options: {
|
|
47
|
+
"control-socket": { type: "string" },
|
|
47
48
|
root: { type: "string" },
|
|
48
49
|
port: { type: "string" },
|
|
49
50
|
"no-open": { type: "boolean" },
|
|
@@ -81,6 +82,7 @@ try {
|
|
|
81
82
|
const config = {
|
|
82
83
|
...createSession(project.projectId),
|
|
83
84
|
...project,
|
|
85
|
+
controlSocket: values["control-socket"],
|
|
84
86
|
port,
|
|
85
87
|
protocol,
|
|
86
88
|
fingerprint: manifest.fingerprint,
|
package/scripts/run-fixture.mjs
CHANGED
|
@@ -11,7 +11,7 @@ export async function runFixture(root, id = "checkout", failureView = "web") {
|
|
|
11
11
|
await mkdir(join(stage, "assets"), { recursive: true });
|
|
12
12
|
const hash = (bytes) => createHash("sha256").update(bytes).digest("hex");
|
|
13
13
|
const css = Buffer.from(
|
|
14
|
-
"body{margin:0;padding:40px;background:#f4f5f7;color:#20242a;font-family:system-ui}h1{font-size:32px}#state{padding:24px;border:1px solid #aaa;background:white;border-radius:12px}"
|
|
14
|
+
"body{margin:0;padding:40px;background:#f4f5f7;color:#20242a;font-family:system-ui}h1{font-size:32px}#state{padding:24px;border:1px solid #aaa;background:white;border-radius:12px}#state[data-state=open]{animation:enter 180ms both}h1{animation:headline 1s both}@keyframes headline{from{opacity:0.001}}@keyframes enter{from{opacity:0}to{opacity:1}}"
|
|
15
15
|
);
|
|
16
16
|
const digest = hash(css);
|
|
17
17
|
await writeFile(join(stage, "assets", digest), css);
|
|
@@ -51,7 +51,9 @@ export async function runFixture(root, id = "checkout", failureView = "web") {
|
|
|
51
51
|
element(5, "body", {}, [
|
|
52
52
|
element(6, "h1", {}, [text(7, "Synthetic workshop")]),
|
|
53
53
|
element(8, "p", {}, [text(9, "Review your order")]),
|
|
54
|
-
element(10, "div", { id: "state"
|
|
54
|
+
element(10, "div", { id: "state", "data-state": "open" }, [
|
|
55
|
+
text(11, "Ready for checkout"),
|
|
56
|
+
]),
|
|
55
57
|
element(12, "script", {}, [
|
|
56
58
|
text(13, 'window.pwned=true;top.location="https://escape.invalid"'),
|
|
57
59
|
]),
|
|
@@ -93,6 +95,11 @@ export async function runFixture(root, id = "checkout", failureView = "web") {
|
|
|
93
95
|
adds: [],
|
|
94
96
|
},
|
|
95
97
|
},
|
|
98
|
+
{
|
|
99
|
+
type: 3,
|
|
100
|
+
timestamp: 138000,
|
|
101
|
+
data: { source: 4, width: 390, height: 844 },
|
|
102
|
+
},
|
|
96
103
|
{
|
|
97
104
|
type: 3,
|
|
98
105
|
timestamp: 139000,
|
|
@@ -154,7 +161,7 @@ export async function runFixture(root, id = "checkout", failureView = "web") {
|
|
|
154
161
|
index: "views/web/index.json",
|
|
155
162
|
browser: "chromium",
|
|
156
163
|
viewport: { width: 1000, height: 560 },
|
|
157
|
-
segments: [{ document: "doc", firstSeq: 1, lastSeq:
|
|
164
|
+
segments: [{ document: "doc", firstSeq: 1, lastSeq: rows.length, missing: [] }],
|
|
158
165
|
},
|
|
159
166
|
],
|
|
160
167
|
warnings: [],
|
|
@@ -189,6 +196,19 @@ export async function runFixture(root, id = "checkout", failureView = "web") {
|
|
|
189
196
|
step: "checkout",
|
|
190
197
|
text: "Check the order confirmation.",
|
|
191
198
|
},
|
|
199
|
+
{
|
|
200
|
+
kind: "action",
|
|
201
|
+
by: "agent",
|
|
202
|
+
actor: "visitor",
|
|
203
|
+
step: "checkout",
|
|
204
|
+
view: "web",
|
|
205
|
+
t: 4000,
|
|
206
|
+
tool: "web_click",
|
|
207
|
+
args: { private: "ACTION_SENTINEL" },
|
|
208
|
+
target: { layer: "semantic", name: "Reserve" },
|
|
209
|
+
ok: true,
|
|
210
|
+
ms: 250,
|
|
211
|
+
},
|
|
192
212
|
{
|
|
193
213
|
kind: "console",
|
|
194
214
|
by: "system",
|
package/studio-manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"protocol":1,"fingerprint":"
|
|
1
|
+
{"protocol":1,"fingerprint":"01a4e07f49010e6ebfedc2ac05ced6217763e98f3d0ec3519a95c1abbb90e576","version":"0.1.0-alpha.4","node":"v22.23.4","platform":"linux","arch":"x64","distribution":true}
|