mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
[MIGRATION] - change selector for expanded expansion panel content
This commit is contained in:
parent
0388aaf210
commit
406cce148a
@ -212,7 +212,8 @@ export const materialLocators = {
|
|||||||
class: '.mat-expansion-panel-header',
|
class: '.mat-expansion-panel-header',
|
||||||
root: 'mat-expansion-panel-header'
|
root: 'mat-expansion-panel-header'
|
||||||
},
|
},
|
||||||
title: '.mat-expansion-panel-header-title'
|
title: '.mat-expansion-panel-header-title',
|
||||||
|
expanded: '.mat-expanded'
|
||||||
},
|
},
|
||||||
indicator: '.mat-expansion-indicator'
|
indicator: '.mat-expansion-indicator'
|
||||||
},
|
},
|
||||||
|
@ -36,7 +36,6 @@ export interface FilterProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class EditProcessFilterCloudComponentPage {
|
export class EditProcessFilterCloudComponentPage {
|
||||||
|
|
||||||
rootElement = $$('adf-cloud-edit-process-filter').first();
|
rootElement = $$('adf-cloud-edit-process-filter').first();
|
||||||
customiseFilter = $('#adf-edit-process-filter-sub-title-id');
|
customiseFilter = $('#adf-edit-process-filter-sub-title-id');
|
||||||
saveButton = $('button[data-automation-id="adf-filter-action-save"]');
|
saveButton = $('button[data-automation-id="adf-filter-action-save"]');
|
||||||
@ -48,17 +47,29 @@ export class EditProcessFilterCloudComponentPage {
|
|||||||
statusDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-status']`));
|
statusDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-status']`));
|
||||||
sortDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-sort']`));
|
sortDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-sort']`));
|
||||||
orderDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-order']`));
|
orderDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-order']`));
|
||||||
processDefinitionNameDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-processDefinitionName']`));
|
processDefinitionNameDropdown = new DropdownPage(
|
||||||
suspendedDateRangeDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-suspendedDateRange']`));
|
$(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-processDefinitionName']`)
|
||||||
startedDateRangeDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-startedDateRange']`));
|
);
|
||||||
completedDateRangeDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-completedDateRange']`));
|
suspendedDateRangeDropdown = new DropdownPage(
|
||||||
suspendedDateRangeWithin = new DatePickerPage($(`${materialLocators.Datepicker.toggle.root}[data-automation-id='adf-cloud-edit-process-property-date-range-suspendedDateRange']`));
|
$(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-suspendedDateRange']`)
|
||||||
|
);
|
||||||
|
startedDateRangeDropdown = new DropdownPage(
|
||||||
|
$(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-startedDateRange']`)
|
||||||
|
);
|
||||||
|
completedDateRangeDropdown = new DropdownPage(
|
||||||
|
$(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-completedDateRange']`)
|
||||||
|
);
|
||||||
|
suspendedDateRangeWithin = new DatePickerPage(
|
||||||
|
$(`${materialLocators.Datepicker.toggle.root}[data-automation-id='adf-cloud-edit-process-property-date-range-suspendedDateRange']`)
|
||||||
|
);
|
||||||
|
|
||||||
peopleCloudComponent = new PeopleCloudComponentPage();
|
peopleCloudComponent = new PeopleCloudComponentPage();
|
||||||
editProcessFilterDialogPage = new EditProcessFilterDialogPage();
|
editProcessFilterDialogPage = new EditProcessFilterDialogPage();
|
||||||
|
|
||||||
private expansionPanelExtended = this.rootElement.$(`${materialLocators.Expansion.panel.header.root}${materialLocators.Expanded.class}`);
|
private expansionPanelExtended = this.rootElement.$(`${materialLocators.Expansion.panel.header.root}${materialLocators.Expanded.class}`);
|
||||||
private content = TestElement.byCss(`adf-cloud-edit-process-filter ${materialLocators.Expansion.panel.root} [style*="visible"]`);
|
private content = TestElement.byCss(
|
||||||
|
`adf-cloud-edit-process-filter ${materialLocators.Expansion.panel.root}${materialLocators.Expansion.panel.expanded} ${materialLocators.Expansion.panel.content.class}`
|
||||||
|
);
|
||||||
|
|
||||||
editProcessFilterDialog(): EditProcessFilterDialogPage {
|
editProcessFilterDialog(): EditProcessFilterDialogPage {
|
||||||
return this.editProcessFilterDialogPage;
|
return this.editProcessFilterDialogPage;
|
||||||
|
@ -28,7 +28,6 @@ import { materialLocators } from '../../public-api';
|
|||||||
export type StatusType = 'All' | 'Created' | 'Assigned' | 'Cancelled' | 'Suspended' | 'Completed';
|
export type StatusType = 'All' | 'Created' | 'Assigned' | 'Cancelled' | 'Suspended' | 'Completed';
|
||||||
|
|
||||||
export class EditTaskFilterCloudComponentPage {
|
export class EditTaskFilterCloudComponentPage {
|
||||||
|
|
||||||
rootElement = $$('adf-cloud-edit-task-filter').first();
|
rootElement = $$('adf-cloud-edit-task-filter').first();
|
||||||
customiseFilter = $('#adf-edit-task-filter-sub-title-id');
|
customiseFilter = $('#adf-edit-task-filter-sub-title-id');
|
||||||
assignee = $('input[data-automation-id="adf-cloud-edit-task-property-assignee"]');
|
assignee = $('input[data-automation-id="adf-cloud-edit-task-property-assignee"]');
|
||||||
@ -51,13 +50,23 @@ export class EditTaskFilterCloudComponentPage {
|
|||||||
sortDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-task-property-sort']`));
|
sortDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-task-property-sort']`));
|
||||||
priorityDropdown = new DropdownPage(this.priority);
|
priorityDropdown = new DropdownPage(this.priority);
|
||||||
orderDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-task-property-order']`));
|
orderDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-task-property-order']`));
|
||||||
completedDateDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id="adf-cloud-edit-process-property-completedDateRange"]`));
|
completedDateDropdown = new DropdownPage(
|
||||||
|
$(`${materialLocators.Select.root}[data-automation-id="adf-cloud-edit-process-property-completedDateRange"]`)
|
||||||
|
);
|
||||||
assignmentDropdown = new DropdownPage($(`.adf-task-assignment-filter`));
|
assignmentDropdown = new DropdownPage($(`.adf-task-assignment-filter`));
|
||||||
processDefinitionNameDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id="adf-cloud-edit-task-property-processDefinitionName"]`));
|
processDefinitionNameDropdown = new DropdownPage(
|
||||||
createdDateRangeDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-createdDateRange']`));
|
$(`${materialLocators.Select.root}[data-automation-id="adf-cloud-edit-task-property-processDefinitionName"]`)
|
||||||
createdDateRangeWithin = new DatePickerPage($(`${materialLocators.Datepicker.toggle.root}[data-automation-id='adf-cloud-edit-process-property-date-range-createdDateRange']`));
|
);
|
||||||
|
createdDateRangeDropdown = new DropdownPage(
|
||||||
|
$(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-createdDateRange']`)
|
||||||
|
);
|
||||||
|
createdDateRangeWithin = new DatePickerPage(
|
||||||
|
$(`${materialLocators.Datepicker.toggle.root}[data-automation-id='adf-cloud-edit-process-property-date-range-createdDateRange']`)
|
||||||
|
);
|
||||||
dueDateRangeDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-dueDateRange']`));
|
dueDateRangeDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-dueDateRange']`));
|
||||||
dueDateRangeWithin = new DatePickerPage($(`${materialLocators.Datepicker.toggle.root}[data-automation-id='adf-cloud-edit-picker-date-range-dueDateRange']`));
|
dueDateRangeWithin = new DatePickerPage(
|
||||||
|
$(`${materialLocators.Datepicker.toggle.root}[data-automation-id='adf-cloud-edit-picker-date-range-dueDateRange']`)
|
||||||
|
);
|
||||||
|
|
||||||
peopleCloudComponent = new PeopleCloudComponentPage();
|
peopleCloudComponent = new PeopleCloudComponentPage();
|
||||||
groupCloudComponent = new GroupCloudComponentPage();
|
groupCloudComponent = new GroupCloudComponentPage();
|
||||||
@ -65,7 +74,9 @@ export class EditTaskFilterCloudComponentPage {
|
|||||||
dataTable = new DataTableComponentPage($('adf-cloud-task-list'));
|
dataTable = new DataTableComponentPage($('adf-cloud-task-list'));
|
||||||
|
|
||||||
private expansionPanelExtended = this.rootElement.$(`${materialLocators.Expansion.panel.header.root}${materialLocators.Expanded.class}`);
|
private expansionPanelExtended = this.rootElement.$(`${materialLocators.Expansion.panel.header.root}${materialLocators.Expanded.class}`);
|
||||||
private content = this.rootElement.$(`div${materialLocators.Expansion.panel.content.class}[style*="visible"]`);
|
private content = this.rootElement.$(
|
||||||
|
`${materialLocators.Expansion.panel.root}${materialLocators.Expansion.panel.expanded} ${materialLocators.Expansion.panel.content.class}`
|
||||||
|
);
|
||||||
|
|
||||||
async isFilterDisplayed(): Promise<boolean> {
|
async isFilterDisplayed(): Promise<boolean> {
|
||||||
return BrowserVisibility.waitUntilElementIsVisible(this.filter);
|
return BrowserVisibility.waitUntilElementIsVisible(this.filter);
|
||||||
@ -307,5 +318,4 @@ export class EditTaskFilterCloudComponentPage {
|
|||||||
async getProcessInstanceId(): Promise<string> {
|
async getProcessInstanceId(): Promise<string> {
|
||||||
return BrowserActions.getInputValue(this.processInstanceId);
|
return BrowserActions.getInputValue(this.processInstanceId);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user