@@ -55,6 +55,34 @@ test("Left toolbox", async (t) => {
55
55
} ) ;
56
56
} ) ;
57
57
58
+ test ( "Left toolbox - subitems in first item" , async ( t ) => {
59
+ await wrapVisualTest ( t , async ( t , comparer ) => {
60
+ await changeToolboxScrolling ( false ) ;
61
+ await changeToolboxSearchEnabled ( false ) ;
62
+ await setAllowEditSurveyTitle ( false ) ;
63
+ await setShowAddQuestionButton ( false ) ;
64
+
65
+ await ClientFunction ( ( ) => {
66
+ window [ "creator" ] . toolbox . removeItem ( "radiogroup" ) ;
67
+ } ) ( ) ;
68
+
69
+ const toolboxItem = Selector ( ".svc-toolbox__item" ) ;
70
+ const toolboxElement = Selector ( ".svc-toolbox" ) ;
71
+
72
+ await setJSON ( {
73
+ showQuestionNumbers : "on" , pages : [ { name : "page1" } ]
74
+ } ) ;
75
+ await t . resizeWindow ( 2560 , 1440 ) ;
76
+ await setShowSidebar ( false ) ;
77
+ await takeElementScreenshot ( "toolbox-left-subitems-first.png" , toolboxElement , t , comparer ) ;
78
+
79
+ await t . hover ( toolboxItem ) ;
80
+ await takeElementScreenshot ( "toolbox-left-hover-item-subitems-first.png" , toolboxElement , t , comparer ) ;
81
+
82
+ await t . resizeWindow ( 2560 , 1440 ) ;
83
+ } ) ;
84
+ } ) ;
85
+
58
86
test ( "Right toolbox" , async ( t ) => {
59
87
await wrapVisualTest ( t , async ( t , comparer ) => {
60
88
await changeToolboxScrolling ( false ) ;
0 commit comments