From 5ae0af1a8a5b826e4fcb6f9186e1671198efc98e Mon Sep 17 00:00:00 2001 From: Tom Van Laerhoven Date: Tue, 24 Dec 2024 11:59:38 +0100 Subject: [PATCH] TEMP: log all events during ad test --- e2e/src/tests/Ads.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/src/tests/Ads.spec.ts b/e2e/src/tests/Ads.spec.ts index be4eb680e..cea216242 100644 --- a/e2e/src/tests/Ads.spec.ts +++ b/e2e/src/tests/Ads.spec.ts @@ -1,5 +1,5 @@ import { TestScope } from 'cavy'; -import { AdEventType, PlayerEventType, AdEvent } from 'react-native-theoplayer'; +import { AdEvent, AdEventType, PlayerEventType } from 'react-native-theoplayer'; import { getTestPlayer } from '../components/TestableTHEOplayerView'; import { waitForPlayerEvents, waitForPlayerEventTypes } from '../utils/Actions'; import { TestSourceDescription, TestSources } from '../utils/SourceUtils'; @@ -18,6 +18,9 @@ export default function (spec: TestScope) { { type: PlayerEventType.AD_EVENT, subType: AdEventType.AD_BEGIN } as AdEvent, ]); + // TEMP + player.addEventListener(Object.values(PlayerEventType), console.log); + // Start autoplay player.autoplay = true; player.source = testSource.source;