11import { vpTest } from '../fixtures/vpTest' ;
2- import { expect , test } from '@playwright/test' ;
2+ import { test } from '@playwright/test' ;
33import { waitForPageToLoadWithTimeout } from '../src/helpers/waitForPageToLoadWithTimeout' ;
44import { getLinkByName } from '../testData/pageLinksData' ;
55import { ExampleLinkName } from '../testData/ExampleLinkNames' ;
@@ -21,16 +21,12 @@ vpTest(`Test if 4 videos on Cloudinary analytics page are playing as expected`,
2121 await pomPages . cldAnalyticsPage . cldAnalyticsCustomDataObjectVideoComponent . locator . scrollIntoViewIfNeeded ( ) ;
2222 } ) ;
2323 await test . step ( 'Validating that Cloudinary analytics custom data object video is playing' , async ( ) => {
24- await expect ( async ( ) => {
25- await pomPages . cldAnalyticsPage . cldAnalyticsCustomDataObjectVideoComponent . validateVideoIsPlaying ( true ) ;
26- } ) . toPass ( { intervals : [ 500 ] , timeout : 3000 } ) ;
24+ await pomPages . cldAnalyticsPage . cldAnalyticsCustomDataObjectVideoComponent . validateVideoIsPlaying ( true ) ;
2725 } ) ;
2826 await test . step ( 'Scroll until Cloudinary analytics custom data function video element is visible' , async ( ) => {
2927 await pomPages . cldAnalyticsPage . cldAnalyticsCustomDataFunctionVideoComponent . locator . scrollIntoViewIfNeeded ( ) ;
3028 } ) ;
3129 await test . step ( 'Validating that Cloudinary analytics custom data function video is playing' , async ( ) => {
32- await expect ( async ( ) => {
33- await pomPages . cldAnalyticsPage . cldAnalyticsCustomDataFunctionVideoComponent . validateVideoIsPlaying ( true ) ;
34- } ) . toPass ( { intervals : [ 500 ] , timeout : 3000 } ) ;
30+ await pomPages . cldAnalyticsPage . cldAnalyticsCustomDataFunctionVideoComponent . validateVideoIsPlaying ( true ) ;
3531 } ) ;
3632} ) ;
0 commit comments