@@ -40,6 +40,7 @@ describe(`${suite}-${spec}-suite`, async function () {
4040
4141 it ( `${ spec } -background-color` , async function ( ) {
4242 await bottomNavigationBasePage . navigateToSample ( "background-color" ) ;
43+ await bottomNavigationBasePage . refreshTabItems ( ) ;
4344 await driver . imageHelper . compareScreen ( ) ;
4445
4546 await bottomNavigationBasePage . tabOnItem ( 1 ) ;
@@ -55,6 +56,7 @@ describe(`${suite}-${spec}-suite`, async function () {
5556 */
5657 it ( `${ spec } -binding-add-items` , async function ( ) {
5758 await bottomNavigationBasePage . navigateToSample ( "binding" ) ;
59+ await bottomNavigationBasePage . refreshTabItems ( ) ;
5860 await driver . imageHelper . compareScreen ( ) ;
5961
6062 const addTabBtn = await driver . waitForElement ( "add-tab" ) ;
@@ -83,6 +85,7 @@ describe(`${suite}-${spec}-suite`, async function () {
8385 */
8486 it ( `${ spec } -binding-remove-items` , async function ( ) {
8587 await bottomNavigationBasePage . navigateToSample ( "binding" ) ;
88+ await bottomNavigationBasePage . refreshTabItems ( ) ;
8689 await driver . imageHelper . compareScreen ( ) ;
8790
8891 const removeTabBtn = await driver . waitForElement ( "remove-last-tab" ) ;
@@ -115,6 +118,7 @@ describe(`${suite}-${spec}-suite`, async function () {
115118
116119 it ( `${ spec } -bottom-navigation` , async function ( ) {
117120 await bottomNavigationBasePage . navigateToSample ( "bottom-navigation" ) ;
121+ await bottomNavigationBasePage . refreshTabItems ( ) ;
118122 await driver . imageHelper . compareScreen ( ) ;
119123
120124 const goToSecondBtn = await driver . waitForElement ( "goToSecond" ) ;
@@ -130,6 +134,7 @@ describe(`${suite}-${spec}-suite`, async function () {
130134
131135 it ( `${ spec } -color` , async function ( ) {
132136 await bottomNavigationBasePage . navigateToSample ( "color" ) ;
137+ await bottomNavigationBasePage . refreshTabItems ( ) ;
133138 await driver . imageHelper . compareScreen ( ) ;
134139
135140 await bottomNavigationBasePage . tabOnItem ( 1 ) ;
@@ -141,6 +146,7 @@ describe(`${suite}-${spec}-suite`, async function () {
141146
142147 it ( `${ spec } -fancy-fonts-select-tabs` , async function ( ) {
143148 await bottomNavigationBasePage . navigateToSample ( "fancy-fonts" ) ;
149+ await bottomNavigationBasePage . refreshTabItems ( ) ;
144150 await driver . imageHelper . compareScreen ( ) ;
145151
146152 for ( let index = 1 ; index < 4 ; index ++ ) {
@@ -154,6 +160,7 @@ describe(`${suite}-${spec}-suite`, async function () {
154160
155161 it ( `${ spec } -fancy-fonts-selected-index` , async function ( ) {
156162 await bottomNavigationBasePage . navigateToSample ( "fancy-fonts" ) ;
163+ await bottomNavigationBasePage . refreshTabItems ( ) ;
157164
158165 let selectSecondTabFromCodeBehind = await driver . waitForElement ( "selectSecondTab" ) ;
159166 logInfo ( `Click on "select second tab button"` ) ;
@@ -186,6 +193,7 @@ describe(`${suite}-${spec}-suite`, async function () {
186193
187194 it ( `${ spec } -fancy-fonts-change-orientation` , async function ( ) {
188195 await bottomNavigationBasePage . navigateToSample ( "fancy-fonts" ) ;
196+ await bottomNavigationBasePage . refreshTabItems ( ) ;
189197 await driver . setOrientation ( DeviceOrientation . LANDSCAPE ) ;
190198 await driver . imageHelper . compareScreen ( ) ;
191199
@@ -212,6 +220,7 @@ describe(`${suite}-${spec}-suite`, async function () {
212220
213221 it ( `${ spec } -font-icons` , async function ( ) {
214222 await bottomNavigationBasePage . navigateToSample ( "font-icons" ) ;
223+ await bottomNavigationBasePage . refreshTabItems ( ) ;
215224 await driver . imageHelper . compareScreen ( ) ;
216225
217226 await bottomNavigationBasePage . tabOnItem ( 1 ) ;
@@ -227,6 +236,7 @@ describe(`${suite}-${spec}-suite`, async function () {
227236
228237 it ( `${ spec } -icon-change` , async function ( ) {
229238 await bottomNavigationBasePage . navigateToSample ( "icon-change" ) ;
239+ await bottomNavigationBasePage . refreshTabItems ( ) ;
230240 await bottomNavigationBasePage . tabOnItem ( 1 ) ;
231241 await driver . imageHelper . compareScreen ( ) ;
232242
@@ -240,13 +250,15 @@ describe(`${suite}-${spec}-suite`, async function () {
240250
241251 it ( `${ spec } -icon-title-placment` , async function ( ) {
242252 await bottomNavigationBasePage . navigateToSample ( "icon-title-placement" ) ;
253+ await bottomNavigationBasePage . refreshTabItems ( ) ;
243254 await driver . imageHelper . compareScreen ( ) ;
244255 assert . isTrue ( driver . imageHelper . hasImageComparisonPassed ( ) ) ;
245256 await bottomNavigationBasePage . navigateBackToSuitMainPage ( ) ;
246257 } ) ;
247258
248259 it ( `${ spec } -5470-issue` , async function ( ) {
249260 await bottomNavigationBasePage . navigateToSample ( "issue-5470" ) ;
261+ await bottomNavigationBasePage . refreshTabItems ( ) ;
250262 await driver . imageHelper . compareScreen ( ) ;
251263
252264 await bottomNavigationBasePage . tabOnItem ( 1 ) ;
@@ -258,6 +270,7 @@ describe(`${suite}-${spec}-suite`, async function () {
258270
259271 it ( `${ spec } -text-transform` , async function ( ) {
260272 await bottomNavigationBasePage . navigateToSample ( "text-transform" ) ;
273+ await bottomNavigationBasePage . refreshTabItems ( ) ;
261274 await driver . imageHelper . compareScreen ( ) ;
262275
263276 await bottomNavigationBasePage . tabOnItem ( 1 ) ;
@@ -269,6 +282,7 @@ describe(`${suite}-${spec}-suite`, async function () {
269282
270283 it ( `${ spec } -fonts` , async function ( ) {
271284 await bottomNavigationBasePage . navigateToSample ( "text-transform" ) ;
285+ await bottomNavigationBasePage . refreshTabItems ( ) ;
272286 await driver . imageHelper . compareScreen ( ) ;
273287
274288 await bottomNavigationBasePage . tabOnItem ( 1 ) ;
@@ -277,4 +291,16 @@ describe(`${suite}-${spec}-suite`, async function () {
277291 assert . isTrue ( driver . imageHelper . hasImageComparisonPassed ( ) ) ;
278292 await bottomNavigationBasePage . navigateBackToSuitMainPage ( ) ;
279293 } ) ;
294+
295+ it ( `${ spec } -custom-tabstrip` , async function ( ) {
296+ await bottomNavigationBasePage . navigateToSample ( "custom-tabstrip" ) ;
297+ await driver . imageHelper . compareScreen ( ) ;
298+
299+ const secondTab = await driver . waitForElement ( "second-tab" ) ;
300+ await secondTab . tap ( ) ;
301+ await driver . imageHelper . compareScreen ( ) ;
302+
303+ assert . isTrue ( driver . imageHelper . hasImageComparisonPassed ( ) ) ;
304+ await bottomNavigationBasePage . navigateBackToSuitMainPage ( ) ;
305+ } ) ;
280306} ) ;
0 commit comments