test: keep CHRNX stage tests portable
This commit is contained in:
2 files changed
+12
-1
No files matched your search
@@ -620,3 +620,12 @@ test( 'Music and Podcast stage specialization cannot leak into immutable surface
|
||||
assert.doesNotMatch( block, new RegExp( forbidden.replaceAll( '.', '\\.' ) ) );
|
||||
}
|
||||
} );
|
||||
|
||||
test( 'Music and Podcast browser tests derive their origin from Playwright configuration', () => {
|
||||
const stages = read( 'tests/e2e/music-podcast-stages.spec.mjs' );
|
||||
|
||||
assert.doesNotMatch( stages, /localhost:8908/ );
|
||||
assert.match( stages, /new URL\( baseURL \)\.origin/ );
|
||||
assert.match( stages, /new URL\( page\.url\(\) \)\.origin/ );
|
||||
assert.match( stages, /expect\( resolvedOrigin \)\.toBe\( expectedOrigin \)/ );
|
||||
} );
|
||||
Reference in new issue
Block a user