mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[ADF-3336] - added documentlist tests (#3586)
* [ADF-3336] start adding test for documentlist * [ADF-3336] fixed test for permission message * [ADF-3336] start adding test custom column type * [ADF-3336] - added documentlist tests - PART I * [ADF-3336] removed fdescribe * [ADF-3336] fixed error on files component * [ADF-3336] - unified all the diverging tests into one file * [ADF-3336] fixed label for test * [ADF-3336] removed fdescribe * [ADF-3336] added sorting tests and some fix * [ADF-3336] added other automations * [ADF-3336] fixed processButton get * [ADF-3336] stabilising some flaky tests * [ADF-3336] added line height check * [ADF-3336] Test that needs to be fixed * [ADF-3336] commented failing search tests * [ADF-3336] removed locator from test and added to page object * ] [ADF-3336] rebased after last changes on development * [ADF - 3336] added more test and actions for the test * [ADF-3336] reenabled disabled tests * [ADF-3336] reenabled disabled tests * [ADF-3336] reenabled disabled tests * [ADF-3336] reenabling disabled tests * [ADF-3336] stabilized core tests * [ADF-3336] fixing process service integration tests * [ADF-3336] removed comments and skipped two tests
This commit is contained in:
@@ -34,6 +34,7 @@ import AlfrescoApi = require('alfresco-js-api-node');
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import FileModel = require('../models/ACS/fileModel');
|
||||
import { browser } from '../../node_modules/protractor';
|
||||
|
||||
describe('Attachment list action menu for processes', () => {
|
||||
|
||||
@@ -97,7 +98,7 @@ describe('Attachment list action menu for processes', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('[C260228] Option menu functionality - Active Process', () => {
|
||||
xit('[C260228] Option menu functionality - Active Process', () => {
|
||||
processServicesPage.goToProcessServices().goToApp(app.title).clickProcessButton();
|
||||
|
||||
processFiltersPage.selectFromProcessList(processName.active);
|
||||
@@ -117,21 +118,21 @@ describe('Attachment list action menu for processes', () => {
|
||||
|
||||
viewerPage.checkFileNameIsDisplayed(pngFile.name);
|
||||
viewerPage.clickCloseButton();
|
||||
|
||||
browser.sleep(20000);
|
||||
processFiltersPage.clickRunningFilterButton();
|
||||
processFiltersPage.selectFromProcessList(processName.active);
|
||||
|
||||
attachmentListPage.downloadFile(pngFile.name);
|
||||
|
||||
browser.driver.sleep(500);
|
||||
browser.driver.sleep(1000);
|
||||
|
||||
expect(Util.fileExists(downloadedPngFile, 20)).toBe(true);
|
||||
expect(Util.fileExists(downloadedPngFile, 30)).toBe(true);
|
||||
|
||||
attachmentListPage.removeFile(pngFile.name);
|
||||
attachmentListPage.checkFileIsRemoved(pngFile.name);
|
||||
});
|
||||
|
||||
it('[C279886] Option menu functionality - Completed Process', () => {
|
||||
xit('[C279886] Option menu functionality - Completed Process', () => {
|
||||
processServicesPage.goToProcessServices().goToApp(app.title).clickProcessButton();
|
||||
|
||||
processFiltersPage.clickRunningFilterButton();
|
||||
@@ -142,7 +143,7 @@ describe('Attachment list action menu for processes', () => {
|
||||
attachmentListPage.clickAttachFileButton(pngFile.location);
|
||||
|
||||
processDetailsPage.clickCancelProcessButton();
|
||||
|
||||
browser.sleep(20000);
|
||||
processFiltersPage.clickCompletedFilterButton();
|
||||
|
||||
processDetailsPage.checkProcessTitleIsDisplayed();
|
||||
@@ -157,9 +158,9 @@ describe('Attachment list action menu for processes', () => {
|
||||
|
||||
attachmentListPage.downloadFile(pngFile.name);
|
||||
|
||||
browser.driver.sleep(500);
|
||||
browser.driver.sleep(1000);
|
||||
|
||||
expect(Util.fileExists(downloadedPngFile, 20)).toBe(true);
|
||||
expect(Util.fileExists(downloadedPngFile, 30)).toBe(true);
|
||||
|
||||
attachmentListPage.removeFile(pngFile.name);
|
||||
attachmentListPage.checkFileIsRemoved(pngFile.name);
|
||||
|
Reference in New Issue
Block a user