Skip to content

Commit 63997e2

Browse files
committed
TEMP: log all events during ad test
1 parent 81e23b5 commit 63997e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

e2e/src/tests/Ads.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { TestScope } from 'cavy';
2-
import { AdEventType, PlayerEventType, AdEvent } from 'react-native-theoplayer';
2+
import { AdEvent, AdEventType, PlayerEventType } from 'react-native-theoplayer';
33
import { getTestPlayer } from '../components/TestableTHEOplayerView';
44
import { waitForPlayerEvents, waitForPlayerEventTypes } from '../utils/Actions';
55
import { TestSourceDescription, TestSources } from '../utils/SourceUtils';
@@ -18,6 +18,9 @@ export default function (spec: TestScope) {
1818
{ type: PlayerEventType.AD_EVENT, subType: AdEventType.AD_BEGIN } as AdEvent,
1919
]);
2020

21+
// TEMP
22+
player.addEventListener(Object.values(PlayerEventType), consle.log);
23+
2124
// Start autoplay
2225
player.autoplay = true;
2326
player.source = testSource.source;

0 commit comments

Comments
 (0)