@@ -14,6 +14,7 @@ import {
1414 addWidget ,
1515 deleteAllDefaultWidgets ,
1616 deleteWidget ,
17+ expectHomeWidgetsSection ,
1718 expectWidgetPresent ,
1819 expectWidgetSavedInEditList ,
1920 openSavedWidgetPreview ,
@@ -99,34 +100,26 @@ describe('@widgets - Widgets', () => {
99100 await tap ( 'DialogConfirm' ) ;
100101 await sleep ( 1000 ) ;
101102
102- await scrollHomeToWidgets ( ) ;
103+ await expectHomeWidgetsSection ( true ) ;
103104 await expectWidgetPresent ( 'price' ) ;
104- await expectWidgetPresent ( 'weather' ) ;
105105 await expectWidgetPresent ( 'calculator' ) ;
106- await expectWidgetPresent ( 'blocks' ) ;
107106
108107 await openSettings ( ) ;
109108 await tap ( 'WidgetsSettings' ) ;
110109 await tap ( 'ShowWidgets' ) ;
111110 await tap ( 'NavigationBack' ) ;
112111 await doNavigationClose ( ) ;
113112
114- await scrollHomeToWidgets ( ) ;
115- await expectWidgetPresent ( 'price' , false , { timeout : 5000 } ) ;
116- await expectWidgetPresent ( 'weather' , false , { timeout : 5000 } ) ;
117- await expectWidgetPresent ( 'calculator' , false , { timeout : 5000 } ) ;
118- await expectWidgetPresent ( 'blocks' , false , { timeout : 5000 } ) ;
113+ await expectHomeWidgetsSection ( false , { timeout : 5_000 } ) ;
119114
120115 await openSettings ( ) ;
121116 await tap ( 'WidgetsSettings' ) ;
122117 await tap ( 'ShowWidgets' ) ;
123118 await tap ( 'NavigationBack' ) ;
124119 await doNavigationClose ( ) ;
125120
126- await scrollHomeToWidgets ( ) ;
121+ await expectHomeWidgetsSection ( true ) ;
127122 await expectWidgetPresent ( 'price' ) ;
128- await expectWidgetPresent ( 'weather' ) ;
129123 await expectWidgetPresent ( 'calculator' ) ;
130- await expectWidgetPresent ( 'blocks' ) ;
131124 } ) ;
132125} ) ;
0 commit comments