File tree 2 files changed +16
-0
lines changed
interfaces/BO/shopParameters/search
versions/develop/pages/BO/shopParameters/search
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export interface BOSearchPageInterface extends BOBasePagePageInterface {
14
14
deleteAlias ( page : Page , row : number ) : Promise < string > ;
15
15
clickAddMissingProductsToIndex ( page : Page ) : Promise < string > ;
16
16
clickRebuildEntireIndex ( page : Page ) : Promise < string > ;
17
+ clickRebuildEntireIndexCronJobLink ( page : Page ) : Promise < void > ;
17
18
filterTable ( page : Page , filterType : string , filterBy : string , value : string ) : Promise < void > ;
18
19
getAllRowsColumnContent ( page : Page , columnName : string ) : Promise < string [ ] > ;
19
20
getBlacklistedWords ( page : Page , idLang : number ) : Promise < string > ;
Original file line number Diff line number Diff line change @@ -114,6 +114,8 @@ class SearchPage extends BOBasePage implements BOSearchPageInterface {
114
114
115
115
private readonly rebuildEntireIndexLink : string ;
116
116
117
+ private readonly rebuildEntireIndexCronJobLink : string ;
118
+
117
119
private readonly aliasForm : string ;
118
120
119
121
private readonly searchWithinWordInput : ( status : string ) => string ;
@@ -222,6 +224,8 @@ class SearchPage extends BOBasePage implements BOSearchPageInterface {
222
224
+ '[href*="controller=AdminSearch&action=searchCron&ajax=1&token"]' ;
223
225
this . rebuildEntireIndexLink = `${ this . indexingForm } a.btn-link`
224
226
+ '[href*="controller=AdminSearch&action=searchCron&ajax=1&full=1&token"]' ;
227
+ this . rebuildEntireIndexCronJobLink = `${ this . indexingForm } a:not(.btn-link)`
228
+ + '[href*="controller=AdminSearch&action=searchCron&ajax=1&full=1&token"]' ;
225
229
226
230
// Search form
227
231
this . aliasForm = '#alias_fieldset_search' ;
@@ -615,6 +619,17 @@ class SearchPage extends BOBasePage implements BOSearchPageInterface {
615
619
return this . getAlertSuccessBlockContent ( page ) ;
616
620
}
617
621
622
+ /**
623
+ * Click on the cron jon link for "Re-build the entire index"
624
+ * @param page {Page} Browser tab
625
+ * @returns {Promise<void> }
626
+ */
627
+ async clickRebuildEntireIndexCronJobLink ( page : Page ) : Promise < void > {
628
+ await page . locator ( this . rebuildEntireIndexCronJobLink ) . click ( {
629
+ button : 'middle' ,
630
+ } ) ;
631
+ }
632
+
618
633
// Methods for search form
619
634
/**
620
635
* Returns if Search exact end match is checked
You can’t perform that action at this time.
0 commit comments