From 4597713ec2a15235aa504114d161740e8df4b2a1 Mon Sep 17 00:00:00 2001 From: vikalpgupta Date: Mon, 8 May 2023 10:40:13 +0530 Subject: [PATCH] feat(icon): review comment changes Co-authored-by: Westbrook Johnson --- packages/icon/test/icon.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/icon/test/icon.test.ts b/packages/icon/test/icon.test.ts index 9f430aa4a4..cf00be6a96 100644 --- a/packages/icon/test/icon.test.ts +++ b/packages/icon/test/icon.test.ts @@ -89,7 +89,7 @@ describe('Icon', () => { // Skipping the test case expectation for webkit because of error event not dispatching bug for the same, https://github.com/microsoft/playwright/issues/22332 if (!isWebKit()) { - expect(error).to.be.calledOnce; + await waitUntil(() => error.calledOnce, 'The error was thrown.'); } });