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;