Simple question, lets pretend I have a function like this (In this example it's within a class, using an automation framework):
async logout() {
await this.page.click('#logout');
}
and then call it in another file via
await new LogoutPage(driver).logout()
Do I really need the second await
? Similarly if we return something with await
IE:
async LoggedOut(): Promise<boolean> {
return await isVisible('#logged_out_logo');
}
Would I need an await
also when calling that?