diff --git a/e2e/src/tests/Ads.spec.ts b/e2e/src/tests/Ads.spec.ts index 95d793495..229ff9504 100644 --- a/e2e/src/tests/Ads.spec.ts +++ b/e2e/src/tests/Ads.spec.ts @@ -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;