@jskit-ai/http-web 0.2.48 → 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,7 +1,7 @@
|
|
|
1
1
|
import assert from "node:assert/strict";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import process from "node:process";
|
|
4
|
-
import test
|
|
4
|
+
import test from "node:test";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import { expect } from "@playwright/test";
|
|
7
7
|
import { sharedBrowserFixture } from "../../../tooling/testUtils/browserFixture.mjs";
|
|
@@ -15,9 +15,8 @@ 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
|
-
const open = sharedBrowserFixture({ fixtureRoot: FIXTURE_ROOT });
|
|
19
18
|
// The server compiles the screens before the first test, so its first page load runs warm within its limit.
|
|
20
|
-
|
|
19
|
+
const open = sharedBrowserFixture({ fixtureRoot: FIXTURE_ROOT });
|
|
21
20
|
// An expanded window: the app bar shows its actions labelled, and the list draws its table.
|
|
22
21
|
const VIEWPORT = Object.freeze({ width: 1280, height: 900 });
|
|
23
22
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import process from "node:process";
|
|
3
|
-
import test
|
|
3
|
+
import test from "node:test";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { expect } from "@playwright/test";
|
|
6
6
|
import { sharedBrowserFixture } from "../../../tooling/testUtils/browserFixture.mjs";
|
|
@@ -121,7 +121,6 @@ async function serveBooks(page, screen) {
|
|
|
121
121
|
// One server and one browser for the file, the server warmed before the first test; the tests' ends close their pages
|
|
122
122
|
// and the file's end stops both.
|
|
123
123
|
const open = sharedBrowserFixture({ fixtureRoot: FIXTURE_ROOT });
|
|
124
|
-
if (RUN_BROWSER_TEST) before(() => open.prepare());
|
|
125
124
|
|
|
126
125
|
// A test for each window size, light and dark: 14 page loads, well inside the limit while many browser test files run
|
|
127
126
|
// at once. As one test the 42 loads took 4 to 5 minutes then, at or past its 5 minute limit.
|