mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
delete files from viewer test
add right testrail to userinfo test group some CS e2e in folders
This commit is contained in:
@@ -77,7 +77,7 @@ describe('Pagination - returns to previous page when current is empty', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Pagination - returns to previous page when current is empty', () => {
|
it('[C274710] returns to previous page when current is empty', () => {
|
||||||
contentServicesPage.navigateToFolder(folderModel.name);
|
contentServicesPage.navigateToFolder(folderModel.name);
|
||||||
contentServicesPage.checkAcsContainer();
|
contentServicesPage.checkAcsContainer();
|
||||||
contentServicesPage.waitForTableBody();
|
contentServicesPage.waitForTableBody();
|
||||||
|
@@ -73,7 +73,7 @@ describe('User Info component', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('1. Enable Process Services and Content Services ', () => {
|
it('[C260111] Enable Process Services and Content Services ', () => {
|
||||||
loginPage.goToLoginPage();
|
loginPage.goToLoginPage();
|
||||||
adfSettingsPage.setProviderEcmBpm();
|
adfSettingsPage.setProviderEcmBpm();
|
||||||
loginPage.login(contentUserModel.id, contentUserModel.password);
|
loginPage.login(contentUserModel.id, contentUserModel.password);
|
||||||
@@ -104,7 +104,7 @@ describe('User Info component', () => {
|
|||||||
userInfoDialog.closeUserProfile();
|
userInfoDialog.closeUserProfile();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('2. Enable Content Services and disable Process Services ', () => {
|
it('[C260113] Enable Content Services and disable Process Services ', () => {
|
||||||
loginPage.goToLoginPage();
|
loginPage.goToLoginPage();
|
||||||
adfSettingsPage.setProviderEcm();
|
adfSettingsPage.setProviderEcm();
|
||||||
loginPage.login(contentUserModel.id, contentUserModel.password);
|
loginPage.login(contentUserModel.id, contentUserModel.password);
|
||||||
@@ -121,7 +121,7 @@ describe('User Info component', () => {
|
|||||||
userInfoDialog.closeUserProfile();
|
userInfoDialog.closeUserProfile();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('3. Enable Process Services and disable Content Services ', () => {
|
it('[C260115] Enable Process Services and disable Content Services ', () => {
|
||||||
loginPage.goToLoginPage();
|
loginPage.goToLoginPage();
|
||||||
adfSettingsPage.setProviderBpm();
|
adfSettingsPage.setProviderBpm();
|
||||||
loginPage.login(processUserModel.email, processUserModel.password);
|
loginPage.login(processUserModel.email, processUserModel.password);
|
||||||
@@ -140,7 +140,7 @@ describe('User Info component', () => {
|
|||||||
userInfoDialog.closeUserProfile();
|
userInfoDialog.closeUserProfile();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('4. Enable Process Services and Content Services ', async(done) => {
|
it('[C260117] Enable Process Services and Content Services ', async(done) => {
|
||||||
browser.controlFlow().execute(async() => {
|
browser.controlFlow().execute(async() => {
|
||||||
await PeopleAPI.updateAvatarViaAPI(contentUserModel, acsAvatarFileModel, '-me-');
|
await PeopleAPI.updateAvatarViaAPI(contentUserModel, acsAvatarFileModel, '-me-');
|
||||||
await PeopleAPI.getAvatarViaAPI(4, contentUserModel, '-me-', function (result) {});
|
await PeopleAPI.getAvatarViaAPI(4, contentUserModel, '-me-', function (result) {});
|
||||||
@@ -156,7 +156,7 @@ describe('User Info component', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('5. The profile picture is changed from APS', async () => {
|
it('[C260118] The profile picture is changed from APS', async () => {
|
||||||
let users = new UsersActions();
|
let users = new UsersActions();
|
||||||
await this.alfrescoJsApi.login(contentUserModel.email, contentUserModel.password);
|
await this.alfrescoJsApi.login(contentUserModel.email, contentUserModel.password);
|
||||||
await users.changeProfilePictureAps(this.alfrescoJsApi, apsAvatarFileModel.getLocation());
|
await users.changeProfilePictureAps(this.alfrescoJsApi, apsAvatarFileModel.getLocation());
|
||||||
@@ -171,7 +171,7 @@ describe('User Info component', () => {
|
|||||||
userInfoDialog.closeUserProfile();
|
userInfoDialog.closeUserProfile();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('6. Delete the profile picture from ACS', () => {
|
it('[C260120] Delete the profile picture from ACS', () => {
|
||||||
PeopleAPI.deleteAvatarViaAPI(contentUserModel, '-me-');
|
PeopleAPI.deleteAvatarViaAPI(contentUserModel, '-me-');
|
||||||
loginPage.goToLoginPage();
|
loginPage.goToLoginPage();
|
||||||
adfSettingsPage.setProviderEcm();
|
adfSettingsPage.setProviderEcm();
|
||||||
|
@@ -118,23 +118,19 @@ describe('Content Services Viewer', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
/*afterAll((done) => {
|
afterAll(async (done) => {
|
||||||
NodesAPI.deleteContent(acsUser, pdfFile.getId(), () => {
|
let uploadActions = new UploadActions();
|
||||||
|
|
||||||
|
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, pdfFile.getId())
|
||||||
|
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, protectedFile.getId())
|
||||||
|
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, docxFile.getId())
|
||||||
|
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, jpgFile.getId())
|
||||||
|
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, mp4File.getId())
|
||||||
|
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, pptFile.getId())
|
||||||
|
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, unsupportedFile.getId())
|
||||||
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
NodesAPI.deleteContent(acsUser, jpgFile.getId(), () => {
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
NodesAPI.deleteContent(acsUser, mp4File.getId(), () => {
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
NodesAPI.deleteContent(acsUser, pagesFile.getId(), () => {
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
NodesAPI.deleteContent(acsUser, pptFile.getId(), () => {
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});*/
|
|
||||||
|
|
||||||
it('[C260038] Should display first page, toolbar and pagination when opening a .pdf file', () => {
|
it('[C260038] Should display first page, toolbar and pagination when opening a .pdf file', () => {
|
||||||
contentServicesPage.checkAcsContainer();
|
contentServicesPage.checkAcsContainer();
|
||||||
@@ -276,6 +272,8 @@ describe('Content Services Viewer', () => {
|
|||||||
it('[C260054] Should display "Preview couldn\'t be loaded" and viewer toolbar when opening an unsupported file', () => {
|
it('[C260054] Should display "Preview couldn\'t be loaded" and viewer toolbar when opening an unsupported file', () => {
|
||||||
viewerPage.viewFile(unsupportedFile.name);
|
viewerPage.viewFile(unsupportedFile.name);
|
||||||
|
|
||||||
|
browser.driver.sleep(3000); // wait open file
|
||||||
|
|
||||||
viewerPage.checkCloseButtonIsDisplayed();
|
viewerPage.checkCloseButtonIsDisplayed();
|
||||||
viewerPage.checkFileNameIsDisplayed(unsupportedFile.name);
|
viewerPage.checkFileNameIsDisplayed(unsupportedFile.name);
|
||||||
viewerPage.checkFileThumbnailIsDisplayed();
|
viewerPage.checkFileThumbnailIsDisplayed();
|
||||||
@@ -348,6 +346,8 @@ describe('Content Services Viewer', () => {
|
|||||||
it('[C269109] Should not be able to open thumbnail pane before the pdf is loaded', () => {
|
it('[C269109] Should not be able to open thumbnail pane before the pdf is loaded', () => {
|
||||||
viewerPage.viewFile(pdfFile.name);
|
viewerPage.viewFile(pdfFile.name);
|
||||||
|
|
||||||
|
browser.driver.sleep(3000); // wait open file
|
||||||
|
|
||||||
viewerPage.checkThumbnailsBtnIsDisabled();
|
viewerPage.checkThumbnailsBtnIsDisabled();
|
||||||
|
|
||||||
viewerPage.clickCloseButton();
|
viewerPage.clickCloseButton();
|
||||||
|
Reference in New Issue
Block a user