Skip to content

Commit

Permalink
Fixing unit after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoAlbano committed Dec 6, 2023
1 parent 2d931a1 commit fcd6bde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { HttpClientModule } from '@angular/common/http';
import { MatMenuModule } from '@angular/material/menu';
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { MatTooltipModule } from '@angular/material/tooltip';

describe('TaskAttachmentList', () => {

Expand All @@ -48,7 +49,8 @@ describe('TaskAttachmentList', () => {
HttpClientModule,
MatMenuModule,
NoopAnimationsModule,
MatProgressSpinnerModule
MatProgressSpinnerModule,
MatTooltipModule
],
providers: [
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ export class GroupCloudComponentPage {

async checkSelectedGroup(group: string): Promise<boolean> {
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;
} catch (e) {
return false;
};
}

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> {
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);
}

Expand Down

0 comments on commit fcd6bde

Please sign in to comment.