@public-ui/visual-tests 2.0.9 → 2.0.11

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,9 +1,12 @@
1
1
  {
2
2
  "name": "@public-ui/visual-tests",
3
- "version": "2.0.9",
3
+ "version": "2.0.11",
4
4
  "license": "EUPL-1.2",
5
5
  "homepage": "https://public-ui.github.io",
6
- "repository": "https://github.com/public-ui/kolibri",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/public-ui/kolibri"
9
+ },
7
10
  "bugs": {
8
11
  "url": "https://github.com/public-ui/kolibri/issues",
9
12
  "email": "kolibri@itzbund.de"
@@ -20,19 +23,18 @@
20
23
  },
21
24
  "dependencies": {
22
25
  "@playwright/test": "1.42.1",
23
- "@public-ui/sample-react": "2.0.9",
26
+ "@public-ui/sample-react": "2.0.11",
24
27
  "axe-playwright": "2.0.1",
25
28
  "portfinder": "1.0.32",
26
29
  "serve": "14.2.1"
27
30
  },
28
31
  "devDependencies": {
29
- "@babel/eslint-parser": "7.23.10",
30
- "@babel/plugin-syntax-import-attributes": "7.23.3",
31
- "@babel/preset-env": "7.24.0",
32
- "depcheck": "1.4.7",
32
+ "@babel/eslint-parser": "7.24.1",
33
+ "@babel/plugin-syntax-import-attributes": "7.24.1",
34
+ "@babel/preset-env": "7.24.3",
33
35
  "eslint": "8.57.0",
34
36
  "eslint-plugin-no-loops": "0.3.0",
35
- "knip": "5.0.3",
37
+ "knip": "5.6.1",
36
38
  "prettier": "3.2.5"
37
39
  },
38
40
  "files": [
@@ -41,7 +43,6 @@
41
43
  "tests"
42
44
  ],
43
45
  "scripts": {
44
- "depcheck": "depcheck --ignores=@babel/plugin-syntax-import-attributes,@babel/preset-env,@public-ui/sample-react,portfinder,serve",
45
46
  "format": "prettier --check src",
46
47
  "lint": "eslint src",
47
48
  "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-${process.env.THEME_EXPORT.toLocaleLowerCase()}`)
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-${process.env.THEME_EXPORT.toLocaleLowerCase()}`,
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) => {