Unify hash url strategy (#5866)

* unify hash url startegy

* improve
This commit is contained in:
Eugenio Romano
2020-07-14 16:00:32 +01:00
committed by GitHub
parent 8ac683d164
commit d1672596ba
182 changed files with 476 additions and 520 deletions

View File

@@ -25,7 +25,7 @@ import {
BrowserActions,
DocumentListPage,
LocalStorageUtil,
LoginSSOPage,
LoginPage,
PaginationPage,
StringUtil,
UploadActions,
@@ -37,7 +37,7 @@ import { SearchConfiguration } from './search.config';
describe('Search Filters', () => {
const loginPage = new LoginSSOPage();
const loginPage = new LoginPage();
const searchDialog = new SearchDialogPage();
const searchFiltersPage = new SearchFiltersPage();
const paginationPage = new PaginationPage();
@@ -134,7 +134,7 @@ describe('Search Filters', () => {
});
it('[C277146] Should Show more/less buttons be hidden when inactive', async () => {
await BrowserActions.getUrl(`${browser.params.testConfig.adf.url}/search;q=*`);
await BrowserActions.getUrl(`${browser.baseUrl}/search;q=*`);
const searchCheckListPage = searchFiltersPage.creatorCheckListFiltersPage();
@@ -146,7 +146,7 @@ describe('Search Filters', () => {
});
it('[C286556] Search categories should preserve their collapsed/expanded state after the search', async () => {
await BrowserActions.getUrl(`${browser.params.testConfig.adf.url}/search;q=*`);
await BrowserActions.getUrl(`${browser.baseUrl}/search;q=*`);
await searchFiltersPage.clickFileTypeListFilter();
await searchFiltersPage.checkFileTypeFilterIsCollapsed();
@@ -160,7 +160,7 @@ describe('Search Filters', () => {
});
it('[C287796] Should be able to display the correct bucket number after selecting a filter', async () => {
await BrowserActions.getUrl(`${browser.params.testConfig.adf.url}/search;q=*`);
await BrowserActions.getUrl(`${browser.baseUrl}/search;q=*`);
await searchFiltersPage.fileTypeCheckListFiltersPage().clickCheckListOption('PNG Image');
@@ -191,7 +191,7 @@ describe('Search Filters', () => {
});
it('[C291980] Should group search facets under specified labels', async () => {
await BrowserActions.getUrl(`${browser.params.testConfig.adf.url}/search;q=*`);
await BrowserActions.getUrl(`${browser.baseUrl}/search;q=*`);
await searchFiltersPage.checkDefaultFacetQueryGroupIsDisplayed();
await searchFiltersPage.checkTypeFacetQueryGroupIsDisplayed();
@@ -214,7 +214,7 @@ describe('Search Filters', () => {
});
it('[C297509] Should display search intervals under specified labels from config', async () => {
await BrowserActions.getUrl(`${browser.params.testConfig.adf.url}/search;q=*`);
await BrowserActions.getUrl(`${browser.baseUrl}/search;q=*`);
await searchFiltersPage.checkFacetIntervalsByCreatedIsDisplayed();
await searchFiltersPage.checkFacetIntervalsByCreatedIsExpanded();