@public-ui/visual-tests 4.1.2-rc.0 → 4.1.2-rc.2

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": "4.1.2-rc.0",
3
+ "version": "4.1.2-rc.2",
4
4
  "license": "EUPL-1.2",
5
5
  "homepage": "https://public-ui.github.io",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "axe-html-reporter": "2.2.11",
30
30
  "http-server": "14.1.1",
31
31
  "portfinder": "1.0.38",
32
- "@public-ui/sample-react": "4.1.2-rc.0"
32
+ "@public-ui/sample-react": "4.1.2-rc.2"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@babel/eslint-parser": "7.28.6",
@@ -37,7 +37,7 @@
37
37
  "@playwright/test": "1.58.2",
38
38
  "eslint": "9.39.4",
39
39
  "globals": "17.4.0",
40
- "knip": "5.85.0",
40
+ "knip": "5.87.0",
41
41
  "prettier": "3.8.1",
42
42
  "prettier-plugin-organize-imports": "4.3.0"
43
43
  },
@@ -7,6 +7,7 @@ const PORT = parseInt(process.env.KOLIBRI_VISUAL_TEST_PORT || '', 10);
7
7
  const BASE_URL = `http://localhost:${PORT}`;
8
8
 
9
9
  const CWD = process.env.KOLIBRI_CWD ?? '';
10
+ const HTML_REPORT_DIR = 'playwright-report';
10
11
  const TIMEOUT = parseInt(process.env.KOLIBRI_VISUAL_TESTS_TIMEOUT || '15000', 10);
11
12
  const EXPECT_TIMEOUT = parseInt(process.env.KOLIBRI_VISUAL_TESTS_EXPECT_TIMEOUT || '5000', 10);
12
13
  const BUILD_PATH = process.env.KOLIBRI_VISUAL_TESTS_BUILD_PATH ?? '';
@@ -41,7 +42,7 @@ export default defineConfig({
41
42
  /* Allow to override the expectation timeout for slow environments */
42
43
  timeout: TIMEOUT,
43
44
  /* Reporter to use. See https://playwright.dev/docs/test-reporters */
44
- reporter: 'line',
45
+ reporter: [['line'], ['html', { open: 'never', outputFolder: path.join(CWD, HTML_REPORT_DIR) }]],
45
46
  /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
46
47
  use: {
47
48
  /* Base URL to use in actions like `await page.goto('/')`. */
@@ -672,6 +672,7 @@ ROUTES.set('link/target', {
672
672
  skip: true,
673
673
  },
674
674
  });
675
+ ROUTES.set('link/link-variant', {});
675
676
  ROUTES.set('modal/basic?show-dialog=true', {
676
677
  snapshot: {
677
678
  viewportSize: {
@@ -1139,6 +1140,17 @@ ROUTES.set('version/context', {
1139
1140
  },
1140
1141
  },
1141
1142
  });
1143
+ ROUTES.set('scenarios/accordion-components', {
1144
+ snapshot: {
1145
+ viewportSize: {
1146
+ width: 200,
1147
+ height: 0,
1148
+ },
1149
+ zoom: {
1150
+ skip: true,
1151
+ },
1152
+ },
1153
+ });
1142
1154
  ROUTES.set('scenarios/static-form', {
1143
1155
  axe: {
1144
1156
  skipFailures: true,
@@ -30,6 +30,7 @@ ROUTES.forEach((options, route) => {
30
30
  const hideMenusParam = `${route.includes('?') ? '&' : '?'}hideMenus`;
31
31
  await page.goto(`/#${route}${hideMenusParam}`);
32
32
  await page.waitForLoadState('networkidle');
33
+ await page.waitForSelector('.loading', { state: 'hidden' });
33
34
  await page.addStyleTag({
34
35
  content: `
35
36
  * {