test: require CHRNX podcast media

This commit is contained in:
chrnx committed 2026-08-13 08:05:53 -05:00
1 parent 62df36ef81
commit 54ea215895
2 files changed
+81 -31

No files matched your search

+7
View File
@@ -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/ );