From 95da4cc7b0a3b07a9ce9ceabc3dbf51aa9fa9ab3 Mon Sep 17 00:00:00 2001 From: Gianni Ferullo Date: Fri, 1 Nov 2024 11:21:32 -0400 Subject: [PATCH] react-components: fix cypress tests --- packages/react-components/cypress/utils/video-test-utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-components/cypress/utils/video-test-utils.ts b/packages/react-components/cypress/utils/video-test-utils.ts index 8740a2ec..6792fd1b 100644 --- a/packages/react-components/cypress/utils/video-test-utils.ts +++ b/packages/react-components/cypress/utils/video-test-utils.ts @@ -93,10 +93,10 @@ export function checkVideoEvents(ctx: VideoTestUtilsContext) { .then(async (elems) => { const el = elems.get(0) await el.play() - return new Promise((resolve) => { + return new Promise((resolve) => { function listener() { el.removeEventListener('ended', listener) - resolve(null) + resolve() } el.addEventListener('ended', listener) })