Skip to content

Commit

Permalink
TEMP: log all events during ad test
Browse files Browse the repository at this point in the history
  • Loading branch information
tvanlaerhoven committed Dec 24, 2024
1 parent 81e23b5 commit 5ae0af1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion e2e/src/tests/Ads.spec.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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;
Expand Down

0 comments on commit 5ae0af1

Please sign in to comment.