@public-ui/visual-tests 2.1.2 → 2.1.3

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.1.2",
3
+ "version": "2.1.3",
4
4
  "license": "EUPL-1.2",
5
5
  "homepage": "https://public-ui.github.io",
6
6
  "repository": {
@@ -22,20 +22,20 @@
22
22
  "kolibri-visual-test": "src/index.js"
23
23
  },
24
24
  "dependencies": {
25
- "@playwright/test": "1.44.1",
25
+ "@playwright/test": "1.45.0",
26
26
  "axe-playwright": "2.0.1",
27
27
  "portfinder": "1.0.32",
28
28
  "serve": "14.2.3",
29
- "@public-ui/sample-react": "2.1.2"
29
+ "@public-ui/sample-react": "2.1.3"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@babel/eslint-parser": "7.24.7",
33
33
  "@babel/plugin-syntax-import-attributes": "7.24.7",
34
34
  "@babel/preset-env": "7.24.7",
35
35
  "eslint": "8.57.0",
36
- "eslint-plugin-no-loops": "0.3.0",
37
- "knip": "5.18.2",
38
- "prettier": "3.3.1"
36
+ "eslint-plugin-no-loops": "0.4.0",
37
+ "knip": "5.23.0",
38
+ "prettier": "3.3.2"
39
39
  },
40
40
  "files": [
41
41
  "playwright.config.js",
@@ -426,3 +426,25 @@ ROUTES.set('scenarios/disabled-interactive-scenario', {
426
426
  skipFailures: false,
427
427
  },
428
428
  });
429
+
430
+ /* Focus tests */
431
+ ROUTES.set('scenarios/focus-elements?component=inputCheckbox');
432
+ ROUTES.set('scenarios/focus-elements?component=inputColor');
433
+ ROUTES.set('scenarios/focus-elements?component=inputDate');
434
+ ROUTES.set('scenarios/focus-elements?component=inputEmail');
435
+ ROUTES.set('scenarios/focus-elements?component=inputFile');
436
+ ROUTES.set('scenarios/focus-elements?component=inputFileMultiple');
437
+ ROUTES.set('scenarios/focus-elements?component=inputNumber');
438
+ ROUTES.set('scenarios/focus-elements?component=inputPassword');
439
+ ROUTES.set('scenarios/focus-elements?component=inputRadio');
440
+ ROUTES.set('scenarios/focus-elements?component=inputRange');
441
+ ROUTES.set('scenarios/focus-elements?component=inputText');
442
+ ROUTES.set('scenarios/focus-elements?component=select');
443
+ ROUTES.set('scenarios/focus-elements?component=selectMultiple');
444
+ ROUTES.set('scenarios/focus-elements?component=textarea');
445
+ ROUTES.set('scenarios/focus-elements?component=accordion');
446
+ ROUTES.set('scenarios/focus-elements?component=button');
447
+ ROUTES.set('scenarios/focus-elements?component=buttonLink');
448
+ ROUTES.set('scenarios/focus-elements?component=details');
449
+ ROUTES.set('scenarios/focus-elements?component=link');
450
+ ROUTES.set('scenarios/focus-elements?component=linkButton');
@@ -51,7 +51,8 @@ ROUTES.forEach((options, route) => {
51
51
  return;
52
52
  }
53
53
  test(`snapshot for ${route}`, async ({ page }) => {
54
- await page.goto(`/#${route}?hideMenus`, { waitUntil: 'networkidle' });
54
+ const hideMenusParam = `${route.includes('?') ? '&' : '?'}hideMenus`;
55
+ await page.goto(`/#${route}${hideMenusParam}`, { waitUntil: 'networkidle' });
55
56
  if (options?.viewportSize) {
56
57
  await page.setViewportSize(options.viewportSize);
57
58
  }