From bdc2c4ad501c4d14c6d765b707849420d94a7fb1 Mon Sep 17 00:00:00 2001 From: Tom Van Laerhoven Date: Mon, 23 Dec 2024 10:26:27 +0100 Subject: [PATCH] TEMP: extra play --- e2e/src/tests/Ads.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/e2e/src/tests/Ads.spec.ts b/e2e/src/tests/Ads.spec.ts index be4eb680e..d4d811e26 100644 --- a/e2e/src/tests/Ads.spec.ts +++ b/e2e/src/tests/Ads.spec.ts @@ -3,6 +3,7 @@ import { AdEventType, PlayerEventType, AdEvent } from 'react-native-theoplayer'; import { getTestPlayer } from '../components/TestableTHEOplayerView'; import { waitForPlayerEvents, waitForPlayerEventTypes } from '../utils/Actions'; import { TestSourceDescription, TestSources } from '../utils/SourceUtils'; +import { sleep } from '../utils/TimeUtils'; export default function (spec: TestScope) { TestSources() @@ -22,6 +23,10 @@ export default function (spec: TestScope) { player.autoplay = true; player.source = testSource.source; + // TEMP: extra play + await sleep(10000); + player.play(); + // Expect events. await playEventsPromise; await adEventsPromise;