@cocoar/scenar-playwright 0.1.0-beta.30 → 0.1.0-beta.68
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocoar/scenar-playwright",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.68",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
".": "./src/index.js"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@cocoar/scenar
|
|
13
|
-
"@cocoar/scenar-registry": "0.1.0-beta.30",
|
|
12
|
+
"@cocoar/scenar": "0.1.0-beta.68",
|
|
14
13
|
"tslib": "^2.3.0"
|
|
15
14
|
},
|
|
16
15
|
"peerDependencies": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Page } from '@playwright/test';
|
|
2
|
-
import type { ScenarioInputsOf, ScenarioSource } from '@cocoar/scenar
|
|
2
|
+
import type { ScenarioInputsOf, ScenarioSource } from '@cocoar/scenar';
|
|
3
3
|
/**
|
|
4
4
|
* Minimal Playwright helper: navigate to a scenario with typed inputs.
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scenario-page.d.ts","sourceRoot":"","sources":["../../../../../../libs/scenar/scenar-playwright/src/lib/scenario-page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scenario-page.d.ts","sourceRoot":"","sources":["../../../../../../libs/scenar/scenar-playwright/src/lib/scenario-page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGvE;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,SAAS,SAAS,cAAc,EACjE,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,SAAS,EACnB,MAAM,EAAE,gBAAgB,CAAC,SAAS,CAAC,GAClC,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
package/src/lib/scenario-page.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.openScenario = openScenario;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
5
|
+
const scenar_1 = require("@cocoar/scenar");
|
|
6
6
|
/**
|
|
7
7
|
* Minimal Playwright helper: navigate to a scenario with typed inputs.
|
|
8
8
|
*
|
|
@@ -11,7 +11,7 @@ const scenar_registry_1 = require("@cocoar/scenar-registry");
|
|
|
11
11
|
*/
|
|
12
12
|
function openScenario(page, scenario, inputs) {
|
|
13
13
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
yield page.goto((0,
|
|
14
|
+
yield page.goto((0, scenar_1.gotoScenarioUrl)(scenario, inputs));
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=scenario-page.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scenario-page.js","sourceRoot":"","sources":["../../../../../../libs/scenar/scenar-playwright/src/lib/scenario-page.ts"],"names":[],"mappings":";;AAWA,oCAMC;;AAdD,
|
|
1
|
+
{"version":3,"file":"scenario-page.js","sourceRoot":"","sources":["../../../../../../libs/scenar/scenar-playwright/src/lib/scenario-page.ts"],"names":[],"mappings":";;AAWA,oCAMC;;AAdD,2CAAiD;AAEjD;;;;;GAKG;AACH,SAAsB,YAAY,CAChC,IAAU,EACV,QAAmB,EACnB,MAAmC;;QAEnC,MAAM,IAAI,CAAC,IAAI,CAAC,IAAA,wBAAe,EAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IACrD,CAAC;CAAA","sourcesContent":["import type { Page } from '@playwright/test';\r\n\r\nimport type { ScenarioInputsOf, ScenarioSource } from '@cocoar/scenar';\r\nimport { gotoScenarioUrl } from '@cocoar/scenar';\r\n\r\n/**\r\n * Minimal Playwright helper: navigate to a scenario with typed inputs.\r\n *\r\n * Kept intentionally small. If Scenar e2e needs richer helpers later,\r\n * we can introduce a ScenarioPage/page-object then.\r\n */\r\nexport async function openScenario<TScenario extends ScenarioSource>(\r\n page: Page,\r\n scenario: TScenario,\r\n inputs: ScenarioInputsOf<TScenario>,\r\n): Promise<void> {\r\n await page.goto(gotoScenarioUrl(scenario, inputs));\r\n}\r\n"]}
|