From aa6b28ea7b35046e95aad10f327898813ebf9df0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Thu, 28 Nov 2024 13:37:48 +0100 Subject: [PATCH] test(Ads): Test quartile interstitials events (#7688) --- test/ads_integration.js | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/test/ads_integration.js b/test/ads_integration.js index 80aaa44e98..8fa580d143 100644 --- a/test/ads_integration.js +++ b/test/ads_integration.js @@ -218,6 +218,12 @@ describe('Ads', () => { // Wait a maximum of 10 seconds before the ad starts playing. await waiter.timeoutAfter(10) .waitForEvent(adManager, shaka.ads.Utils.AD_STARTED); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_FIRST_QUARTILE); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_MIDPOINT); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_THIRD_QUARTILE); await waiter.timeoutAfter(20) .waitForEvent(adManager, shaka.ads.Utils.AD_STOPPED); @@ -227,6 +233,12 @@ describe('Ads', () => { // Wait a maximum of 10 seconds before the ad starts playing. await waiter.timeoutAfter(10) .waitForEvent(adManager, shaka.ads.Utils.AD_STARTED); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_FIRST_QUARTILE); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_MIDPOINT); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_THIRD_QUARTILE); await waiter.timeoutAfter(20) .waitForEvent(adManager, shaka.ads.Utils.AD_STOPPED); @@ -249,6 +261,12 @@ describe('Ads', () => { // Wait a maximum of 10 seconds before the ad starts playing. await waiter.timeoutAfter(10) .waitForEvent(adManager, shaka.ads.Utils.AD_STARTED); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_FIRST_QUARTILE); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_MIDPOINT); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_THIRD_QUARTILE); await waiter.timeoutAfter(20) .waitForEvent(adManager, shaka.ads.Utils.AD_STOPPED); @@ -258,6 +276,12 @@ describe('Ads', () => { // Wait a maximum of 10 seconds before the ad starts playing. await waiter.timeoutAfter(10) .waitForEvent(adManager, shaka.ads.Utils.AD_STARTED); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_FIRST_QUARTILE); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_MIDPOINT); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_THIRD_QUARTILE); await waiter.timeoutAfter(20) .waitForEvent(adManager, shaka.ads.Utils.AD_STOPPED); @@ -278,6 +302,12 @@ describe('Ads', () => { // Wait a maximum of 10 seconds before the ad starts playing. await waiter.timeoutAfter(10) .waitForEvent(adManager, shaka.ads.Utils.AD_STARTED); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_FIRST_QUARTILE); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_MIDPOINT); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_THIRD_QUARTILE); await waiter.timeoutAfter(20) .waitForEvent(adManager, shaka.ads.Utils.AD_STOPPED); @@ -287,6 +317,12 @@ describe('Ads', () => { // Wait a maximum of 10 seconds before the ad starts playing. await waiter.timeoutAfter(10) .waitForEvent(adManager, shaka.ads.Utils.AD_STARTED); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_FIRST_QUARTILE); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_MIDPOINT); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_THIRD_QUARTILE); await waiter.timeoutAfter(20) .waitForEvent(adManager, shaka.ads.Utils.AD_STOPPED); @@ -378,6 +414,12 @@ describe('Ads', () => { // Wait a maximum of 10 seconds before the ad starts playing. await waiter.timeoutAfter(10) .waitForEvent(adManager, shaka.ads.Utils.AD_STARTED); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_FIRST_QUARTILE); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_MIDPOINT); + await waiter.timeoutAfter(10) + .waitForEvent(adManager, shaka.ads.Utils.AD_THIRD_QUARTILE); await waiter.timeoutAfter(20) .waitForEvent(adManager, shaka.ads.Utils.AD_STOPPED);