@alfresco/aca-playwright-shared 8.0.0-28655274125 → 8.0.0-28780458044

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3200,6 +3200,8 @@ class SearchInputComponent extends BaseComponent {
3200
3200
  this.searchButton = this.page.locator('.aca-search-input--search-button');
3201
3201
  this.searchCloseButton = this.page.locator('.aca-search-input--close-button');
3202
3202
  this.searchInButton = this.getChild('aca-search-in-menu button');
3203
+ this.formulaSearchButton = this.getChild('[value="formula"]');
3204
+ this.regularSearchButton = this.getChild('[value="regular"]');
3203
3205
  /**
3204
3206
  * Method used in cases where user have possibility to navigate "inside" the element (it's clickable and has link attribute).
3205
3207
  * Perform action .click() to navigate inside it
@@ -4088,11 +4090,18 @@ class SearchPage extends BasePage {
4088
4090
  this.folderInformationDialog = new FolderInformationDialogComponent(this.page);
4089
4091
  this.searchMenuCard = new SearchMenuCard(this.page);
4090
4092
  }
4091
- async searchWithin(searchText, searchType) {
4093
+ async searchWithin(searchText, searchType, searchMode) {
4092
4094
  if (!(await this.searchInputComponent.searchInput.isVisible())) {
4093
4095
  await this.acaHeader.searchButton.click();
4094
4096
  }
4095
4097
  await this.searchInputComponent.searchFor(searchText);
4098
+ await this.dataTable.spinnerWaitForReload();
4099
+ if (searchMode === 'formula') {
4100
+ await this.searchInputComponent.formulaSearchButton.click();
4101
+ }
4102
+ else {
4103
+ await this.searchInputComponent.regularSearchButton.click();
4104
+ }
4096
4105
  await this.searchInputComponent.searchInButton.click();
4097
4106
  switch (searchType) {
4098
4107
  case 'files':