@public-ui/visual-tests 3.0.1 → 3.0.2-ab502d4896d9763f93bb8cce1b07a1b2f8d04439.0
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 +2 -2
- package/src/index.js +1 -1
- package/tests/sample-app.routes.js +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/visual-tests",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2-ab502d4896d9763f93bb8cce1b07a1b2f8d04439.0",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"axe-playwright": "2.1.0",
|
|
30
30
|
"portfinder": "1.0.37",
|
|
31
31
|
"serve": "14.2.4",
|
|
32
|
-
"@public-ui/sample-react": "3.0.
|
|
32
|
+
"@public-ui/sample-react": "3.0.2-ab502d4896d9763f93bb8cce1b07a1b2f8d04439.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@babel/eslint-parser": "7.27.5",
|
package/src/index.js
CHANGED
|
@@ -35,7 +35,7 @@ const packageJson = JSON.parse(packageJsonContent);
|
|
|
35
35
|
console.log(`
|
|
36
36
|
Building React Sample App (v${packageJson?.version ?? '#.#.#'}) …`);
|
|
37
37
|
|
|
38
|
-
child_process.spawnSync('pnpm', ['run', 'build',
|
|
38
|
+
child_process.spawnSync('pnpm', ['run', 'build', `--outDir="${buildPath}"`], {
|
|
39
39
|
cwd: workingDir,
|
|
40
40
|
encoding: 'utf-8',
|
|
41
41
|
shell: true,
|
|
@@ -213,6 +213,17 @@ ROUTES.set('drawer/basic?align=bottom', {
|
|
|
213
213
|
},
|
|
214
214
|
},
|
|
215
215
|
});
|
|
216
|
+
ROUTES.set('drawer/basic?align=left&closer=true', {
|
|
217
|
+
snapshot: {
|
|
218
|
+
viewportSize: {
|
|
219
|
+
width: 600,
|
|
220
|
+
height: 400,
|
|
221
|
+
},
|
|
222
|
+
zoom: {
|
|
223
|
+
skip: true,
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
});
|
|
216
227
|
ROUTES.set('form/basic', {
|
|
217
228
|
snapshot: {
|
|
218
229
|
skip: true,
|