@dargmuesli/nuxt-vio-testing 22.0.6 → 22.0.8
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.
|
@@ -7,9 +7,8 @@ declare const createDefaultPage: (page: Page) => {
|
|
|
7
7
|
isLoading?: boolean;
|
|
8
8
|
}) => Promise<void>;
|
|
9
9
|
};
|
|
10
|
-
declare const vioTest: import("@playwright/test").TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions & {
|
|
10
|
+
export declare const vioTest: import("@playwright/test").TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions & {
|
|
11
11
|
defaultPage: ReturnType<typeof createDefaultPage>;
|
|
12
12
|
_autoSnapshotSuffix: unknown;
|
|
13
13
|
}, import("@playwright/test").PlaywrightWorkerArgs & import("@playwright/test").PlaywrightWorkerOptions>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { vioTest };
|
|
14
|
+
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Page } from "playwright-core";
|
|
2
2
|
//#region e2e/utils/constants.d.ts
|
|
3
|
-
declare const TIMEOUT = 60000;
|
|
4
|
-
declare const PAGE_READY: ({ page, options }: {
|
|
3
|
+
export declare const TIMEOUT = 60000;
|
|
4
|
+
export declare const PAGE_READY: ({ page, options }: {
|
|
5
5
|
page: Page;
|
|
6
6
|
options?: {
|
|
7
7
|
cookieControl?: boolean;
|
|
@@ -9,6 +9,5 @@ declare const PAGE_READY: ({ page, options }: {
|
|
|
9
9
|
isLoading?: boolean;
|
|
10
10
|
};
|
|
11
11
|
}) => Promise<void>;
|
|
12
|
-
declare const SITE_URL: string;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { PAGE_READY, SITE_URL, TIMEOUT };
|
|
12
|
+
export declare const SITE_URL: string;
|
|
13
|
+
//#endregion
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { Page } from "@playwright/test";
|
|
2
2
|
//#region e2e/utils/tests.d.ts
|
|
3
|
-
declare const testA11y: (url: string) => void;
|
|
4
|
-
declare const testMetadata: ({ page, path, title }: {
|
|
3
|
+
export declare const testA11y: (url: string) => void;
|
|
4
|
+
export declare const testMetadata: ({ page, path, title }: {
|
|
5
5
|
page: Page;
|
|
6
6
|
path: string;
|
|
7
7
|
title: string;
|
|
8
8
|
}) => Promise<void>;
|
|
9
|
-
declare const testOgImage: (paths: {
|
|
9
|
+
export declare const testOgImage: (paths: {
|
|
10
10
|
static?: Record<string, string>;
|
|
11
11
|
dynamic?: Record<string, string>;
|
|
12
12
|
}) => void;
|
|
13
|
-
declare const testPageLoad: (url: string, status?: number) => void;
|
|
14
|
-
declare const testVisualRegression: (url: string, plain?: boolean) => void;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { testA11y, testMetadata, testOgImage, testPageLoad, testVisualRegression };
|
|
13
|
+
export declare const testPageLoad: (url: string, status?: number) => void;
|
|
14
|
+
export declare const testVisualRegression: (url: string, plain?: boolean) => void;
|
|
15
|
+
//#endregion
|
package/package.json
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
"devDependencies": {
|
|
3
3
|
"@axe-core/playwright": "4.13.0",
|
|
4
4
|
"@eslint/js": "10.0.1",
|
|
5
|
-
"@playwright/test": "1.
|
|
5
|
+
"@playwright/test": "1.63.0",
|
|
6
6
|
"@types/lodash-es": "4.17.12",
|
|
7
7
|
"@types/node": "24.13.3",
|
|
8
8
|
"cross-env": "10.1.0",
|
|
9
|
-
"eslint": "10.
|
|
9
|
+
"eslint": "10.10.0",
|
|
10
10
|
"eslint-config-prettier": "10.1.8",
|
|
11
11
|
"eslint-plugin-prettier": "5.5.6",
|
|
12
12
|
"lodash-es": "4.18.1",
|
|
13
|
-
"playwright-core": "1.
|
|
14
|
-
"tsdown": "0.
|
|
13
|
+
"playwright-core": "1.63.0",
|
|
14
|
+
"tsdown": "0.23.0",
|
|
15
15
|
"typescript": "6.0.3",
|
|
16
|
-
"typescript-eslint": "8.
|
|
16
|
+
"typescript-eslint": "8.70.0",
|
|
17
17
|
"ufo": "1.6.4"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"url": "git+https://github.com/dargmuesli/vio.git"
|
|
57
57
|
},
|
|
58
58
|
"type": "module",
|
|
59
|
-
"version": "22.0.
|
|
59
|
+
"version": "22.0.8",
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "tsdown",
|
|
62
62
|
"build:watch": "tsdown --watch",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"lint:ts": "tsc --noEmit",
|
|
67
67
|
"test:e2e": "playwright test",
|
|
68
68
|
"test:e2e:docker:br": "pnpm run test:e2e:docker:build && pnpm run test:e2e:docker:run",
|
|
69
|
-
"test:e2e:docker:build": "
|
|
70
|
-
"test:e2e:docker:run": "
|
|
69
|
+
"test:e2e:docker:build": "./scripts/docker.sh build -t test-e2e_development --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) --target test-e2e_development ..",
|
|
70
|
+
"test:e2e:docker:run": "./scripts/docker.sh run --add-host=app.localhost:127.0.0.1 --rm -v \"$PWD/..:/srv/app\" -v \"jonas-thelemann_playwright_data:/srv/app/node_modules\" -v \"$(pnpm store path):/srv/.pnpm-store\" test-e2e_development",
|
|
71
71
|
"test:e2e:docker:server:dev": "pnpm run test:e2e:docker:br pnpm run --dir tests test:e2e:server:dev",
|
|
72
72
|
"test:e2e:docker:server:dev:update": "pnpm run test:e2e:docker:server:dev --update-snapshots",
|
|
73
73
|
"test:e2e:docker:server:node": "pnpm run test:e2e:docker:br pnpm run --dir tests test:e2e:server:node",
|