compare 1 with 2 & 1 with 3, can click edit when I exclude await from expect or when I do await t.expect with await
1.
await t.expect(DetailsPage.commentsBody.find(`.dropdown-menu.show`).exists).ok(`comments drop down menu unavailable`)
.click(DetailsPage.edit) // ***----- doesn't clicks and throws error***
.expect(await DetailsPage.addCommentWindow.value).eql(comData.comment);
2.
await t.expect(DetailsPage.commentsBody.find(`.dropdown-menu.show`).exists).ok(`comments drop down menu unavailable`)
.click(DetailsPage.edit) // **----- does click and no error**
.expect(DetailsPage.addCommentWindow.value).eql(comData.comment);
3.
await t.expect(DetailsPage.commentsBody.find(`.dropdown-menu.show`).exists).ok(`comments drop down menu unavailable`)
.click(DetailsPage.edit); // **----- does click and no error**
await t.expect(await DetailsPage.addCommentWindow.value).eql(comData.comment);