test: require CHRNX podcast media
This commit is contained in:
2 files changed
+81
-31
No files matched your search
@@ -533,6 +533,13 @@ test( 'Music and Podcast visual states decode every relevant image before measur
|
||||
const visualStates = read( 'tests/e2e/visual-states.spec.mjs' );
|
||||
|
||||
assert.match( visualStates, /async function waitForDecodedLandingImages/ );
|
||||
assert.doesNotMatch( visualStates, /elements\.length >= 2/ );
|
||||
assert.match( visualStates, /for \( const imageExpectation of imageExpectations \)/ );
|
||||
assert.match( visualStates, /toHaveCount\(\s*imageExpectation\.count/ );
|
||||
assert.match( visualStates, /latestMedia[^]*?toHaveCount\( 1 \)/ );
|
||||
assert.match( visualStates, /latestMediaKind === 'IMG'[^]*?decodeImages\( latestMedia \)/ );
|
||||
assert.match( visualStates, /chrnx-podcast-card__fallback[^]*?aria-hidden[^]*?'true'/ );
|
||||
assert.match( visualStates, /chrnx-latest-podcast img' \) \)\.toHaveCount\( 0 \)/ );
|
||||
assert.match( visualStates, /image\.complete/ );
|
||||
assert.match( visualStates, /image\.naturalWidth > 0/ );
|
||||
assert.match( visualStates, /image\.naturalHeight > 0/ );
|
||||
|
||||
Reference in new issue
Block a user