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) })