mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fixig e2es - task and version
This commit is contained in:
@@ -43,7 +43,7 @@ export class TaskFiltersDemoPage {
|
|||||||
return new TaskFiltersPage(this.involvedTask);
|
return new TaskFiltersPage(this.involvedTask);
|
||||||
}
|
}
|
||||||
|
|
||||||
customTaskFilter(filterName: string): TaskFiltersPage {
|
customTaskFilter(filterName: string): TaskFiltersPage {
|
||||||
return new TaskFiltersPage($(`button[data-automation-id="${filterName}_filter"]`));
|
return new TaskFiltersPage($(`button[data-automation-id="${filterName}_filter"]`));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -21,6 +21,8 @@ import { browser, $, $$ } from 'protractor';
|
|||||||
export class TasksListPage {
|
export class TasksListPage {
|
||||||
|
|
||||||
taskList = $('adf-tasklist');
|
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();
|
noTasksFound = $$('.adf-empty-content__title').first();
|
||||||
dataTable = new DataTableComponentPage(this.taskList);
|
dataTable = new DataTableComponentPage(this.taskList);
|
||||||
|
|
||||||
@@ -61,4 +63,11 @@ export class TasksListPage {
|
|||||||
return BrowserActions.getText(this.noTasksFound);
|
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 userFiltersUtil.createUserTaskFilter(newFilter);
|
||||||
|
|
||||||
await browser.refresh();
|
await browser.refresh();
|
||||||
|
await tasksListPage.selectTaskTab();
|
||||||
await taskFiltersDemoPage.customTaskFilter(newFilter.name).clickTaskFilter();
|
await taskFiltersDemoPage.customTaskFilter(newFilter.name).clickTaskFilter();
|
||||||
|
|
||||||
await expect(await tasksListPage.getDataTable().contentInPosition(1)).toBe(tasks[2].name);
|
await expect(await tasksListPage.getDataTable().contentInPosition(1)).toBe(tasks[2].name);
|
||||||
|
@@ -24,7 +24,7 @@ $adf-average-star-color: #808080;
|
|||||||
width: 25px;
|
width: 25px;
|
||||||
|
|
||||||
/* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version. */
|
/* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version. */
|
||||||
.mat-list-item-content {
|
.mdc-list-item__content {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -99,8 +99,8 @@ adf-tags-creator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version. */
|
/* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version. */
|
||||||
.mat-list-item-content-reverse {
|
.mdc-list-item__content-reverse {
|
||||||
padding: 0;
|
padding: 0 6px;
|
||||||
|
|
||||||
.mat-pseudo-checkbox {
|
.mat-pseudo-checkbox {
|
||||||
display: none;
|
display: none;
|
||||||
|
@@ -1,7 +1,15 @@
|
|||||||
.adf-version-list {
|
.adf-version-list {
|
||||||
/* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version. */
|
.mdc-list-item__content {
|
||||||
.mat-list-item-content {
|
|
||||||
border-bottom: 1px solid #d8d8d8;
|
border-bottom: 1px solid #d8d8d8;
|
||||||
|
|
||||||
|
span {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.mat-line {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-item-version {
|
&-item-version {
|
||||||
|
@@ -1,16 +1,15 @@
|
|||||||
adf-version-manager {
|
adf-version-manager {
|
||||||
.mat-mdc-list .mat-3-line {
|
.mat-mdc-list {
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version. */
|
.mdc-list-item__content {
|
||||||
.mat-list-item-content {
|
|
||||||
padding: 16px 0 !important;
|
padding: 16px 0 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.adf-version-list-item-comment.mat-line {
|
.adf-version-list-item-comment .mat-line {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
white-space: unset !important;
|
white-space: unset !important;
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version. */
|
/* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version. */
|
||||||
.mat-nav-list .mat-mdc-list-item .mat-list-item-content {
|
.mat-nav-list .mat-mdc-list-item .mdc-list-item__content {
|
||||||
line-height: 48px;
|
line-height: 48px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -98,7 +98,7 @@
|
|||||||
|
|
||||||
&-attach-files-row {
|
&-attach-files-row {
|
||||||
/* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version. */
|
/* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version. */
|
||||||
div.mat-list-item-content {
|
div.mdc-list-item__content {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
|
|
||||||
&-attach-selected-file-row {
|
&-attach-selected-file-row {
|
||||||
/* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version. */
|
/* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version. */
|
||||||
div.mat-list-item-content {
|
div.mdc-list-item__content {
|
||||||
.adf-datatable-selected {
|
.adf-datatable-selected {
|
||||||
color: var(--theme-primary-color);
|
color: var(--theme-primary-color);
|
||||||
padding-right: 6px;
|
padding-right: 6px;
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
</mat-error>
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-row">
|
<div class="adf-input-row">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<input
|
<input
|
||||||
matInput
|
matInput
|
||||||
|
@@ -20,7 +20,8 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.adf-task-name, .adf-task-description, .input-row {
|
.adf-task-name,
|
||||||
|
.adf-task-description {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
|
||||||
@@ -29,7 +30,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-row {
|
.adf-input-row {
|
||||||
@include layout-bp(lt-md) {
|
@include layout-bp(lt-md) {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
@@ -94,7 +95,6 @@ adf-start-task {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.adf {
|
.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 {
|
&-start-task-input-container .mat-mdc-text-field-wrapper {
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
}
|
}
|
||||||
|
@@ -22,7 +22,7 @@ export class TogglePage {
|
|||||||
|
|
||||||
async enableToggle(toggle: ElementFinder): Promise<void> {
|
async enableToggle(toggle: ElementFinder): Promise<void> {
|
||||||
const check = await BrowserActions.getAttribute(toggle, 'class');
|
const check = await BrowserActions.getAttribute(toggle, 'class');
|
||||||
if (check.indexOf('mdc-switch--unselected') < 0) {
|
if (check.indexOf('mat-mdc-slide-toggle-checked') < 0) {
|
||||||
await BrowserActions.click(toggle);
|
await BrowserActions.click(toggle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user