@public-ui/visual-tests 4.0.0-alpha.7 → 4.0.0-alpha.8
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/README.md +2 -2
- package/package.json +3 -3
- package/tests/sample-app.routes.js +113 -1
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ Add the following npm scripts to the theme's `package.json`:
|
|
|
45
45
|
{
|
|
46
46
|
"scripts": {
|
|
47
47
|
"test": "THEME_MODULE=src/index THEME_EXPORT=THEME_NAME kolibri-visual-test",
|
|
48
|
-
"test
|
|
48
|
+
"test:update:e2e": "THEME_MODULE=src/index THEME_EXPORT=THEME_NAME kolibri-visual-test --update-snapshots=changed"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
```
|
|
@@ -61,6 +61,6 @@ Add the following npm scripts to the theme's `package.json`:
|
|
|
61
61
|
Run the tests with `npm test`. The first time, this will create a new folder `snapshots` which is supposed to be committed to the repository.
|
|
62
62
|
In the following runs, new screenshots will be compared to this reference.
|
|
63
63
|
|
|
64
|
-
To update the reference screenshots call `npm run test
|
|
64
|
+
To update the reference screenshots call `npm run test:update`.
|
|
65
65
|
|
|
66
66
|
For details on theming see the [default theme README](../../themes/default/README.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/visual-tests",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.8",
|
|
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
|
"portfinder": "1.0.38",
|
|
31
31
|
"serve": "14.2.5",
|
|
32
|
-
"@public-ui/sample-react": "4.0.0-alpha.
|
|
32
|
+
"@public-ui/sample-react": "4.0.0-alpha.8"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@babel/eslint-parser": "7.28.5",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@playwright/test": "1.57.0",
|
|
39
39
|
"eslint": "8.57.1",
|
|
40
40
|
"knip": "5.71.0",
|
|
41
|
-
"prettier": "3.7.
|
|
41
|
+
"prettier": "3.7.4",
|
|
42
42
|
"prettier-plugin-organize-imports": "4.3.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
@@ -493,6 +493,36 @@ ROUTES.set('input-range/basic?noColumns', {
|
|
|
493
493
|
},
|
|
494
494
|
});
|
|
495
495
|
ROUTES.set('input-text/basic?noColumns', {
|
|
496
|
+
snapshot: {
|
|
497
|
+
skip: true,
|
|
498
|
+
zoom: {
|
|
499
|
+
skip: true,
|
|
500
|
+
},
|
|
501
|
+
},
|
|
502
|
+
});
|
|
503
|
+
ROUTES.set('input-text/message-types?noColumns', {
|
|
504
|
+
snapshot: {
|
|
505
|
+
viewportSize: {
|
|
506
|
+
width: 500,
|
|
507
|
+
height: 0,
|
|
508
|
+
},
|
|
509
|
+
zoom: {
|
|
510
|
+
skip: true,
|
|
511
|
+
},
|
|
512
|
+
},
|
|
513
|
+
});
|
|
514
|
+
ROUTES.set('input-text/placeholder?noColumns', {
|
|
515
|
+
snapshot: {
|
|
516
|
+
viewportSize: {
|
|
517
|
+
width: 500,
|
|
518
|
+
height: 0,
|
|
519
|
+
},
|
|
520
|
+
zoom: {
|
|
521
|
+
skip: true,
|
|
522
|
+
},
|
|
523
|
+
},
|
|
524
|
+
});
|
|
525
|
+
ROUTES.set('input-text/disabled?noColumns', {
|
|
496
526
|
snapshot: {
|
|
497
527
|
viewportSize: {
|
|
498
528
|
width: 500,
|
|
@@ -503,7 +533,7 @@ ROUTES.set('input-text/basic?noColumns', {
|
|
|
503
533
|
},
|
|
504
534
|
},
|
|
505
535
|
});
|
|
506
|
-
ROUTES.set('input-text/
|
|
536
|
+
ROUTES.set('input-text/readonly?noColumns', {
|
|
507
537
|
snapshot: {
|
|
508
538
|
viewportSize: {
|
|
509
539
|
width: 500,
|
|
@@ -514,6 +544,85 @@ ROUTES.set('input-text/text-formatter', {
|
|
|
514
544
|
},
|
|
515
545
|
},
|
|
516
546
|
});
|
|
547
|
+
ROUTES.set('input-text/access-short-key?noColumns', {
|
|
548
|
+
snapshot: {
|
|
549
|
+
viewportSize: {
|
|
550
|
+
width: 500,
|
|
551
|
+
height: 0,
|
|
552
|
+
},
|
|
553
|
+
zoom: {
|
|
554
|
+
skip: true,
|
|
555
|
+
},
|
|
556
|
+
},
|
|
557
|
+
});
|
|
558
|
+
ROUTES.set('input-text/hide-label?noColumns', {
|
|
559
|
+
snapshot: {
|
|
560
|
+
viewportSize: {
|
|
561
|
+
width: 800,
|
|
562
|
+
height: 0,
|
|
563
|
+
},
|
|
564
|
+
zoom: {
|
|
565
|
+
skip: true,
|
|
566
|
+
},
|
|
567
|
+
},
|
|
568
|
+
});
|
|
569
|
+
ROUTES.set('input-text/hide-msg?noColumns', {
|
|
570
|
+
snapshot: {
|
|
571
|
+
viewportSize: {
|
|
572
|
+
width: 800,
|
|
573
|
+
height: 0,
|
|
574
|
+
},
|
|
575
|
+
zoom: {
|
|
576
|
+
skip: true,
|
|
577
|
+
},
|
|
578
|
+
},
|
|
579
|
+
});
|
|
580
|
+
ROUTES.set('input-text/text-formatter?noColumns', {
|
|
581
|
+
snapshot: {
|
|
582
|
+
skip: true,
|
|
583
|
+
zoom: {
|
|
584
|
+
skip: true,
|
|
585
|
+
},
|
|
586
|
+
},
|
|
587
|
+
});
|
|
588
|
+
ROUTES.set('input-text/smart-button?noColumns', {
|
|
589
|
+
snapshot: {
|
|
590
|
+
viewportSize: {
|
|
591
|
+
width: 500,
|
|
592
|
+
height: 0,
|
|
593
|
+
},
|
|
594
|
+
zoom: {
|
|
595
|
+
skip: true,
|
|
596
|
+
},
|
|
597
|
+
},
|
|
598
|
+
});
|
|
599
|
+
ROUTES.set('input-text/expert-slot?noColumns', {
|
|
600
|
+
snapshot: {
|
|
601
|
+
skip: true,
|
|
602
|
+
zoom: {
|
|
603
|
+
skip: true,
|
|
604
|
+
},
|
|
605
|
+
},
|
|
606
|
+
});
|
|
607
|
+
ROUTES.set('input-text/select-range?noColumns', {
|
|
608
|
+
snapshot: {
|
|
609
|
+
skip: true,
|
|
610
|
+
zoom: {
|
|
611
|
+
skip: true,
|
|
612
|
+
},
|
|
613
|
+
},
|
|
614
|
+
});
|
|
615
|
+
ROUTES.set('input-text/background?noColumns', {
|
|
616
|
+
snapshot: {
|
|
617
|
+
viewportSize: {
|
|
618
|
+
width: 250,
|
|
619
|
+
height: 0,
|
|
620
|
+
},
|
|
621
|
+
zoom: {
|
|
622
|
+
skip: true,
|
|
623
|
+
},
|
|
624
|
+
},
|
|
625
|
+
});
|
|
517
626
|
ROUTES.set('kolibri/basic', {
|
|
518
627
|
snapshot: {
|
|
519
628
|
skip: true,
|
|
@@ -608,6 +717,9 @@ ROUTES.set('popover-button/basic', {
|
|
|
608
717
|
},
|
|
609
718
|
},
|
|
610
719
|
});
|
|
720
|
+
ROUTES.set('popover-button/inline', {
|
|
721
|
+
snapshot: {},
|
|
722
|
+
});
|
|
611
723
|
ROUTES.set('progress/basic', {
|
|
612
724
|
snapshot: {
|
|
613
725
|
zoom: {
|