fix: preserve CHRNX incomplete podcast routing
This commit is contained in:
5 files changed
+47
-9
No files matched your search
@@ -96,9 +96,8 @@ test( 'long, incomplete, empty, and missing states stay usable', async ( { page
|
||||
} ),
|
||||
).toBeVisible();
|
||||
await expect( page.locator( '.chrnx-podcast-meta' ) ).toHaveCount( 0 );
|
||||
await expect( page.locator( '.taxonomy-chrnx_topic, .taxonomy-chrnx_language' ) ).toHaveCount(
|
||||
0,
|
||||
);
|
||||
await expect( page.locator( '.taxonomy-chrnx_topic' ) ).toContainText( 'Podcasts' );
|
||||
await expect( page.locator( '.taxonomy-chrnx_language' ) ).toContainText( 'Español' );
|
||||
await expect( page.getByText( 'Estado de prueba para un episodio sin show' ) ).toHaveCount( 0 );
|
||||
|
||||
await page.goto( '/emotion-is-not-a-slider-designing-expressive-systems-that-can-hesitate/' );
|
||||
@@ -197,6 +196,20 @@ test( 'podcast canonical metadata is safe and missing metadata never invents a p
|
||||
);
|
||||
} );
|
||||
|
||||
test( 'incomplete podcast remains journal-visible but excluded from show and latest surfaces', async ( {
|
||||
page,
|
||||
} ) => {
|
||||
const title = 'Conversación pendiente de datos editoriales';
|
||||
await page.goto( `/?s=${ encodeURIComponent( title ) }` );
|
||||
await expect( page.locator( '.chrnx-journal-card', { hasText: title } ) ).toHaveCount( 1 );
|
||||
|
||||
await page.goto( '/podcasts/' );
|
||||
await expect( page.locator( '.chrnx-latest-podcast', { hasText: title } ) ).toHaveCount( 0 );
|
||||
|
||||
await page.goto( '/show/silicon-ranch/' );
|
||||
await expect( page.locator( 'main', { hasText: title } ) ).toHaveCount( 0 );
|
||||
} );
|
||||
|
||||
test( 'site routes preserve heading order, named landmarks, and skip-link keyboard flow', async ( {
|
||||
page,
|
||||
}, testInfo ) => {
|
||||
|
||||
Reference in new issue
Block a user