Skip to content

Commit 8f0910d

Browse files
committed
CodeRabbit suggestion #2
1 parent f490548 commit 8f0910d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/e2e/web/pages/messagesPage.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ export class MessagesPage {
6666
await this.messageInput.fill(message)
6767
await expect(this.messageSubmit).toBeVisible()
6868
await this.messageSubmit.click()
69-
await this.verifyMessage(message)
69+
const verified = await this.verifyMessage(message)
70+
if (!verified) throw new Error(`Message "${message}" was not found in conversation after sending`)
7071
}
7172

7273
async findMessageConversation(displayName: string) {

0 commit comments

Comments
 (0)