mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
fixig e2es - task and version
This commit is contained in:
parent
f250c8547d
commit
3273b22783
@ -43,7 +43,7 @@ export class TaskFiltersDemoPage {
|
||||
return new TaskFiltersPage(this.involvedTask);
|
||||
}
|
||||
|
||||
customTaskFilter(filterName: string): TaskFiltersPage {
|
||||
customTaskFilter(filterName: string): TaskFiltersPage {
|
||||
return new TaskFiltersPage($(`button[data-automation-id="${filterName}_filter"]`));
|
||||
}
|
||||
|
||||
|
@ -21,6 +21,8 @@ import { browser, $, $$ } from 'protractor';
|
||||
export class TasksListPage {
|
||||
|
||||
taskList = $('adf-tasklist');
|
||||
selectedTab = $('[data-automation-id="navigation-bar"] .mdc-tab--active .mdc-tab__text-label');
|
||||
taskTab = $$('[data-automation-id="navigation-bar"] .mdc-tab__text-label').first();
|
||||
noTasksFound = $$('.adf-empty-content__title').first();
|
||||
dataTable = new DataTableComponentPage(this.taskList);
|
||||
|
||||
@ -61,4 +63,11 @@ export class TasksListPage {
|
||||
return BrowserActions.getText(this.noTasksFound);
|
||||
}
|
||||
|
||||
async selectTaskTab() {
|
||||
const currentTab = await BrowserActions.getText(this.selectedTab);
|
||||
if(currentTab && currentTab.toLowerCase().trim() !== 'tasks') {
|
||||
await BrowserActions.click(this.taskTab);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -95,6 +95,7 @@ describe('Task Filters Sorting', () => {
|
||||
await userFiltersUtil.createUserTaskFilter(newFilter);
|
||||
|
||||
await browser.refresh();
|
||||
await tasksListPage.selectTaskTab();
|
||||
await taskFiltersDemoPage.customTaskFilter(newFilter.name).clickTaskFilter();
|
||||
|
||||
await expect(await tasksListPage.getDataTable().contentInPosition(1)).toBe(tasks[2].name);
|
||||
|
@ -33,7 +33,7 @@
|
||||
</mat-error>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div class="input-row">
|
||||
<div class="adf-input-row">
|
||||
<mat-form-field>
|
||||
<input
|
||||
matInput
|
||||
|
@ -20,7 +20,8 @@
|
||||
flex-direction: column;
|
||||
display: flex;
|
||||
|
||||
.adf-task-name, .adf-task-description, .input-row {
|
||||
.adf-task-name,
|
||||
.adf-task-description {
|
||||
display: flex;
|
||||
margin-bottom: 10px;
|
||||
|
||||
@ -29,7 +30,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.input-row {
|
||||
.adf-input-row {
|
||||
@include layout-bp(lt-md) {
|
||||
flex-direction: column;
|
||||
}
|
||||
@ -94,7 +95,6 @@ adf-start-task {
|
||||
}
|
||||
|
||||
.adf {
|
||||
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
||||
&-start-task-input-container .mat-mdc-text-field-wrapper {
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user