@jskit-ai/http-web 0.2.47 → 0.2.49
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/http-web",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.49",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jskit test"
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@jskit-ai/http-runtime": "0.2.27",
|
|
54
54
|
"@jskit-ai/kernel": "0.2.27",
|
|
55
|
-
"@jskit-ai/realtime": "0.2.
|
|
56
|
-
"@jskit-ai/shell-web": "0.2.
|
|
55
|
+
"@jskit-ai/realtime": "0.2.44",
|
|
56
|
+
"@jskit-ai/shell-web": "0.2.41",
|
|
57
57
|
"@tanstack/vue-query": "^5.90.5",
|
|
58
58
|
"vue": "^3.5.13",
|
|
59
59
|
"vue-router": "^5.0.4",
|
|
@@ -15,6 +15,7 @@ const SKIP = process.env.JSKIT_HTTP_WEB_PENDING_FOCUS_BROWSER === "1"
|
|
|
15
15
|
? false
|
|
16
16
|
: "set JSKIT_HTTP_WEB_PENDING_FOCUS_BROWSER=1 to check that pending CRUD buttons keep keyboard focus";
|
|
17
17
|
const FIXTURE_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../fixtures/crud-screens");
|
|
18
|
+
// The server compiles the screens before the first test, so its first page load runs warm within its limit.
|
|
18
19
|
const open = sharedBrowserFixture({ fixtureRoot: FIXTURE_ROOT });
|
|
19
20
|
// An expanded window: the app bar shows its actions labelled, and the list draws its table.
|
|
20
21
|
const VIEWPORT = Object.freeze({ width: 1280, height: 900 });
|
|
@@ -2,12 +2,8 @@ import path from "node:path";
|
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
import test from "node:test";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
createChromiumLaunchOptions,
|
|
8
|
-
startViteFixture,
|
|
9
|
-
stopProcess
|
|
10
|
-
} from "../../../tooling/testUtils/browserFixture.mjs";
|
|
5
|
+
import { expect } from "@playwright/test";
|
|
6
|
+
import { sharedBrowserFixture } from "../../../tooling/testUtils/browserFixture.mjs";
|
|
11
7
|
import { expectMaterialBaseline } from "../../../tooling/testUtils/visualBaseline.mjs";
|
|
12
8
|
|
|
13
9
|
const TEST_DIRECTORY = path.dirname(fileURLToPath(import.meta.url));
|
|
@@ -122,17 +118,18 @@ async function serveBooks(page, screen) {
|
|
|
122
118
|
});
|
|
123
119
|
}
|
|
124
120
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
121
|
+
// One server and one browser for the file, the server warmed before the first test; the tests' ends close their pages
|
|
122
|
+
// and the file's end stops both.
|
|
123
|
+
const open = sharedBrowserFixture({ fixtureRoot: FIXTURE_ROOT });
|
|
124
|
+
|
|
125
|
+
// A test for each window size, light and dark: 14 page loads, well inside the limit while many browser test files run
|
|
126
|
+
// at once. As one test the 42 loads took 4 to 5 minutes then, at or past its 5 minute limit.
|
|
127
|
+
for (const viewport of VIEWPORTS) {
|
|
128
|
+
test(`the CRUD screens keep their Material 3 baselines in light and dark at ${viewport.width}x${viewport.height}`, {
|
|
129
|
+
skip: RUN_BROWSER_TEST ? false : "set JSKIT_MATERIAL_BASELINES=1 to check the Material 3 baselines",
|
|
130
|
+
timeout: 300_000
|
|
131
|
+
}, async (t) => {
|
|
132
|
+
const { vite, browser } = await open(t);
|
|
136
133
|
// The app follows the system's light or dark setting, Material 3's default.
|
|
137
134
|
for (const colorScheme of ["light", "dark"]) {
|
|
138
135
|
const context = await browser.newContext({
|
|
@@ -169,5 +166,5 @@ test("the CRUD screens keep their Material 3 baselines in light and dark at ever
|
|
|
169
166
|
await context.close();
|
|
170
167
|
}
|
|
171
168
|
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
169
|
+
});
|
|
170
|
+
}
|