mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fixing e2e - part III
This commit is contained in:
@@ -42,7 +42,7 @@ export class ChecklistDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getNameFieldPlaceholder(): Promise<string> {
|
async getNameFieldPlaceholder(): Promise<string> {
|
||||||
return BrowserActions.getAttribute(this.nameField, 'data-placeholder');
|
return BrowserActions.getAttribute(this.nameField, 'placeholder');
|
||||||
}
|
}
|
||||||
|
|
||||||
async checkCancelButtonIsEnabled(): Promise<void> {
|
async checkCancelButtonIsEnabled(): Promise<void> {
|
||||||
|
@@ -58,7 +58,7 @@ export class StartTaskDialogPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getAssignee(): Promise<string> {
|
async getAssignee(): Promise<string> {
|
||||||
return BrowserActions.getAttribute(this.assignee, 'data-placeholder');
|
return BrowserActions.getAttribute(this.assignee, 'placeholder');
|
||||||
}
|
}
|
||||||
|
|
||||||
async selectForm(form): Promise<void> {
|
async selectForm(form): Promise<void> {
|
||||||
|
@@ -180,7 +180,7 @@ export class TaskDetailsPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getDescriptionPlaceholder(): Promise<string> {
|
async getDescriptionPlaceholder(): Promise<string> {
|
||||||
return BrowserActions.getAttribute(this.descriptionField, 'data-placeholder');
|
return BrowserActions.getAttribute(this.descriptionField, 'placeholder');
|
||||||
}
|
}
|
||||||
|
|
||||||
getDueDate(): Promise<string> {
|
getDueDate(): Promise<string> {
|
||||||
@@ -310,7 +310,7 @@ export class TaskDetailsPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getInvolvePeoplePlaceholder(): Promise<string> {
|
async getInvolvePeoplePlaceholder(): Promise<string> {
|
||||||
return BrowserActions.getAttribute(this.addPeopleField, 'data-placeholder');
|
return BrowserActions.getAttribute(this.addPeopleField, 'placeholder');
|
||||||
}
|
}
|
||||||
|
|
||||||
async checkCancelButtonIsEnabled(): Promise<void> {
|
async checkCancelButtonIsEnabled(): Promise<void> {
|
||||||
|
@@ -104,7 +104,11 @@ export class SearchPropertiesComponent implements OnInit, AfterViewChecked, Sear
|
|||||||
const extraFreeSpace = 20;
|
const extraFreeSpace = 20;
|
||||||
this._fileSizeOperatorsMaxWidth = Math.max(...this._fileSizeOperators.map((operator) =>
|
this._fileSizeOperatorsMaxWidth = Math.max(...this._fileSizeOperators.map((operator) =>
|
||||||
this.getOperatorNameWidth(operator, this.getCanvasFont(this.fileSizeOperatorSelectElement.nativeElement)))) +
|
this.getOperatorNameWidth(operator, this.getCanvasFont(this.fileSizeOperatorSelectElement.nativeElement)))) +
|
||||||
|
<<<<<<< Updated upstream
|
||||||
this.fileSizeOperatorSelectElement.nativeElement.querySelector('.mat-mdc-select-arrow').clientWidth +
|
this.fileSizeOperatorSelectElement.nativeElement.querySelector('.mat-mdc-select-arrow').clientWidth +
|
||||||
|
=======
|
||||||
|
this.fileSizeOperatorSelectElement.nativeElement.querySelector('.mat-mdc-select-arrow-wrapper').clientWidth +
|
||||||
|
>>>>>>> Stashed changes
|
||||||
extraFreeSpace;
|
extraFreeSpace;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@@ -33,10 +33,10 @@ export const contextMenuAnimation: ( AnimationStateMetadata | AnimationTransitio
|
|||||||
transform: 'scale(0.01, 0.01)'
|
transform: 'scale(0.01, 0.01)'
|
||||||
})),
|
})),
|
||||||
transition('void => *', sequence([
|
transition('void => *', sequence([
|
||||||
query('.mat-menu-content', style({ opacity: 0 })),
|
query('.mat-mdc-menu-content', style({ opacity: 0 })),
|
||||||
animate('100ms linear', style({ opacity: 1, transform: 'scale(1, 0.5)' })),
|
animate('100ms linear', style({ opacity: 1, transform: 'scale(1, 0.5)' })),
|
||||||
group([
|
group([
|
||||||
query('.mat-menu-content', animate('400ms cubic-bezier(0.55, 0, 0.55, 0.2)',
|
query('.mat-mdc-menu-content', animate('400ms cubic-bezier(0.55, 0, 0.55, 0.2)',
|
||||||
style({ opacity: 1 })
|
style({ opacity: 1 })
|
||||||
)),
|
)),
|
||||||
animate('300ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ transform: 'scale(1, 1)' }))
|
animate('300ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ transform: 'scale(1, 1)' }))
|
||||||
|
@@ -73,9 +73,15 @@ ul > li > form-field > .adf-focus {
|
|||||||
/* query for Microsoft IE 11 */
|
/* query for Microsoft IE 11 */
|
||||||
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
|
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
|
||||||
adf-form-field {
|
adf-form-field {
|
||||||
|
<<<<<<< Updated upstream
|
||||||
.mat-mdc-input-element,
|
.mat-mdc-input-element,
|
||||||
.mat-mdc-select,
|
.mat-mdc-select,
|
||||||
.mat-mdc-form-field {
|
.mat-mdc-form-field {
|
||||||
|
=======
|
||||||
|
.mat-input-element,
|
||||||
|
.mat-mdc-select,
|
||||||
|
.mat-form-field {
|
||||||
|
>>>>>>> Stashed changes
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,8 +6,13 @@
|
|||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
<<<<<<< Updated upstream
|
||||||
/* TODO(mdc-migration): The following rule targets internal classes of select that may no longer apply for the MDC version. */
|
/* TODO(mdc-migration): The following rule targets internal classes of select that may no longer apply for the MDC version. */
|
||||||
.mat-select-value-text {
|
.mat-select-value-text {
|
||||||
|
=======
|
||||||
|
|
||||||
|
.mat-mdc-select-value-text {
|
||||||
|
>>>>>>> Stashed changes
|
||||||
font-size: var(--theme-body-1-font-size);
|
font-size: var(--theme-body-1-font-size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -27,7 +27,7 @@ export class SearchSortingPickerPage {
|
|||||||
|
|
||||||
async sortBy(sortOrder: string, sortType: string | RegExp): Promise<void> {
|
async sortBy(sortOrder: string, sortType: string | RegExp): Promise<void> {
|
||||||
await this.sortingDropdown.clickDropdown();
|
await this.sortingDropdown.clickDropdown();
|
||||||
const selectedSortingOption = element(by.cssContainingText('.mat-option-text', sortType));
|
const selectedSortingOption = element(by.cssContainingText('.mdc-list-item__primary-text', sortType));
|
||||||
await BrowserActions.click(selectedSortingOption);
|
await BrowserActions.click(selectedSortingOption);
|
||||||
await this.sortByOrder(sortOrder);
|
await this.sortByOrder(sortOrder);
|
||||||
}
|
}
|
||||||
@@ -53,7 +53,7 @@ export class SearchSortingPickerPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async clickSortingOption(option: string): Promise<void> {
|
async clickSortingOption(option: string): Promise<void> {
|
||||||
const selectedSortingOption = element(by.cssContainingText('.mat-option-text', option));
|
const selectedSortingOption = element(by.cssContainingText('.mdc-list-item__primary-text', option));
|
||||||
await BrowserActions.click(selectedSortingOption);
|
await BrowserActions.click(selectedSortingOption);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -97,7 +97,7 @@ export class FormFields {
|
|||||||
async getFieldPlaceHolder(fieldId: string, locator = 'input'): Promise<string> {
|
async getFieldPlaceHolder(fieldId: string, locator = 'input'): Promise<string> {
|
||||||
const placeHolderLocator = $(`${locator}#${fieldId}`);
|
const placeHolderLocator = $(`${locator}#${fieldId}`);
|
||||||
await BrowserVisibility.waitUntilElementIsVisible(placeHolderLocator);
|
await BrowserVisibility.waitUntilElementIsVisible(placeHolderLocator);
|
||||||
return BrowserActions.getAttribute(placeHolderLocator, 'data-placeholder');
|
return BrowserActions.getAttribute(placeHolderLocator, 'placeholder');
|
||||||
}
|
}
|
||||||
|
|
||||||
async refreshForm(): Promise<void> {
|
async refreshForm(): Promise<void> {
|
||||||
|
@@ -37,8 +37,8 @@ export class EditTaskFilterCloudComponentPage {
|
|||||||
id = $('input[data-automation-id="adf-cloud-edit-task-property-taskId"]');
|
id = $('input[data-automation-id="adf-cloud-edit-task-property-taskId"]');
|
||||||
processDefinitionId = $('input[data-automation-id="adf-cloud-edit-task-property-processDefinitionId"]');
|
processDefinitionId = $('input[data-automation-id="adf-cloud-edit-task-property-processDefinitionId"]');
|
||||||
processInstanceId = $('input[data-automation-id="adf-cloud-edit-task-property-processInstanceId"]');
|
processInstanceId = $('input[data-automation-id="adf-cloud-edit-task-property-processInstanceId"]');
|
||||||
lastModifiedFrom = $('input[data-placeholder="LastModifiedFrom"]');
|
lastModifiedFrom = $('input[placeholder="LastModifiedFrom"]');
|
||||||
lastModifiedTo = $('input[data-placeholder="LastModifiedTo"]');
|
lastModifiedTo = $('input[placeholder="LastModifiedTo"]');
|
||||||
parentTaskId = $('input[data-automation-id="adf-cloud-edit-task-property-parentTaskId"]');
|
parentTaskId = $('input[data-automation-id="adf-cloud-edit-task-property-parentTaskId"]');
|
||||||
owner = $('input[data-automation-id="adf-cloud-edit-task-property-owner"]');
|
owner = $('input[data-automation-id="adf-cloud-edit-task-property-owner"]');
|
||||||
saveButton = $('[data-automation-id="adf-filter-action-save"]');
|
saveButton = $('[data-automation-id="adf-filter-action-save"]');
|
||||||
|
@@ -64,7 +64,7 @@ export class StartProcessCloudPage {
|
|||||||
|
|
||||||
async selectFirstOptionFromProcessDropdown(): Promise<void> {
|
async selectFirstOptionFromProcessDropdown(): Promise<void> {
|
||||||
await this.clickProcessDropdownArrow();
|
await this.clickProcessDropdownArrow();
|
||||||
const selectFirstProcessDropdown = $$('.mat-option-text').first();
|
const selectFirstProcessDropdown = $$('.mdc-list-item__primary-text').first();
|
||||||
await BrowserActions.click(selectFirstProcessDropdown);
|
await BrowserActions.click(selectFirstProcessDropdown);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user