File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
interfaces/BO/shopParameters/search
versions/develop/pages/BO/shopParameters/search Expand file tree Collapse file tree 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 {
1414 deleteAlias ( page : Page , row : number ) : Promise < string > ;
1515 clickAddMissingProductsToIndex ( page : Page ) : Promise < string > ;
1616 clickRebuildEntireIndex ( page : Page ) : Promise < string > ;
17+ clickRebuildEntireIndexCronJobLink ( page : Page ) : Promise < void > ;
1718 filterTable ( page : Page , filterType : string , filterBy : string , value : string ) : Promise < void > ;
1819 getAllRowsColumnContent ( page : Page , columnName : string ) : Promise < string [ ] > ;
1920 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 {
114114
115115 private readonly rebuildEntireIndexLink : string ;
116116
117+ private readonly rebuildEntireIndexCronJobLink : string ;
118+
117119 private readonly aliasForm : string ;
118120
119121 private readonly searchWithinWordInput : ( status : string ) => string ;
@@ -222,6 +224,8 @@ class SearchPage extends BOBasePage implements BOSearchPageInterface {
222224 + '[href*="controller=AdminSearch&action=searchCron&ajax=1&token"]' ;
223225 this . rebuildEntireIndexLink = `${ this . indexingForm } a.btn-link`
224226 + '[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"]' ;
225229
226230 // Search form
227231 this . aliasForm = '#alias_fieldset_search' ;
@@ -615,6 +619,17 @@ class SearchPage extends BOBasePage implements BOSearchPageInterface {
615619 return this . getAlertSuccessBlockContent ( page ) ;
616620 }
617621
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+
618633 // Methods for search form
619634 /**
620635 * Returns if Search exact end match is checked
You can’t perform that action at this time.
0 commit comments