diff --git a/projects/aca-playwright-shared/src/page-objects/components/adf-info-drawer.component.ts b/projects/aca-playwright-shared/src/page-objects/components/adf-info-drawer.component.ts index 56d989e5d7..bd2c5d7e57 100644 --- a/projects/aca-playwright-shared/src/page-objects/components/adf-info-drawer.component.ts +++ b/projects/aca-playwright-shared/src/page-objects/components/adf-info-drawer.component.ts @@ -53,16 +53,16 @@ export class AdfInfoDrawerComponent extends BaseComponent { return parseInt(commentsCountString); } - async verifyCommentsCountFromList(expectedNumber: number) { + async verifyCommentsCountFromList(expectedNumber: number): Promise { const commentsCountFromList = await this.commentsList.count(); expect(commentsCountFromList).toEqual(expectedNumber); } - async waitForComments() { + async waitForComments(): Promise { await this.commentsList.first().waitFor(); } - async addCommentToNode(commentText: string) { + async addCommentToNode(commentText: string): Promise { await this.commentInputField.click(); await this.page.keyboard.type(commentText); await this.addCommentButton.click();