mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fixing unit after rebase
This commit is contained in:
@@ -29,6 +29,7 @@ import { HttpClientModule } from '@angular/common/http';
|
|||||||
import { MatMenuModule } from '@angular/material/menu';
|
import { MatMenuModule } from '@angular/material/menu';
|
||||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
||||||
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||||
|
|
||||||
describe('TaskAttachmentList', () => {
|
describe('TaskAttachmentList', () => {
|
||||||
|
|
||||||
@@ -48,7 +49,8 @@ describe('TaskAttachmentList', () => {
|
|||||||
HttpClientModule,
|
HttpClientModule,
|
||||||
MatMenuModule,
|
MatMenuModule,
|
||||||
NoopAnimationsModule,
|
NoopAnimationsModule,
|
||||||
MatProgressSpinnerModule
|
MatProgressSpinnerModule,
|
||||||
|
MatTooltipModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock }
|
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock }
|
||||||
|
@@ -59,7 +59,7 @@ export class GroupCloudComponentPage {
|
|||||||
|
|
||||||
async checkSelectedGroup(group: string): Promise<boolean> {
|
async checkSelectedGroup(group: string): Promise<boolean> {
|
||||||
try {
|
try {
|
||||||
await TestElement.byText('mat-chip[data-automation-id*="adf-cloud-group-chip-"]', group).waitVisible();
|
await TestElement.byText('mat-chip-row[data-automation-id*="adf-cloud-group-chip-"]', group).waitVisible();
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return false;
|
return false;
|
||||||
@@ -67,11 +67,11 @@ export class GroupCloudComponentPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async checkGroupNotSelected(group: string): Promise<void> {
|
async checkGroupNotSelected(group: string): Promise<void> {
|
||||||
await BrowserVisibility.waitUntilElementIsNotVisible(element(by.cssContainingText('mat-chip[data-automation-id*="adf-cloud-group-chip-"]', group)));
|
await BrowserVisibility.waitUntilElementIsNotVisible(element(by.cssContainingText('mat-chip-row[data-automation-id*="adf-cloud-group-chip-"]', group)));
|
||||||
}
|
}
|
||||||
|
|
||||||
async removeSelectedGroup(group: string): Promise<void> {
|
async removeSelectedGroup(group: string): Promise<void> {
|
||||||
const locator = $(`mat-chip[data-automation-id*="adf-cloud-group-chip-${group}"] mat-icon`);
|
const locator = $(`mat-chip-row[data-automation-id*="adf-cloud-group-chip-${group}"] mat-icon`);
|
||||||
await BrowserActions.click(locator);
|
await BrowserActions.click(locator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user