From 8bc28ce253b1543c832193c9b713d5a05461b76c Mon Sep 17 00:00:00 2001 From: datguycheb Date: Mon, 29 Jan 2024 11:38:37 +0100 Subject: [PATCH] [ACS-5882] added Promise void functions without return --- .../page-objects/components/adf-info-drawer.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();