mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fixed unit test problem and some other e2e
This commit is contained in:
@@ -105,7 +105,7 @@ describe('Task cloud visibility', async () => {
|
|||||||
await taskFormCloudComponent.formFields().checkWidgetIsHidden('Number2');
|
await taskFormCloudComponent.formFields().checkWidgetIsHidden('Number2');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C315232] Should be able to complete a process with visibility condition for boolean widgets', async () => {
|
fit('[C315232] Should be able to complete a process with visibility condition for boolean widgets', async () => {
|
||||||
await processCloudDemoPage.openNewProcessForm();
|
await processCloudDemoPage.openNewProcessForm();
|
||||||
await startProcessPage.clearField(startProcessPage.processNameInput);
|
await startProcessPage.clearField(startProcessPage.processNameInput);
|
||||||
await startProcessPage.selectFromProcessDropdown(browser.params.resources.ACTIVITI_CLOUD_APPS.SIMPLE_APP.processes.booleanvisibilityprocess);
|
await startProcessPage.selectFromProcessDropdown(browser.params.resources.ACTIVITI_CLOUD_APPS.SIMPLE_APP.processes.booleanvisibilityprocess);
|
||||||
|
@@ -16,7 +16,8 @@
|
|||||||
cancel
|
cancel
|
||||||
</mat-icon>
|
</mat-icon>
|
||||||
</mat-chip-row>
|
</mat-chip-row>
|
||||||
<input *ngIf="!isReadonly()" matInput
|
<input [disabled]="isReadonly()" matInput
|
||||||
|
#chipInput
|
||||||
[formControl]="searchUserCtrl"
|
[formControl]="searchUserCtrl"
|
||||||
[matAutocomplete]="auto"
|
[matAutocomplete]="auto"
|
||||||
[matChipInputFor]="userMultipleChipList"
|
[matChipInputFor]="userMultipleChipList"
|
||||||
|
@@ -32,27 +32,32 @@
|
|||||||
|
|
||||||
<div *ngIf="!readOnly">
|
<div *ngIf="!readOnly">
|
||||||
<button mat-button
|
<button mat-button
|
||||||
|
data-automation-id="dynamic-table-button-move-up"
|
||||||
[disabled]="!hasSelection()"
|
[disabled]="!hasSelection()"
|
||||||
(click)="moveSelectionUp()">
|
(click)="moveSelectionUp()">
|
||||||
<mat-icon>arrow_upward</mat-icon>
|
<mat-icon>arrow_upward</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button mat-button
|
<button mat-button
|
||||||
|
data-automation-id="dynamic-table-button-move-down"
|
||||||
[disabled]="!hasSelection()"
|
[disabled]="!hasSelection()"
|
||||||
(click)="moveSelectionDown()">
|
(click)="moveSelectionDown()">
|
||||||
<mat-icon>arrow_downward</mat-icon>
|
<mat-icon>arrow_downward</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button mat-button
|
<button mat-button
|
||||||
|
data-automation-id="dynamic-table-button-add-row"
|
||||||
[disabled]="field.readOnly"
|
[disabled]="field.readOnly"
|
||||||
id="{{content.id}}-add-row"
|
id="{{content.id}}-add-row"
|
||||||
(click)="addNewRow()">
|
(click)="addNewRow()">
|
||||||
<mat-icon>add_circle_outline</mat-icon>
|
<mat-icon>add_circle_outline</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button mat-button
|
<button mat-button
|
||||||
|
data-automation-id="dynamic-table-button-remove"
|
||||||
[disabled]="!hasSelection()"
|
[disabled]="!hasSelection()"
|
||||||
(click)="deleteSelection()">
|
(click)="deleteSelection()">
|
||||||
<mat-icon>remove_circle_outline</mat-icon>
|
<mat-icon>remove_circle_outline</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button mat-button
|
<button mat-button
|
||||||
|
data-automation-id="dynamic-table-button-edit"
|
||||||
[disabled]="!hasSelection()"
|
[disabled]="!hasSelection()"
|
||||||
(click)="editSelection()">
|
(click)="editSelection()">
|
||||||
<mat-icon>edit</mat-icon>
|
<mat-icon>edit</mat-icon>
|
||||||
|
@@ -22,7 +22,7 @@ import { $$, $ } from 'protractor';
|
|||||||
export class CheckboxWidgetPage {
|
export class CheckboxWidgetPage {
|
||||||
|
|
||||||
formFields = new FormFields();
|
formFields = new FormFields();
|
||||||
checkboxLabel = $('span[class*="mat-checkbox-label"]');
|
checkboxLabel = $('mat-checkbox label');
|
||||||
checkboxLocator = ('mat-checkbox');
|
checkboxLocator = ('mat-checkbox');
|
||||||
|
|
||||||
getCheckboxLabel(): Promise<string> {
|
getCheckboxLabel(): Promise<string> {
|
||||||
@@ -30,7 +30,7 @@ export class CheckboxWidgetPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async clickCheckboxInput(fieldId: string): Promise<void> {
|
async clickCheckboxInput(fieldId: string): Promise<void> {
|
||||||
const checkboxInput = $$(`mat-checkbox[id="${fieldId}"] span`).first();
|
const checkboxInput = $$(`mat-checkbox[id="${fieldId}"] input`).first();
|
||||||
await BrowserActions.click(checkboxInput);
|
await BrowserActions.click(checkboxInput);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,6 +45,6 @@ export class CheckboxWidgetPage {
|
|||||||
async isCheckboxChecked(fieldId: string): Promise<boolean> {
|
async isCheckboxChecked(fieldId: string): Promise<boolean> {
|
||||||
const checkboxWidget = await (await this.formFields.getWidget(fieldId)).$(this.checkboxLocator);
|
const checkboxWidget = await (await this.formFields.getWidget(fieldId)).$(this.checkboxLocator);
|
||||||
const attributeValue = await BrowserActions.getAttribute(checkboxWidget, 'class');
|
const attributeValue = await BrowserActions.getAttribute(checkboxWidget, 'class');
|
||||||
return attributeValue.includes('mat-checkbox-checked');
|
return attributeValue.includes('mat-mdc-checkbox-checked');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -25,7 +25,7 @@ export class DynamicTableWidgetPage {
|
|||||||
labelLocator: Locator = by.css('dynamic-table-widget div div');
|
labelLocator: Locator = by.css('dynamic-table-widget div div');
|
||||||
columnNameLocator: Locator = by.css('table[id*="dynamic-table"] th');
|
columnNameLocator: Locator = by.css('table[id*="dynamic-table"] th');
|
||||||
cancelButton = element(by.cssContainingText('button span', 'Cancel'));
|
cancelButton = element(by.cssContainingText('button span', 'Cancel'));
|
||||||
editButton = element(by.cssContainingText('button span', 'edit'));
|
editButton = element(by.css('[data-automation-id="dynamic-table-button-edit"]'));
|
||||||
columnDateTime = $('#columnDateTime');
|
columnDateTime = $('#columnDateTime');
|
||||||
columnDate = $('#columnDate');
|
columnDate = $('#columnDate');
|
||||||
calendarHeader = $('.mat-datetimepicker-calendar-header-date-time');
|
calendarHeader = $('.mat-datetimepicker-calendar-header-date-time');
|
||||||
|
@@ -24,7 +24,7 @@ export class GroupWidgetPage {
|
|||||||
groupField = $('input[data-automation-id="adf-group-search-input"]');
|
groupField = $('input[data-automation-id="adf-group-search-input"]');
|
||||||
firstResult = $('#adf-group-widget-user-0');
|
firstResult = $('#adf-group-widget-user-0');
|
||||||
formFields = new FormFields();
|
formFields = new FormFields();
|
||||||
groupDropDownList: Locator = by.css('.mat-autocomplete-panel');
|
groupDropDownList: Locator = by.css('.mat-mdc-autocomplete-panel');
|
||||||
|
|
||||||
getFieldLabel(fieldId: string): Promise<string> {
|
getFieldLabel(fieldId: string): Promise<string> {
|
||||||
return this.formFields.getFieldLabel(fieldId);
|
return this.formFields.getFieldLabel(fieldId);
|
||||||
|
@@ -23,7 +23,7 @@ export class TypeaheadWidgetPage {
|
|||||||
|
|
||||||
field = $('input[data-automation-id="adf-typeahed-search-input"]');
|
field = $('input[data-automation-id="adf-typeahed-search-input"]');
|
||||||
firstResult = $('#adf-typeahed-widget-user-0');
|
firstResult = $('#adf-typeahed-widget-user-0');
|
||||||
groupDropDownList = $('.mat-autocomplete-panel');
|
groupDropDownList = $('.mat-mdc-autocomplete-panel');
|
||||||
formFields = new FormFields();
|
formFields = new FormFields();
|
||||||
|
|
||||||
getFieldLabel(fieldId: string): Promise<string> {
|
getFieldLabel(fieldId: string): Promise<string> {
|
||||||
|
Reference in New Issue
Block a user