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',
|
||||
root: 'mat-expansion-panel-header'
|
||||
},
|
||||
title: '.mat-expansion-panel-header-title'
|
||||
title: '.mat-expansion-panel-header-title',
|
||||
expanded: '.mat-expanded'
|
||||
},
|
||||
indicator: '.mat-expansion-indicator'
|
||||
},
|
||||
|
@ -36,7 +36,6 @@ export interface FilterProps {
|
||||
}
|
||||
|
||||
export class EditProcessFilterCloudComponentPage {
|
||||
|
||||
rootElement = $$('adf-cloud-edit-process-filter').first();
|
||||
customiseFilter = $('#adf-edit-process-filter-sub-title-id');
|
||||
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']`));
|
||||
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']`));
|
||||
processDefinitionNameDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-processDefinitionName']`));
|
||||
suspendedDateRangeDropdown = new DropdownPage($(`${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']`));
|
||||
processDefinitionNameDropdown = new DropdownPage(
|
||||
$(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-process-property-processDefinitionName']`)
|
||||
);
|
||||
suspendedDateRangeDropdown = new DropdownPage(
|
||||
$(`${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();
|
||||
editProcessFilterDialogPage = new EditProcessFilterDialogPage();
|
||||
|
||||
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 {
|
||||
return this.editProcessFilterDialogPage;
|
||||
|
@ -28,7 +28,6 @@ import { materialLocators } from '../../public-api';
|
||||
export type StatusType = 'All' | 'Created' | 'Assigned' | 'Cancelled' | 'Suspended' | 'Completed';
|
||||
|
||||
export class EditTaskFilterCloudComponentPage {
|
||||
|
||||
rootElement = $$('adf-cloud-edit-task-filter').first();
|
||||
customiseFilter = $('#adf-edit-task-filter-sub-title-id');
|
||||
assignee = $('input[data-automation-id="adf-cloud-edit-task-property-assignee"]');
|
||||
@ -51,21 +50,33 @@ export class EditTaskFilterCloudComponentPage {
|
||||
sortDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id='adf-cloud-edit-task-property-sort']`));
|
||||
priorityDropdown = new DropdownPage(this.priority);
|
||||
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`));
|
||||
processDefinitionNameDropdown = new DropdownPage($(`${materialLocators.Select.root}[data-automation-id="adf-cloud-edit-task-property-processDefinitionName"]`));
|
||||
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']`));
|
||||
processDefinitionNameDropdown = new DropdownPage(
|
||||
$(`${materialLocators.Select.root}[data-automation-id="adf-cloud-edit-task-property-processDefinitionName"]`)
|
||||
);
|
||||
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']`));
|
||||
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();
|
||||
groupCloudComponent = new GroupCloudComponentPage();
|
||||
|
||||
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 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> {
|
||||
return BrowserVisibility.waitUntilElementIsVisible(this.filter);
|
||||
@ -307,5 +318,4 @@ export class EditTaskFilterCloudComponentPage {
|
||||
async getProcessInstanceId(): Promise<string> {
|
||||
return BrowserActions.getInputValue(this.processInstanceId);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user