File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -458,6 +458,14 @@ async function exerciseWinamp(page) {
458458 const windowNode = document . querySelector ( '.window[data-window-id="winamp"]' ) ;
459459 return windowNode ?. _winampProApp ?. tracks ?. length === 6 ;
460460 } ) ;
461+ await page . waitForFunction ( ( ) => {
462+ const windowNode = document . querySelector ( '.window[data-window-id="winamp"]' ) ;
463+ if ( ! windowNode ) return false ;
464+ const transform = getComputedStyle ( windowNode ) . transform ;
465+ if ( transform === 'none' ) return true ;
466+ const matrix = new DOMMatrixReadOnly ( transform ) ;
467+ return Math . abs ( matrix . a - 1 ) < 0.001 && Math . abs ( matrix . d - 1 ) < 0.001 ;
468+ } ) ;
461469
462470 const playlist = appWindow . locator ( '[data-winamp-playlist] [data-track-index]' ) ;
463471 ensure ( await playlist . count ( ) === 6 , 'Winamp no renderizó las seis pistas esperadas' ) ;
You can’t perform that action at this time.
0 commit comments