@@ -112,6 +112,8 @@ class SearchPage extends BOBasePage implements BOSearchPageInterface {
112
112
113
113
private readonly addMissingProductsLink : string ;
114
114
115
+ private readonly rebuildEntireIndexLink : string ;
116
+
115
117
private readonly aliasForm : string ;
116
118
117
119
private readonly searchWithinWordInput : ( status : string ) => string ;
@@ -218,6 +220,8 @@ class SearchPage extends BOBasePage implements BOSearchPageInterface {
218
220
this . indexedProducts = `${ this . indexingForm } div p strong` ;
219
221
this . addMissingProductsLink = `${ this . indexingForm } a.btn-link`
220
222
+ '[href*="controller=AdminSearch&action=searchCron&ajax=1&token"]' ;
223
+ this . rebuildEntireIndexLink = `${ this . indexingForm } a.btn-link`
224
+ + '[href*="controller=AdminSearch&action=searchCron&ajax=1&full=1&token"]' ;
221
225
222
226
// Search form
223
227
this . aliasForm = '#alias_fieldset_search' ;
@@ -600,6 +604,17 @@ class SearchPage extends BOBasePage implements BOSearchPageInterface {
600
604
return this . getAlertSuccessBlockContent ( page ) ;
601
605
}
602
606
607
+ /**
608
+ * Click "Re-build the entire index"
609
+ * @param page {Page} Browser tab
610
+ * @returns {Promise<string> }
611
+ */
612
+ async clickRebuildEntireIndex ( page : Page ) : Promise < string > {
613
+ await page . locator ( this . rebuildEntireIndexLink ) . click ( ) ;
614
+
615
+ return this . getAlertSuccessBlockContent ( page ) ;
616
+ }
617
+
603
618
// Methods for search form
604
619
/**
605
620
* Returns if Search exact end match is checked
0 commit comments