Fix e2e test (#4981)

* fix core viewer

* increase rendition retry

* sso refresh before test

* general fix test

* try use last proxy

* avoid use proxy

* remove proxy

* fix setting tests

* fix share and sso test

* fix lint exclude

* fix sso

* fix some process services cloud e2e

* fix sso download

* exclude sso test

* fix cloud

* add logout content service test

* add logout core

* add logout search

* redefine global before all

* separate protracotr method

* try

* try multiple attempt before all

* add prefix group and users

* add prefix group and users

* add prefix group and users

* rexecute sso test

* fix process service visibility e2e

* split SSO login test

* fix SSO download

* fix SSO download

* fix some cloud issues

* fix some cloud issues

* fix some cloud issues

* share file fix cs

* fix cloud test
This commit is contained in:
Eugenio Romano
2019-08-08 17:52:45 +02:00
committed by GitHub
parent b7b251fe72
commit f04c135377
181 changed files with 1136 additions and 668 deletions
@@ -36,7 +36,7 @@ describe('Search Checklist Component', () => {
const acsUser = new AcsUserModel();
this.alfrescoJsApi = new AlfrescoApi({
provider: 'ECM',
hostEcm: browser.params.testConfig.adf.url
hostEcm: browser.params.testConfig.adf_acs.host
});
const uploadActions = new UploadActions(this.alfrescoJsApi);
@@ -79,6 +79,8 @@ describe('Search Checklist Component', () => {
await uploadActions.deleteFileOrFolder(createdFile.entry.id);
await uploadActions.deleteFileOrFolder(createdFolder.entry.id);
await navigationBarPage.clickLogoutButton();
done();
});
@@ -34,14 +34,14 @@ describe('Search Date Range Filter', () => {
const dateRangeFilter = searchFilters.createdDateRangeFilterPage();
const searchResults = new SearchResultsPage();
const datePicker = new DatePickerPage();
const navigationBar = new NavigationBarPage();
const navigationBarPage = new NavigationBarPage();
const dataTable = new DataTableComponentPage();
beforeAll(async (done) => {
this.alfrescoJsApi = new AlfrescoApi({
provider: 'ECM',
hostEcm: browser.params.testConfig.adf.url
hostEcm: browser.params.testConfig.adf_acs.host
});
loginPage.loginToContentServices(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
@@ -191,7 +191,7 @@ describe('Search Date Range Filter', () => {
});
it('[C277117] Should be able to change date format', async () => {
navigationBar.clickContentServicesButton();
navigationBarPage.clickContentServicesButton();
jsonFile.categories[4].component.settings.dateFormat = 'MM-DD-YY';
@@ -34,7 +34,7 @@ describe('Search Number Range Filter', () => {
const searchFilters = new SearchFiltersPage();
const sizeRangeFilter = searchFilters.sizeRangeFilterPage();
const searchResults = new SearchResultsPage();
const navigationBar = new NavigationBarPage();
const navigationBarPage = new NavigationBarPage();
const dataTable = new DataTableComponentPage();
const acsUser = new AcsUserModel();
@@ -52,7 +52,7 @@ describe('Search Number Range Filter', () => {
let file2Bytes, file0Bytes;
this.alfrescoJsApi = new AlfrescoApi({
provider: 'ECM',
hostEcm: browser.params.testConfig.adf.url
hostEcm: browser.params.testConfig.adf_acs.host
});
const uploadActions = new UploadActions(this.alfrescoJsApi);
@@ -81,6 +81,9 @@ describe('Search Number Range Filter', () => {
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
await uploadActions.deleteFileOrFolder(file2Bytes.entry.id);
await uploadActions.deleteFileOrFolder(file0Bytes.entry.id);
await navigationBarPage.clickLogoutButton();
done();
});
@@ -389,7 +392,7 @@ describe('Search Number Range Filter', () => {
});
it('[C276928] Should be able to change the field property for number range', async () => {
navigationBar.clickContentServicesButton();
navigationBarPage.clickContentServicesButton();
jsonFile.categories[3].component.settings.field = 'cm:created';
@@ -431,7 +434,7 @@ describe('Search Number Range Filter', () => {
});
it('[C277139] Should be able to set To field to be exclusive', async () => {
navigationBar.clickContentServicesButton();
navigationBarPage.clickContentServicesButton();
jsonFile.categories[3].component.settings.format = '[{FROM} TO {TO}>';
@@ -467,7 +470,7 @@ describe('Search Number Range Filter', () => {
});
it('[C277140] Should be able to set From field to be exclusive', async () => {
navigationBar.clickContentServicesButton();
navigationBarPage.clickContentServicesButton();
jsonFile.categories[3].component.settings.format = '<{FROM} TO {TO}]';
+3 -1
View File
@@ -36,7 +36,7 @@ describe('Search Radio Component', () => {
const acsUser = new AcsUserModel();
this.alfrescoJsApi = new AlfrescoApi({
provider: 'ECM',
hostEcm: browser.params.testConfig.adf.url
hostEcm: browser.params.testConfig.adf_acs.host
});
const uploadActions = new UploadActions(this.alfrescoJsApi);
@@ -86,6 +86,8 @@ describe('Search Radio Component', () => {
await uploadActions.deleteFileOrFolder(createdFile.entry.id);
await uploadActions.deleteFileOrFolder(createdFolder.entry.id);
await navigationBarPage.clickLogoutButton();
done();
});
+9 -6
View File
@@ -34,7 +34,7 @@ describe('Search Number Range Filter', () => {
const searchFilters = new SearchFiltersPage();
const sizeSliderFilter = searchFilters.sizeSliderFilterPage();
const searchResults = new SearchResultsPage();
const navigationBar = new NavigationBarPage();
const navigationBarPage = new NavigationBarPage();
const dataTable = new DataTableComponentPage();
const acsUser = new AcsUserModel();
@@ -47,7 +47,7 @@ describe('Search Number Range Filter', () => {
let file2Bytes;
this.alfrescoJsApi = new AlfrescoApi({
provider: 'ECM',
hostEcm: browser.params.testConfig.adf.url
hostEcm: browser.params.testConfig.adf_acs.host
});
const uploadActions = new UploadActions(this.alfrescoJsApi);
@@ -77,6 +77,9 @@ describe('Search Number Range Filter', () => {
await uploadActions.deleteFileOrFolder(file2Bytes.entry.id);
} catch (error) {
}
await navigationBarPage.clickLogoutButton();
done();
});
@@ -159,7 +162,7 @@ describe('Search Number Range Filter', () => {
});
it('[C276983] Should be able to disable thumb label in Search Size Slider', async () => {
navigationBar.clickContentServicesButton();
navigationBarPage.clickContentServicesButton();
jsonFile.categories[2].component.settings.thumbLabel = false;
@@ -177,7 +180,7 @@ describe('Search Number Range Filter', () => {
});
it('[C276985] Should be able to set min value for Search Size Slider', async () => {
navigationBar.clickContentServicesButton();
navigationBarPage.clickContentServicesButton();
const minSize = 3;
jsonFile.categories[2].component.settings.min = minSize;
@@ -198,7 +201,7 @@ describe('Search Number Range Filter', () => {
});
it('[C276986] Should be able to set max value for Search Size Slider', async () => {
navigationBar.clickContentServicesButton();
navigationBarPage.clickContentServicesButton();
const maxSize = 50;
jsonFile.categories[2].component.settings.max = maxSize;
@@ -219,7 +222,7 @@ describe('Search Number Range Filter', () => {
});
it('[C276987] Should be able to set steps for Search Size Slider', async () => {
navigationBar.clickContentServicesButton();
navigationBarPage.clickContentServicesButton();
const step = 10;
jsonFile.categories[2].component.settings.step = step;
@@ -34,7 +34,7 @@ describe('Search Sorting Picker', () => {
const searchDialog = new SearchDialog();
const searchFilters = new SearchFiltersPage();
const searchResults = new SearchResultsPage();
const navigationBar = new NavigationBarPage();
const navigationBarPage = new NavigationBarPage();
const searchSortingPicker = new SearchSortingPickerPage();
const contentServices = new ContentServicesPage();
const nodeActions = new NodeActions();
@@ -53,7 +53,7 @@ describe('Search Sorting Picker', () => {
let pngA, pngD;
this.alfrescoJsApi = new AlfrescoApi({
provider: 'ECM',
hostEcm: browser.params.testConfig.adf.url
hostEcm: browser.params.testConfig.adf_acs.host
});
const uploadActions = new UploadActions(this.alfrescoJsApi);
const search = '_png_file.png';
@@ -78,6 +78,9 @@ describe('Search Sorting Picker', () => {
afterAll(async (done) => {
await uploadActions.deleteFileOrFolder(pngA.entry.id);
await uploadActions.deleteFileOrFolder(pngD.entry.id);
await navigationBarPage.clickLogoutButton();
done();
});
@@ -102,7 +105,7 @@ describe('Search Sorting Picker', () => {
});
it('[C277271] Should be able to add a custom search sorter in the "sort by" option', async () => {
navigationBar.clickContentServicesButton();
navigationBarPage.clickContentServicesButton();
jsonFile = SearchConfiguration.getConfiguration();
jsonFile.sorting.options.push({
'key': 'Modifier',
@@ -124,7 +127,7 @@ describe('Search Sorting Picker', () => {
});
it('[C277272] Should be able to exclude a standard search sorter from the sorting option', async () => {
navigationBar.clickContentServicesButton();
navigationBarPage.clickContentServicesButton();
jsonFile = SearchConfiguration.getConfiguration();
const removedOption = jsonFile.sorting.options.splice(0, 1);
await LocalStorageUtil.setConfigField('search', JSON.stringify(jsonFile));
@@ -140,7 +143,7 @@ describe('Search Sorting Picker', () => {
});
it('[C277273] Should be able to set a default order for a search sorting option', async () => {
navigationBar.clickContentServicesButton();
navigationBarPage.clickContentServicesButton();
jsonFile = SearchConfiguration.getConfiguration();
jsonFile.sorting.options[0].ascending = false;
@@ -197,7 +200,7 @@ describe('Search Sorting Picker', () => {
});
it('[C277288] Should be able to sort the search results by "Modified Date" ASC', async () => {
navigationBar.clickContentServicesButton();
navigationBarPage.clickContentServicesButton();
jsonFile = SearchConfiguration.getConfiguration();
jsonFile.sorting.options.push({
+5 -1
View File
@@ -46,7 +46,7 @@ describe('Search component - Text widget', () => {
this.alfrescoJsApi = new AlfrescoApi({
provider: 'ECM',
hostEcm: browser.params.testConfig.adf.url
hostEcm: browser.params.testConfig.adf_acs.host
});
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
@@ -71,6 +71,10 @@ describe('Search component - Text widget', () => {
done();
});
afterAll(async () => {
await navigationBarPage.clickLogoutButton();
});
it('[C289329] Placeholder should be displayed in the widget when the input string is empty', () => {
BrowserActions.getUrl(browser.params.testConfig.adf.url + '/search;q=*');
searchResultPage.tableIsLoaded();