@letsrunit/executor 0.18.1 → 0.18.3
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/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/explore.ts +7 -1
- package/src/generate.ts +1 -1
- package/src/run.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@letsrunit/executor",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.3",
|
|
4
4
|
"description": "High-level test execution orchestrator for letsrunit",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"testing",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
},
|
|
42
42
|
"packageManager": "yarn@4.10.3",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@letsrunit/ai": "0.18.
|
|
45
|
-
"@letsrunit/controller": "0.18.
|
|
46
|
-
"@letsrunit/gherkin": "0.18.
|
|
47
|
-
"@letsrunit/journal": "0.18.
|
|
48
|
-
"@letsrunit/mailbox": "0.18.
|
|
49
|
-
"@letsrunit/playwright": "0.18.
|
|
50
|
-
"@letsrunit/store": "0.18.
|
|
51
|
-
"@letsrunit/utils": "0.18.
|
|
44
|
+
"@letsrunit/ai": "0.18.3",
|
|
45
|
+
"@letsrunit/controller": "0.18.3",
|
|
46
|
+
"@letsrunit/gherkin": "0.18.3",
|
|
47
|
+
"@letsrunit/journal": "0.18.3",
|
|
48
|
+
"@letsrunit/mailbox": "0.18.3",
|
|
49
|
+
"@letsrunit/playwright": "0.18.3",
|
|
50
|
+
"@letsrunit/store": "0.18.3",
|
|
51
|
+
"@letsrunit/utils": "0.18.3",
|
|
52
52
|
"zod": "^4.3.5"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
package/src/explore.ts
CHANGED
|
@@ -31,7 +31,13 @@ export default async function explore(
|
|
|
31
31
|
let controller: Controller | undefined;
|
|
32
32
|
|
|
33
33
|
try {
|
|
34
|
-
controller = await Controller.launch({
|
|
34
|
+
controller = await Controller.launch({
|
|
35
|
+
headless: opts.headless,
|
|
36
|
+
baseURL: base,
|
|
37
|
+
journal,
|
|
38
|
+
debug: true,
|
|
39
|
+
capture: true,
|
|
40
|
+
});
|
|
35
41
|
const { page } = await controller.run(makeFeature({ name: `Explore website "${base}"`, steps }));
|
|
36
42
|
const pageInfo = await extractPageInfo(page);
|
|
37
43
|
const name = pageInfo.name ?? pageInfo.url;
|
package/src/generate.ts
CHANGED
|
@@ -30,7 +30,7 @@ export default async function generate(
|
|
|
30
30
|
let controller: Controller | undefined;
|
|
31
31
|
|
|
32
32
|
try {
|
|
33
|
-
controller = await Controller.launch({ headless: opts.headless, baseURL: base, journal });
|
|
33
|
+
controller = await Controller.launch({ headless: opts.headless, baseURL: base, journal, capture: true });
|
|
34
34
|
const signal = opts.timeout ? AbortSignal.timeout(opts.timeout) : undefined;
|
|
35
35
|
|
|
36
36
|
return await generateFeature({
|
package/src/run.ts
CHANGED
|
@@ -20,7 +20,7 @@ export default async function run(
|
|
|
20
20
|
let controller: Controller | undefined;
|
|
21
21
|
|
|
22
22
|
try {
|
|
23
|
-
controller = await Controller.launch({ headless: opts.headless, baseURL: base, journal });
|
|
23
|
+
controller = await Controller.launch({ headless: opts.headless, baseURL: base, journal, capture: true });
|
|
24
24
|
const featureText = typeof feature === 'string' ? feature : makeFeature(feature);
|
|
25
25
|
|
|
26
26
|
const { status } = await controller.run(featureText);
|