@public-ui/visual-tests 2.0.9 → 2.0.10
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": "@public-ui/visual-tests",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": "https://github.com/public-ui/kolibri",
|
|
@@ -20,19 +20,18 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@playwright/test": "1.42.1",
|
|
23
|
-
"@public-ui/sample-react": "2.0.
|
|
23
|
+
"@public-ui/sample-react": "2.0.10",
|
|
24
24
|
"axe-playwright": "2.0.1",
|
|
25
25
|
"portfinder": "1.0.32",
|
|
26
26
|
"serve": "14.2.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@babel/eslint-parser": "7.
|
|
30
|
-
"@babel/plugin-syntax-import-attributes": "7.
|
|
31
|
-
"@babel/preset-env": "7.24.
|
|
32
|
-
"depcheck": "1.4.7",
|
|
29
|
+
"@babel/eslint-parser": "7.24.1",
|
|
30
|
+
"@babel/plugin-syntax-import-attributes": "7.24.1",
|
|
31
|
+
"@babel/preset-env": "7.24.3",
|
|
33
32
|
"eslint": "8.57.0",
|
|
34
33
|
"eslint-plugin-no-loops": "0.3.0",
|
|
35
|
-
"knip": "5.
|
|
34
|
+
"knip": "5.2.2",
|
|
36
35
|
"prettier": "3.2.5"
|
|
37
36
|
},
|
|
38
37
|
"files": [
|
|
@@ -41,7 +40,6 @@
|
|
|
41
40
|
"tests"
|
|
42
41
|
],
|
|
43
42
|
"scripts": {
|
|
44
|
-
"depcheck": "depcheck --ignores=@babel/plugin-syntax-import-attributes,@babel/preset-env,@public-ui/sample-react,portfinder,serve",
|
|
45
43
|
"format": "prettier --check src",
|
|
46
44
|
"lint": "eslint src",
|
|
47
45
|
"unused": "knip"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { test } from '@playwright/test';
|
|
2
2
|
import { checkA11y, injectAxe } from 'axe-playwright';
|
|
3
|
-
import path from 'path';
|
|
4
3
|
import { ROUTES } from './sample-app.routes.js';
|
|
5
4
|
|
|
5
|
+
const themeName = (process.env.THEME_EXPORT || 'default').toLocaleLowerCase();
|
|
6
6
|
const rename = (snapshotName) => {
|
|
7
7
|
const result = snapshotName
|
|
8
8
|
|
|
@@ -19,7 +19,7 @@ const rename = (snapshotName) => {
|
|
|
19
19
|
.replace('-1-', '-')
|
|
20
20
|
|
|
21
21
|
// Make different snapshot folder for different themes
|
|
22
|
-
.replace('theme-snapshots.spec.js', `axe-${
|
|
22
|
+
.replace('theme-snapshots.spec.js', `axe-${themeName}`)
|
|
23
23
|
.replace('-snapshots', '');
|
|
24
24
|
return result;
|
|
25
25
|
};
|
|
@@ -36,9 +36,6 @@ test.use({
|
|
|
36
36
|
},
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
/**
|
|
40
|
-
* @todo stabilize and re-enable test
|
|
41
|
-
*/
|
|
42
39
|
const blocklist = [];
|
|
43
40
|
|
|
44
41
|
ROUTES.forEach((options, route) => {
|
|
@@ -74,7 +71,7 @@ ROUTES.forEach((options, route) => {
|
|
|
74
71
|
'html',
|
|
75
72
|
{
|
|
76
73
|
outputDirPath: outputPath.replace(/\/[^/]+$/, ''),
|
|
77
|
-
outputDir: `axe-${
|
|
74
|
+
outputDir: `axe-${themeName}`,
|
|
78
75
|
reportFileName: `${route.replace('/', '-')}.html`,
|
|
79
76
|
},
|
|
80
77
|
);
|
|
@@ -183,6 +183,7 @@ ROUTES.set('input-password/show-password', null);
|
|
|
183
183
|
ROUTES.set('input-radio/basic', null);
|
|
184
184
|
ROUTES.set('input-radio/horizontal', null);
|
|
185
185
|
ROUTES.set('input-radio/select', null);
|
|
186
|
+
ROUTES.set('input-radio/object', null);
|
|
186
187
|
ROUTES.set('input-range/basic', null);
|
|
187
188
|
ROUTES.set('input-text/basic', null);
|
|
188
189
|
ROUTES.set('input-text/blur', null);
|
|
@@ -380,11 +381,6 @@ ROUTES.set('version/context', {
|
|
|
380
381
|
skipFailures: false,
|
|
381
382
|
},
|
|
382
383
|
});
|
|
383
|
-
ROUTES.set('scenarios/complex-form', {
|
|
384
|
-
axe: {
|
|
385
|
-
skipFailures: false,
|
|
386
|
-
},
|
|
387
|
-
});
|
|
388
384
|
ROUTES.set('scenarios/appointment-form', {
|
|
389
385
|
axe: {
|
|
390
386
|
skipFailures: false,
|
|
@@ -24,7 +24,7 @@ export const configureSnapshotPath =
|
|
|
24
24
|
.replace('-1-', '-')
|
|
25
25
|
|
|
26
26
|
// Make different snapshot folder for different themes
|
|
27
|
-
.replace('theme-snapshots.spec.js', `theme-${process.env.THEME_EXPORT.toLocaleLowerCase()}`)
|
|
27
|
+
.replace('theme-snapshots.spec.js', `theme-${(process.env.THEME_EXPORT || 'default').toLocaleLowerCase()}`)
|
|
28
28
|
.replace('-snapshots', '');
|
|
29
29
|
return result;
|
|
30
30
|
};
|
|
@@ -44,9 +44,6 @@ test.use({
|
|
|
44
44
|
},
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
/**
|
|
48
|
-
* @todo stabilize and re-enable test
|
|
49
|
-
*/
|
|
50
47
|
const blocklist = [];
|
|
51
48
|
|
|
52
49
|
ROUTES.forEach((options, route) => {
|