mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
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:
@@ -28,6 +28,7 @@ import { FileModel } from '../models/ACS/fileModel';
|
||||
import { Util } from '../util/util';
|
||||
import resources = require('../util/resources');
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
describe('Search component - Search Page', () => {
|
||||
const search = {
|
||||
@@ -47,6 +48,7 @@ describe('Search component - Search Page', () => {
|
||||
const contentServicesPage = new ContentServicesPage();
|
||||
const searchDialog = new SearchDialog();
|
||||
const searchResultPage = new SearchResultsPage();
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
|
||||
const acsUser = new AcsUserModel();
|
||||
const emptyFolderModel = new FolderModel({ 'name': 'search' + StringUtil.generateRandomString() });
|
||||
@@ -57,7 +59,7 @@ describe('Search component - Search Page', () => {
|
||||
const adminNrOfFiles = 5;
|
||||
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);
|
||||
|
||||
@@ -96,6 +98,10 @@ describe('Search component - Search Page', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
});
|
||||
|
||||
it('[C260264] Should display message when no results are found', () => {
|
||||
const notExistentFileName = StringUtil.generateRandomString();
|
||||
searchDialog.checkSearchBarIsNotVisible().checkSearchIconIsVisible().clickOnSearchIcon()
|
||||
|
||||
Reference in New Issue
Block a user