mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +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:
@@ -62,7 +62,7 @@ describe('Version component actions', () => {
|
||||
beforeAll(async (done) => {
|
||||
this.alfrescoJsApi = new AlfrescoApi({
|
||||
provider: 'ECM',
|
||||
hostEcm: browser.params.testConfig.adf.url
|
||||
hostEcm: browser.params.testConfig.adf_acs.host
|
||||
});
|
||||
uploadActions = new UploadActions(this.alfrescoJsApi);
|
||||
|
||||
@@ -87,6 +87,10 @@ describe('Version component actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
});
|
||||
|
||||
it('[C280003] Should not be possible delete a file version if there is only one version', () => {
|
||||
versionManagePage.clickActionButton('1.0');
|
||||
expect(element(by.css(`[id="adf-version-list-action-delete-1.0"]`)).isEnabled()).toBe(false);
|
||||
|
@@ -64,7 +64,7 @@ describe('Version component permissions', () => {
|
||||
|
||||
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 nodeActions = new NodeActions();
|
||||
@@ -142,6 +142,8 @@ describe('Version component permissions', () => {
|
||||
});
|
||||
|
||||
afterAll(async (done) => {
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
|
||||
await this.alfrescoJsApi.nodes.deleteNode(sameCreatorFile.id);
|
||||
done();
|
||||
});
|
||||
@@ -184,6 +186,10 @@ describe('Version component permissions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
});
|
||||
|
||||
it('[C277197] Should a user with Consumer permission not be able to upload a new version for a file with different creator', () => {
|
||||
contentServices.versionManagerContent(differentCreatorFile.name);
|
||||
|
||||
@@ -218,6 +224,8 @@ describe('Version component permissions', () => {
|
||||
});
|
||||
|
||||
afterAll(async (done) => {
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
|
||||
await this.alfrescoJsApi.nodes.deleteNode(sameCreatorFile.id);
|
||||
done();
|
||||
});
|
||||
@@ -276,6 +284,7 @@ describe('Version component permissions', () => {
|
||||
});
|
||||
|
||||
afterAll(async (done) => {
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
await this.alfrescoJsApi.nodes.deleteNode(sameCreatorFile.id);
|
||||
done();
|
||||
});
|
||||
|
@@ -45,7 +45,7 @@ describe('Version Properties', () => {
|
||||
});
|
||||
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);
|
||||
|
||||
@@ -72,6 +72,11 @@ describe('Version Properties', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
afterAll(async (done) => {
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
done();
|
||||
});
|
||||
|
||||
it('[C272817] Should NOT be present the download action when allowDownload property is false', () => {
|
||||
versionManagePage.disableDownload();
|
||||
|
||||
|
@@ -62,7 +62,7 @@ describe('Version component', () => {
|
||||
});
|
||||
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);
|
||||
@@ -88,6 +88,11 @@ describe('Version component', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
afterAll(async (done) => {
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
done();
|
||||
});
|
||||
|
||||
it('[C272768] Should be visible the first file version when you upload a file', () => {
|
||||
versionManagePage.checkUploadNewVersionsButtonIsDisplayed();
|
||||
|
||||
|
Reference in New Issue
Block a user