We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd1ce45 commit 0afd062Copy full SHA for 0afd062
tests/playwright/helpers/sqs-helpers.ts
@@ -27,9 +27,7 @@ export async function expectMessageContainingString(
27
const result = await sqsClient.send(new ReceiveMessageCommand(input));
28
const polledMessages = result.Messages || [];
29
30
- expect(
31
- polledMessages.find((m) => (m.Body ?? '').includes(searchTerm)),
32
- ).toBeDefined();
+ expect(polledMessages.some((m) => m.Body?.includes(searchTerm))).toBe(true);
33
});
34
}
35
0 commit comments