mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-3908] use different selectors that are valid for ADW as well (#2091)
* use different selectors in order to be valid for ADW as well * trigger travis
This commit is contained in:
@@ -96,11 +96,10 @@ describe('Library actions', () => {
|
|||||||
await Utils.pressEscape();
|
await Utils.pressEscape();
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(async (done) => {
|
afterEach(async () => {
|
||||||
await Utils.pressEscape();
|
await Utils.pressEscape();
|
||||||
await page.header.expandSideNav();
|
await page.header.expandSideNav();
|
||||||
await page.clickPersonalFiles();
|
await page.clickPersonalFiles();
|
||||||
done();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
@@ -33,8 +33,9 @@ export class CreateOrEditFolderDialog extends GenericDialog {
|
|||||||
cancelButton = this.childElement(by.id('adf-folder-cancel-button'));
|
cancelButton = this.childElement(by.id('adf-folder-cancel-button'));
|
||||||
updateButton = this.childElement(by.cssContainingText('.mat-dialog-actions button', 'Update'));
|
updateButton = this.childElement(by.cssContainingText('.mat-dialog-actions button', 'Update'));
|
||||||
|
|
||||||
nameInput = this.rootElem.element(by.css('input[data-placeholder="Name" i]'));
|
nameInput = this.rootElem.element(by.id('adf-folder-name-input'));
|
||||||
descriptionTextArea = this.rootElem.element(by.css('textarea[data-placeholder="Description" i]'));
|
titleInput = this.rootElem.element(by.id('adf-folder-title-input'));
|
||||||
|
descriptionTextArea = this.rootElem.element(by.id('adf-folder-description-input'));
|
||||||
validationMessage = this.rootElem.element(by.css('.mat-hint span'));
|
validationMessage = this.rootElem.element(by.css('.mat-hint span'));
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@@ -32,9 +32,9 @@ export class CreateFromTemplateDialog extends GenericDialog {
|
|||||||
createButton = this.childElement(by.cssContainingText('.mat-dialog-actions button', 'Create'));
|
createButton = this.childElement(by.cssContainingText('.mat-dialog-actions button', 'Create'));
|
||||||
cancelButton = this.childElement(by.cssContainingText('.mat-dialog-actions button', 'CANCEL'));
|
cancelButton = this.childElement(by.cssContainingText('.mat-dialog-actions button', 'CANCEL'));
|
||||||
|
|
||||||
nameInput = this.childElement(by.css('input[data-placeholder="Name" i]'));
|
nameInput = this.childElement(by.css('input[formcontrolname="name"]'));
|
||||||
titleInput = this.childElement(by.css('input[data-placeholder="Title" i]'));
|
titleInput = this.childElement(by.css('input[formcontrolname="title"]'));
|
||||||
descriptionTextArea = this.childElement(by.css('textarea[data-placeholder="Description" i]'));
|
descriptionTextArea = this.childElement(by.css('textarea[formcontrolname="description"]'));
|
||||||
validationMessage = this.childElement(by.css('.mat-error'));
|
validationMessage = this.childElement(by.css('.mat-error'));
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@@ -32,9 +32,9 @@ export class CreateLibraryDialog extends GenericDialog {
|
|||||||
createButton = this.childElement(by.cssContainingText('.mat-dialog-actions button', 'Create'));
|
createButton = this.childElement(by.cssContainingText('.mat-dialog-actions button', 'Create'));
|
||||||
cancelButton = this.childElement(by.cssContainingText('.mat-dialog-actions button', 'Cancel'));
|
cancelButton = this.childElement(by.cssContainingText('.mat-dialog-actions button', 'Cancel'));
|
||||||
|
|
||||||
nameInput = this.rootElem.element(by.css('input[data-placeholder="Name" i]'));
|
nameInput = this.rootElem.element(by.css('input[formcontrolname="title"]'));
|
||||||
libraryIdInput = this.rootElem.element(by.css('input[data-placeholder="Library ID" i]'));
|
libraryIdInput = this.rootElem.element(by.css('input[formcontrolname="id"]'));
|
||||||
descriptionTextArea = this.rootElem.element(by.css('textarea[data-placeholder="Description" i]'));
|
descriptionTextArea = this.rootElem.element(by.css('textarea[formcontrolname="description"]'));
|
||||||
visibilityPublic = this.rootElem.element(by.cssContainingText('.mat-radio-label', 'Public'));
|
visibilityPublic = this.rootElem.element(by.cssContainingText('.mat-radio-label', 'Public'));
|
||||||
visibilityModerated = this.rootElem.element(by.cssContainingText('.mat-radio-label', 'Moderated'));
|
visibilityModerated = this.rootElem.element(by.cssContainingText('.mat-radio-label', 'Moderated'));
|
||||||
visibilityPrivate = this.rootElem.element(by.cssContainingText('.mat-radio-label', 'Private'));
|
visibilityPrivate = this.rootElem.element(by.cssContainingText('.mat-radio-label', 'Private'));
|
||||||
|
@@ -32,7 +32,7 @@ export class FacetFilter extends GenericFilterPanel {
|
|||||||
checkbox: '.mat-checkbox',
|
checkbox: '.mat-checkbox',
|
||||||
checkboxChecked: '.mat-checkbox.mat-checkbox-checked',
|
checkboxChecked: '.mat-checkbox.mat-checkbox-checked',
|
||||||
button: '.adf-facet-buttons button',
|
button: '.adf-facet-buttons button',
|
||||||
categoryInput: 'input[data-placeholder="Filter category"',
|
categoryInput: 'input[data-automation-id^="facet-result-filter"]',
|
||||||
facetsFilter: '.adf-facet-result-filter'
|
facetsFilter: '.adf-facet-result-filter'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -24,7 +24,7 @@ const SAVE_SCREENSHOT = process.env.SAVE_SCREENSHOT === 'true';
|
|||||||
const API_CONTENT_HOST = process.env.API_CONTENT_HOST || 'http://localhost:8080';
|
const API_CONTENT_HOST = process.env.API_CONTENT_HOST || 'http://localhost:8080';
|
||||||
const MAXINSTANCES = process.env.MAXINSTANCES || 1;
|
const MAXINSTANCES = process.env.MAXINSTANCES || 1;
|
||||||
const MAX_RETRIES = process.env.MAX_RETRIES || 1;
|
const MAX_RETRIES = process.env.MAX_RETRIES || 1;
|
||||||
const LOG_LEVEL = process.env.LOG_LEVEL || 'ERROR';
|
const E2E_LOG_LEVEL = process.env.E2E_LOG_LEVEL || 'ERROR';
|
||||||
|
|
||||||
const appConfig = {
|
const appConfig = {
|
||||||
hostEcm: API_CONTENT_HOST,
|
hostEcm: API_CONTENT_HOST,
|
||||||
@@ -44,7 +44,7 @@ exports.config = {
|
|||||||
e2eRootPath: e2eFolder,
|
e2eRootPath: e2eFolder,
|
||||||
testConfig: {
|
testConfig: {
|
||||||
appConfig: {
|
appConfig: {
|
||||||
log: LOG_LEVEL
|
log: E2E_LOG_LEVEL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user