Skip to content

Commit

Permalink
TEMP: extra play
Browse files Browse the repository at this point in the history
  • Loading branch information
tvanlaerhoven committed Dec 23, 2024
1 parent f02582e commit bdc2c4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions e2e/src/tests/Ads.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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;
Expand Down

0 comments on commit bdc2c4a

Please sign in to comment.