Skip to content

Commit

Permalink
[ACS-5882] added Promise void functions without return
Browse files Browse the repository at this point in the history
  • Loading branch information
datguychen committed Feb 2, 2024
1 parent a2fcfc1 commit 8bc28ce
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ export class AdfInfoDrawerComponent extends BaseComponent {
return parseInt(commentsCountString);
}

async verifyCommentsCountFromList(expectedNumber: number) {
async verifyCommentsCountFromList(expectedNumber: number): Promise<void> {
const commentsCountFromList = await this.commentsList.count();
expect(commentsCountFromList).toEqual(expectedNumber);
}

async waitForComments() {
async waitForComments(): Promise<void> {
await this.commentsList.first().waitFor();
}

async addCommentToNode(commentText: string) {
async addCommentToNode(commentText: string): Promise<void> {
await this.commentInputField.click();
await this.page.keyboard.type(commentText);
await this.addCommentButton.click();
Expand Down

0 comments on commit 8bc28ce

Please sign in to comment.