Skip to content

Commit

Permalink
TEMP: longer timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanhaevre committed Nov 22, 2024
1 parent d5ecfb3 commit cd642a6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions e2e/src/tests/Ads.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ export default function (spec: TestScope) {
spec.it('dispatches sourcechange, play, playing and ad events', async function () {
const player = await getTestPlayer();
const playEventsPromise = waitForPlayerEventTypes(player, [PlayerEventType.SOURCE_CHANGE, PlayerEventType.PLAY, PlayerEventType.PLAYING]);

const adEventsPromise = waitForPlayerEvents(player, [
{ type: PlayerEventType.AD_EVENT, subType: AdEventType.AD_BREAK_BEGIN } as AdEvent,
{ type: PlayerEventType.AD_EVENT, subType: AdEventType.AD_BEGIN } as AdEvent,
]);
const adEventsPromise = waitForPlayerEvents(
player,
[
{ type: PlayerEventType.AD_EVENT, subType: AdEventType.AD_BREAK_BEGIN } as AdEvent,
{ type: PlayerEventType.AD_EVENT, subType: AdEventType.AD_BEGIN } as AdEvent,
],
true,
{ timeout: 60000 },
);

// Start autoplay
player.autoplay = true;
Expand Down

0 comments on commit cd642a6

Please sign in to comment.