@jskit-ai/jskit-cli 0.2.146 → 0.2.148

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": "@jskit-ai/jskit-cli",
3
- "version": "0.2.146",
3
+ "version": "0.2.148",
4
4
  "description": "Bundle and package orchestration CLI for JSKIT apps.",
5
5
  "type": "module",
6
6
  "files": [
@@ -21,9 +21,9 @@
21
21
  "test": "node --test"
22
22
  },
23
23
  "dependencies": {
24
- "@jskit-ai/jskit-catalog": "0.1.140",
25
- "@jskit-ai/kernel": "0.1.126",
26
- "@jskit-ai/shell-web": "0.1.127",
24
+ "@jskit-ai/jskit-catalog": "0.1.142",
25
+ "@jskit-ai/kernel": "0.1.128",
26
+ "@jskit-ai/shell-web": "0.1.129",
27
27
  "@vue/compiler-sfc": "^3.5.29",
28
28
  "ts-morph": "^28.0.0",
29
29
  "yaml": "^2.8.3"
@@ -65,6 +65,26 @@ async function expectVisibleTapTargets(page, expect) {
65
65
  }
66
66
  }
67
67
 
68
+ async function runGeneratedAppSmokeCase({
69
+ page,
70
+ expect,
71
+ expectedText,
72
+ viewport,
73
+ smokePath = String(process.env.JSKIT_PLAYWRIGHT_SMOKE_PATH || DEFAULT_SMOKE_PATH)
74
+ } = {}) {
75
+ if (!page || !expect || !String(expectedText || "").trim() || !viewport) {
76
+ throw new Error("runGeneratedAppSmokeCase requires page, expect, expectedText, and viewport.");
77
+ }
78
+
79
+ await page.setViewportSize({ width: viewport.width, height: viewport.height });
80
+ await page.goto(smokePath);
81
+ await expect(page.locator("body")).toBeVisible();
82
+ await expect(page.getByText(expectedText)).toBeVisible();
83
+ await expect(page.locator(".generated-ui-screen").first()).toBeVisible();
84
+ await expectVisibleTapTargets(page, expect);
85
+ await expectNoHorizontalOverflow(page, expect);
86
+ }
87
+
68
88
  function runGeneratedAppSmoke({ test, expect, expectedText } = {}) {
69
89
  if (!test || !expect || !String(expectedText || "").trim()) {
70
90
  throw new Error("runGeneratedAppSmoke requires Playwright test, expect, and expectedText.");
@@ -75,13 +95,7 @@ function runGeneratedAppSmoke({ test, expect, expectedText } = {}) {
75
95
  test.describe("generated app responsive smoke", () => {
76
96
  for (const viewport of DEFAULT_VIEWPORTS) {
77
97
  test(`${viewport.name} home route renders without horizontal overflow`, async ({ page }) => {
78
- await page.setViewportSize({ width: viewport.width, height: viewport.height });
79
- await page.goto(smokePath);
80
- await expect(page.locator("body")).toBeVisible();
81
- await expect(page.getByText(expectedText)).toBeVisible();
82
- await expect(page.locator(".generated-ui-screen").first()).toBeVisible();
83
- await expectVisibleTapTargets(page, expect);
84
- await expectNoHorizontalOverflow(page, expect);
98
+ await runGeneratedAppSmokeCase({ page, expect, expectedText, viewport, smokePath });
85
99
  });
86
100
  }
87
101
  });
@@ -91,5 +105,6 @@ export {
91
105
  createJskitPlaywrightConfig,
92
106
  DEFAULT_LOCAL_BASE_URL,
93
107
  DEFAULT_VIEWPORTS,
94
- runGeneratedAppSmoke
108
+ runGeneratedAppSmoke,
109
+ runGeneratedAppSmokeCase
95
110
  };