Skip to content
Snippets Groups Projects
Unverified Commit 1d81df00 authored by Guilherme Gazzo's avatar Guilherme Gazzo Committed by GitHub
Browse files

test: fix messaging flaky test (#31512)

parent 1726b501
No related branches found
No related tags found
No related merge requests found
......@@ -29,8 +29,10 @@ test.describe.serial('Messaging', () => {
await poHomeChannel.content.sendMessage('hello world');
await expect(auxContext.poHomeChannel.content.lastUserMessageBody).toHaveText('hello world');
await expect(poHomeChannel.content.lastUserMessageBody).toHaveText('hello world');
await expect(async () => {
await expect(auxContext.poHomeChannel.content.lastUserMessageBody).toHaveText('hello world');
await expect(poHomeChannel.content.lastUserMessageBody).toHaveText('hello world');
}).toPass();
await auxContext.page.close();
});
......@@ -43,8 +45,10 @@ test.describe.serial('Messaging', () => {
await poHomeChannel.content.sendMessage('hello world');
await expect(poHomeChannel.content.lastUserMessageBody).toHaveText('hello world');
await expect(auxContext.poHomeChannel.content.lastUserMessageBody).toHaveText('hello world');
await expect(async () => {
await expect(poHomeChannel.content.lastUserMessageBody).toHaveText('hello world');
await expect(auxContext.poHomeChannel.content.lastUserMessageBody).toHaveText('hello world');
}).toPass();
await auxContext.page.close();
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment