mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix e2e test
This commit is contained in:
@@ -120,6 +120,7 @@
|
|||||||
"DISPLAY_NAME": "Display name",
|
"DISPLAY_NAME": "Display name",
|
||||||
"IS_LOCKED": "Lock",
|
"IS_LOCKED": "Lock",
|
||||||
"TAG": "Tag",
|
"TAG": "Tag",
|
||||||
|
"NODE_ID": "Node id",
|
||||||
"CREATED_BY": "Created by",
|
"CREATED_BY": "Created by",
|
||||||
"CREATED_ON": "Created on",
|
"CREATED_ON": "Created on",
|
||||||
"CREATED": "Created",
|
"CREATED": "Created",
|
||||||
|
@@ -31,7 +31,7 @@ import CONSTANTS = require('../../util/constants');
|
|||||||
|
|
||||||
import { browser, protractor } from 'protractor';
|
import { browser, protractor } from 'protractor';
|
||||||
|
|
||||||
describe('Document List - Pagination', function () {
|
describe('Create folder directive', function () {
|
||||||
|
|
||||||
let loginPage = new LoginPage();
|
let loginPage = new LoginPage();
|
||||||
let contentServicesPage = new ContentServicesPage();
|
let contentServicesPage = new ContentServicesPage();
|
||||||
|
@@ -42,10 +42,6 @@ describe('Notifications Component', () => {
|
|||||||
|
|
||||||
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
||||||
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(async(done) => {
|
|
||||||
loginPage.loginToContentServicesUsingUserModel(acsUser);
|
loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
|
|
||||||
notificationPage.goToNotificationsPage();
|
notificationPage.goToNotificationsPage();
|
||||||
@@ -86,7 +82,7 @@ describe('Notifications Component', () => {
|
|||||||
notificationPage.enterDurationField(1000);
|
notificationPage.enterDurationField(1000);
|
||||||
notificationPage.clickCustomNotificationButton();
|
notificationPage.clickCustomNotificationButton();
|
||||||
notificationPage.checkNotificationSnackBarIsDisplayed();
|
notificationPage.checkNotificationSnackBarIsDisplayed();
|
||||||
browser.sleep(1000);
|
browser.sleep(1500);
|
||||||
notificationPage.checkNotificationSnackBarIsNotDisplayed();
|
notificationPage.checkNotificationSnackBarIsNotDisplayed();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -84,7 +84,6 @@ describe('Unshare file', () => {
|
|||||||
contentServicesPage.clickShareButton();
|
contentServicesPage.clickShareButton();
|
||||||
|
|
||||||
shareDialog.checkDialogIsDisplayed();
|
shareDialog.checkDialogIsDisplayed();
|
||||||
shareDialog.clickShareToggle();
|
|
||||||
shareDialog.checkShareLinkIsDisplayed();
|
shareDialog.checkShareLinkIsDisplayed();
|
||||||
|
|
||||||
let sharedLink = await shareDialog.getShareLink();
|
let sharedLink = await shareDialog.getShareLink();
|
||||||
|
@@ -114,10 +114,11 @@ describe('Upload component - Excluded Files', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('[C212862] Should not allow upload file excluded in the files extension of app.config.json', () => {
|
it('[C212862] Should not allow upload file excluded in the files extension of app.config.json', () => {
|
||||||
navigationBarPage.clickConfigEditorButton();
|
|
||||||
|
|
||||||
browser.refresh();
|
browser.refresh();
|
||||||
|
|
||||||
|
navigationBarPage.clickConfigEditorButton();
|
||||||
|
|
||||||
configEditorPage.clickFileConfiguration('adf-file-conf');
|
configEditorPage.clickFileConfiguration('adf-file-conf');
|
||||||
|
|
||||||
configEditorPage.clickClearButton();
|
configEditorPage.clickClearButton();
|
||||||
@@ -143,10 +144,11 @@ describe('Upload component - Excluded Files', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('[C274688] Should extension type added as excluded and accepted not be uploaded', () => {
|
it('[C274688] Should extension type added as excluded and accepted not be uploaded', () => {
|
||||||
navigationBarPage.clickConfigEditorButton();
|
|
||||||
|
|
||||||
browser.refresh();
|
browser.refresh();
|
||||||
|
|
||||||
|
navigationBarPage.clickConfigEditorButton();
|
||||||
|
|
||||||
configEditorPage.clickFileConfiguration('adf-file-conf');
|
configEditorPage.clickFileConfiguration('adf-file-conf');
|
||||||
|
|
||||||
configEditorPage.clickClearButton();
|
configEditorPage.clickClearButton();
|
||||||
|
@@ -17,19 +17,19 @@
|
|||||||
|
|
||||||
import { browser } from 'protractor';
|
import { browser } from 'protractor';
|
||||||
|
|
||||||
import TestConfig = require('../test.config');
|
import TestConfig = require('../../test.config');
|
||||||
|
|
||||||
import LoginPage = require('../pages/adf/loginPage');
|
import LoginPage = require('../../pages/adf/loginPage');
|
||||||
import ContentServicesPage = require('../pages/adf/contentServicesPage');
|
import ContentServicesPage = require('../../pages/adf/contentServicesPage');
|
||||||
import { ViewerPage } from '../pages/adf/viewerPage';
|
import { ViewerPage } from '../../pages/adf/viewerPage';
|
||||||
|
|
||||||
import resources = require('../util/resources');
|
import resources = require('../../util/resources');
|
||||||
|
|
||||||
import FileModel = require('../models/ACS/fileModel');
|
import FileModel = require('../../models/ACS/fileModel');
|
||||||
import AcsUserModel = require('../models/ACS/acsUserModel');
|
import AcsUserModel = require('../models/ACS/acsUserModel');
|
||||||
|
|
||||||
import AlfrescoApi = require('alfresco-js-api-node');
|
import AlfrescoApi = require('alfresco-js-api-node');
|
||||||
import { UploadActions } from '../actions/ACS/upload.actions';
|
import { UploadActions } from '../../actions/ACS/upload.actions';
|
||||||
|
|
||||||
describe('Viewer - properties', () => {
|
describe('Viewer - properties', () => {
|
||||||
|
|
@@ -20,9 +20,9 @@ import Util = require('../../../util/util');
|
|||||||
|
|
||||||
export class ShareDialog {
|
export class ShareDialog {
|
||||||
|
|
||||||
dialogTitle = element(by.id('adf-share-dialog-title'));
|
dialogTitle = element(by.css('[data-automation-id="adf-share-dialog-title"]'));
|
||||||
shareToggle = element(by.id('adf-share-toggle'));
|
shareToggle = element(by.id('adf-share-toggle'));
|
||||||
shareLink = element(by.id('adf-share-link'));
|
shareLink = element(by.css('[data-automation-id="adf-share-link"'));
|
||||||
closeButton = element(by.css('button[class="mat-button mat-primary"]'));
|
closeButton = element(by.css('button[class="mat-button mat-primary"]'));
|
||||||
|
|
||||||
checkDialogIsDisplayed() {
|
checkDialogIsDisplayed() {
|
||||||
|
@@ -72,13 +72,13 @@ var SearchFiltersPage = function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.selectFileType = function (fileType) {
|
this.selectFileType = function (fileType) {
|
||||||
let result = element(by.css(`mat-checkbox[data-automation-id='checkbox-1:Type-${fileType}']`));
|
let result = element(by.css(`mat-checkbox[data-automation-id='checkbox-1:Type-${fileType}'] .mat-checkbox-inner-container`));
|
||||||
Util.waitUntilElementIsClickable(result);
|
Util.waitUntilElementIsClickable(result);
|
||||||
result.click();
|
result.click();
|
||||||
};
|
};
|
||||||
|
|
||||||
this.selectCreator = function (creatorName) {
|
this.selectCreator = function (creatorName) {
|
||||||
let result = element(by.css(`mat-checkbox[data-automation-id='checkbox-3:Creator-${creatorName}']`));
|
let result = element(by.css(`mat-checkbox[data-automation-id='checkbox-3:Creator-${creatorName}'] .mat-checkbox-inner-container`));
|
||||||
Util.waitUntilElementIsClickable(result);
|
Util.waitUntilElementIsClickable(result);
|
||||||
result.click();
|
result.click();
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user