@public-ui/visual-tests 3.0.7-rc.0 → 4.0.0-alpha.1
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 +3 -3
- package/tests/sample-app.routes.js +74 -124
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/visual-tests",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha.1",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"axe-playwright": "2.2.2",
|
|
29
29
|
"portfinder": "1.0.38",
|
|
30
30
|
"serve": "14.2.5",
|
|
31
|
-
"@public-ui/sample-react": "
|
|
31
|
+
"@public-ui/sample-react": "4.0.0-alpha.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/eslint-parser": "7.28.4",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@babel/preset-env": "7.28.3",
|
|
37
37
|
"@playwright/test": "1.55.1",
|
|
38
38
|
"eslint": "8.57.1",
|
|
39
|
-
"knip": "5.64.
|
|
39
|
+
"knip": "5.64.1",
|
|
40
40
|
"prettier": "3.6.2"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
@@ -160,6 +160,10 @@ ROUTES.set('button/baselined', {
|
|
|
160
160
|
});
|
|
161
161
|
ROUTES.set('button/short-key', {
|
|
162
162
|
snapshot: {
|
|
163
|
+
viewportSize: {
|
|
164
|
+
width: 800,
|
|
165
|
+
height: 434,
|
|
166
|
+
},
|
|
163
167
|
zoom: {
|
|
164
168
|
skip: true,
|
|
165
169
|
},
|
|
@@ -666,6 +670,10 @@ ROUTES.set('split-button/basic', {
|
|
|
666
670
|
});
|
|
667
671
|
ROUTES.set('table/horizontal-scrollbar', {
|
|
668
672
|
snapshot: {
|
|
673
|
+
viewportSize: {
|
|
674
|
+
width: 800,
|
|
675
|
+
height: 800,
|
|
676
|
+
},
|
|
669
677
|
zoom: {
|
|
670
678
|
skip: true,
|
|
671
679
|
},
|
|
@@ -673,6 +681,10 @@ ROUTES.set('table/horizontal-scrollbar', {
|
|
|
673
681
|
});
|
|
674
682
|
ROUTES.set('table/column-alignment', {
|
|
675
683
|
snapshot: {
|
|
684
|
+
viewportSize: {
|
|
685
|
+
width: 800,
|
|
686
|
+
height: 400,
|
|
687
|
+
},
|
|
676
688
|
zoom: {
|
|
677
689
|
skip: true,
|
|
678
690
|
},
|
|
@@ -680,6 +692,10 @@ ROUTES.set('table/column-alignment', {
|
|
|
680
692
|
});
|
|
681
693
|
ROUTES.set('table/sort-data', {
|
|
682
694
|
snapshot: {
|
|
695
|
+
viewportSize: {
|
|
696
|
+
width: 800,
|
|
697
|
+
height: 400,
|
|
698
|
+
},
|
|
683
699
|
skip: true,
|
|
684
700
|
zoom: {
|
|
685
701
|
skip: true,
|
|
@@ -688,6 +704,10 @@ ROUTES.set('table/sort-data', {
|
|
|
688
704
|
});
|
|
689
705
|
ROUTES.set('table/with-footer', {
|
|
690
706
|
snapshot: {
|
|
707
|
+
viewportSize: {
|
|
708
|
+
width: 800,
|
|
709
|
+
height: 360,
|
|
710
|
+
},
|
|
691
711
|
zoom: {
|
|
692
712
|
skip: true,
|
|
693
713
|
},
|
|
@@ -695,6 +715,10 @@ ROUTES.set('table/with-footer', {
|
|
|
695
715
|
});
|
|
696
716
|
ROUTES.set('table/with-pagination', {
|
|
697
717
|
snapshot: {
|
|
718
|
+
viewportSize: {
|
|
719
|
+
width: 800,
|
|
720
|
+
height: 740,
|
|
721
|
+
},
|
|
698
722
|
zoom: {
|
|
699
723
|
skip: true,
|
|
700
724
|
},
|
|
@@ -702,6 +726,10 @@ ROUTES.set('table/with-pagination', {
|
|
|
702
726
|
});
|
|
703
727
|
ROUTES.set('table/pagination-position', {
|
|
704
728
|
snapshot: {
|
|
729
|
+
viewportSize: {
|
|
730
|
+
width: 800,
|
|
731
|
+
height: 400,
|
|
732
|
+
},
|
|
705
733
|
skip: true,
|
|
706
734
|
zoom: {
|
|
707
735
|
skip: true,
|
|
@@ -710,6 +738,10 @@ ROUTES.set('table/pagination-position', {
|
|
|
710
738
|
});
|
|
711
739
|
ROUTES.set('table/complex-headers', {
|
|
712
740
|
snapshot: {
|
|
741
|
+
viewportSize: {
|
|
742
|
+
width: 800,
|
|
743
|
+
height: 400,
|
|
744
|
+
},
|
|
713
745
|
zoom: {
|
|
714
746
|
skip: true,
|
|
715
747
|
},
|
|
@@ -717,6 +749,10 @@ ROUTES.set('table/complex-headers', {
|
|
|
717
749
|
});
|
|
718
750
|
ROUTES.set('table/non-hidable-columns', {
|
|
719
751
|
snapshot: {
|
|
752
|
+
viewportSize: {
|
|
753
|
+
width: 800,
|
|
754
|
+
height: 235,
|
|
755
|
+
},
|
|
720
756
|
zoom: {
|
|
721
757
|
skip: true,
|
|
722
758
|
},
|
|
@@ -724,6 +760,10 @@ ROUTES.set('table/non-hidable-columns', {
|
|
|
724
760
|
});
|
|
725
761
|
ROUTES.set('table/stateful-with-selection', {
|
|
726
762
|
snapshot: {
|
|
763
|
+
viewportSize: {
|
|
764
|
+
width: 800,
|
|
765
|
+
height: 509,
|
|
766
|
+
},
|
|
727
767
|
zoom: {
|
|
728
768
|
skip: true,
|
|
729
769
|
},
|
|
@@ -731,20 +771,32 @@ ROUTES.set('table/stateful-with-selection', {
|
|
|
731
771
|
});
|
|
732
772
|
ROUTES.set('table/stateful-with-single-selection', {
|
|
733
773
|
snapshot: {
|
|
774
|
+
viewportSize: {
|
|
775
|
+
width: 800,
|
|
776
|
+
height: 370,
|
|
777
|
+
},
|
|
734
778
|
zoom: {
|
|
735
779
|
skip: true,
|
|
736
780
|
},
|
|
737
781
|
},
|
|
738
782
|
});
|
|
739
|
-
ROUTES.set('table/stateless-with-
|
|
783
|
+
ROUTES.set('table/stateless-with-selection', {
|
|
740
784
|
snapshot: {
|
|
785
|
+
viewportSize: {
|
|
786
|
+
width: 800,
|
|
787
|
+
height: 495,
|
|
788
|
+
},
|
|
741
789
|
zoom: {
|
|
742
790
|
skip: true,
|
|
743
791
|
},
|
|
744
792
|
},
|
|
745
793
|
});
|
|
746
|
-
ROUTES.set('table/stateless-with-selection', {
|
|
794
|
+
ROUTES.set('table/stateless-with-single-selection', {
|
|
747
795
|
snapshot: {
|
|
796
|
+
viewportSize: {
|
|
797
|
+
width: 800,
|
|
798
|
+
height: 370,
|
|
799
|
+
},
|
|
748
800
|
zoom: {
|
|
749
801
|
skip: true,
|
|
750
802
|
},
|
|
@@ -752,12 +804,30 @@ ROUTES.set('table/stateless-with-selection', {
|
|
|
752
804
|
});
|
|
753
805
|
ROUTES.set('table/stateless', {
|
|
754
806
|
snapshot: {
|
|
807
|
+
viewportSize: {
|
|
808
|
+
width: 800,
|
|
809
|
+
height: 400,
|
|
810
|
+
},
|
|
755
811
|
skip: true,
|
|
756
812
|
zoom: {
|
|
757
813
|
skip: true,
|
|
758
814
|
},
|
|
759
815
|
},
|
|
760
816
|
});
|
|
817
|
+
ROUTES.set('table/sticky-header', {
|
|
818
|
+
axe: {
|
|
819
|
+
skipFailures: true,
|
|
820
|
+
},
|
|
821
|
+
snapshot: {
|
|
822
|
+
viewportSize: {
|
|
823
|
+
width: 1300,
|
|
824
|
+
height: 1000,
|
|
825
|
+
},
|
|
826
|
+
zoom: {
|
|
827
|
+
skip: true,
|
|
828
|
+
},
|
|
829
|
+
},
|
|
830
|
+
});
|
|
761
831
|
ROUTES.set('tabs/basic', {
|
|
762
832
|
snapshot: {
|
|
763
833
|
zoom: {
|
|
@@ -831,137 +901,17 @@ ROUTES.set('textarea/with-counter', {
|
|
|
831
901
|
},
|
|
832
902
|
},
|
|
833
903
|
});
|
|
834
|
-
ROUTES.set('toast/
|
|
835
|
-
snapshot: {
|
|
836
|
-
skip: true,
|
|
837
|
-
zoom: {
|
|
838
|
-
skip: true,
|
|
839
|
-
},
|
|
840
|
-
},
|
|
841
|
-
});
|
|
842
|
-
ROUTES.set('toast/basic?type=info', {
|
|
843
|
-
snapshot: {
|
|
844
|
-
viewportSize: {
|
|
845
|
-
width: 600,
|
|
846
|
-
height: 300,
|
|
847
|
-
},
|
|
848
|
-
zoom: {
|
|
849
|
-
skip: true,
|
|
850
|
-
},
|
|
851
|
-
},
|
|
852
|
-
});
|
|
853
|
-
ROUTES.set('toast/basic?type=success', {
|
|
854
|
-
snapshot: {
|
|
855
|
-
viewportSize: {
|
|
856
|
-
width: 600,
|
|
857
|
-
height: 300,
|
|
858
|
-
},
|
|
859
|
-
zoom: {
|
|
860
|
-
skip: true,
|
|
861
|
-
},
|
|
862
|
-
},
|
|
863
|
-
});
|
|
864
|
-
ROUTES.set('toast/basic?type=warning', {
|
|
865
|
-
snapshot: {
|
|
866
|
-
viewportSize: {
|
|
867
|
-
width: 600,
|
|
868
|
-
height: 300,
|
|
869
|
-
},
|
|
870
|
-
zoom: {
|
|
871
|
-
skip: true,
|
|
872
|
-
},
|
|
873
|
-
},
|
|
874
|
-
});
|
|
875
|
-
ROUTES.set('toast/basic?type=error', {
|
|
876
|
-
snapshot: {
|
|
877
|
-
viewportSize: {
|
|
878
|
-
width: 600,
|
|
879
|
-
height: 300,
|
|
880
|
-
},
|
|
881
|
-
zoom: {
|
|
882
|
-
skip: true,
|
|
883
|
-
},
|
|
884
|
-
},
|
|
885
|
-
});
|
|
886
|
-
ROUTES.set('toast/basic?variant=msg', {
|
|
887
|
-
snapshot: {
|
|
888
|
-
viewportSize: {
|
|
889
|
-
width: 600,
|
|
890
|
-
height: 300,
|
|
891
|
-
},
|
|
892
|
-
zoom: {
|
|
893
|
-
skip: true,
|
|
894
|
-
},
|
|
895
|
-
},
|
|
896
|
-
});
|
|
897
|
-
ROUTES.set('toast/basic?variant=card', {
|
|
898
|
-
snapshot: {
|
|
899
|
-
viewportSize: {
|
|
900
|
-
width: 600,
|
|
901
|
-
height: 300,
|
|
902
|
-
},
|
|
903
|
-
zoom: {
|
|
904
|
-
skip: true,
|
|
905
|
-
},
|
|
906
|
-
},
|
|
907
|
-
});
|
|
908
|
-
|
|
909
|
-
ROUTES.set('toast/basic?type=default&variant=msg', {
|
|
904
|
+
ROUTES.set('toast/configurator', {
|
|
910
905
|
snapshot: {
|
|
911
906
|
viewportSize: {
|
|
912
907
|
width: 600,
|
|
913
|
-
height:
|
|
908
|
+
height: 750,
|
|
914
909
|
},
|
|
915
910
|
zoom: {
|
|
916
911
|
skip: true,
|
|
917
912
|
},
|
|
918
913
|
},
|
|
919
914
|
});
|
|
920
|
-
ROUTES.set('toast/basic?type=info&variant=msg', {
|
|
921
|
-
snapshot: {
|
|
922
|
-
viewportSize: {
|
|
923
|
-
width: 600,
|
|
924
|
-
height: 300,
|
|
925
|
-
},
|
|
926
|
-
zoom: {
|
|
927
|
-
skip: true,
|
|
928
|
-
},
|
|
929
|
-
},
|
|
930
|
-
});
|
|
931
|
-
ROUTES.set('toast/basic?type=success&variant=msg', {
|
|
932
|
-
snapshot: {
|
|
933
|
-
viewportSize: {
|
|
934
|
-
width: 600,
|
|
935
|
-
height: 300,
|
|
936
|
-
},
|
|
937
|
-
zoom: {
|
|
938
|
-
skip: true,
|
|
939
|
-
},
|
|
940
|
-
},
|
|
941
|
-
});
|
|
942
|
-
ROUTES.set('toast/basic?type=warning&variant=msg', {
|
|
943
|
-
snapshot: {
|
|
944
|
-
viewportSize: {
|
|
945
|
-
width: 600,
|
|
946
|
-
height: 300,
|
|
947
|
-
},
|
|
948
|
-
zoom: {
|
|
949
|
-
skip: true,
|
|
950
|
-
},
|
|
951
|
-
},
|
|
952
|
-
});
|
|
953
|
-
ROUTES.set('toast/basic?type=error&variant=msg', {
|
|
954
|
-
snapshot: {
|
|
955
|
-
viewportSize: {
|
|
956
|
-
width: 600,
|
|
957
|
-
height: 300,
|
|
958
|
-
},
|
|
959
|
-
zoom: {
|
|
960
|
-
skip: true,
|
|
961
|
-
},
|
|
962
|
-
},
|
|
963
|
-
});
|
|
964
|
-
|
|
965
915
|
ROUTES.set('toolbar/basic', {
|
|
966
916
|
snapshot: {
|
|
967
917
|
viewportSize: {
|