Skip to content

Commit

Permalink
[ACS-6107] Removed search-date-range E2E
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnil-verma-gl committed Oct 25, 2023
1 parent edff661 commit b62acab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 102 deletions.
84 changes: 0 additions & 84 deletions e2e/search/components/search-date-range.e2e.ts

This file was deleted.

27 changes: 9 additions & 18 deletions e2e/search/pages/search-filters.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@
* limitations under the License.
*/

import { BrowserVisibility, DateRangeFilterPage, NumberRangeFilterPage, SearchCategoriesPage, SearchCheckListPage, SearchRadioPage, SearchSliderPage, SearchTextPage } from '@alfresco/adf-testing';
import {
BrowserVisibility,
NumberRangeFilterPage,
SearchCategoriesPage,
SearchCheckListPage,
SearchRadioPage,
SearchSliderPage,
SearchTextPage
} from '@alfresco/adf-testing';
import { $, by } from 'protractor';

export class SearchFiltersPage {
Expand All @@ -28,7 +36,6 @@ export class SearchFiltersPage {
fileSizeFilter = $('mat-expansion-panel[data-automation-id="expansion-panel-SEARCH.FACET_FIELDS.SIZE"]');
nameFilter = $('mat-expansion-panel[data-automation-id="expansion-panel-Name"]');
checkListFilter = $('mat-expansion-panel[data-automation-id="expansion-panel-Check List"]');
createdDateRangeFilter = $('mat-expansion-panel[data-automation-id="expansion-panel-Created Date (range)"]');
typeFilter = $('mat-expansion-panel[data-automation-id="expansion-panel-Type"]');
sizeRangeFilter = $('mat-expansion-panel[data-automation-id="expansion-panel-Content Size (range)"]');
sizeSliderFilter = $('mat-expansion-panel[data-automation-id="expansion-panel-Content Size"]');
Expand All @@ -47,10 +54,6 @@ export class SearchFiltersPage {
return SearchCategoriesPage.numberRangeFilter(this.sizeRangeFilter);
}

createdDateRangeFilterPage(): DateRangeFilterPage {
return SearchCategoriesPage.dateRangeFilter(this.createdDateRangeFilter);
}

textFiltersPage(): SearchTextPage {
return SearchCategoriesPage.textFiltersPage(this.nameFilter);
}
Expand Down Expand Up @@ -147,18 +150,6 @@ export class SearchFiltersPage {
await this.searchCategoriesPage.checkFilterIsExpanded(this.checkListFilter);
}

async checkCreatedRangeFilterIsDisplayed(): Promise<void> {
await this.searchCategoriesPage.checkFilterIsDisplayed(this.createdDateRangeFilter);
}

async clickCreatedRangeFilterHeader(): Promise<void> {
await this.searchCategoriesPage.clickFilterHeader(this.createdDateRangeFilter);
}

async checkCreatedRangeFilterIsExpanded(): Promise<void> {
await this.searchCategoriesPage.checkFilterIsExpanded(this.createdDateRangeFilter);
}

async checkTypeFilterIsDisplayed(): Promise<void> {
await this.searchCategoriesPage.checkFilterIsDisplayed(this.typeFilter);
}
Expand Down

0 comments on commit b62acab

Please sign in to comment.