Skip to content

Commit 0ffbd4c

Browse files
rdhyeeclaude
andcommitted
Fix YouTube test to match iframe embed from PR #92
The {{< video >}} Quarto shortcode renders as an iframe, not an <a> link. Updated test selector from a[href*='youtu'] to iframe[src*='youtube']. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 640e711 commit 0ffbd4c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_key_pages.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,11 @@ def test_has_presentations_section(self, page):
105105
page.goto(f"{SITE_URL}/pubs.html", wait_until="domcontentloaded")
106106
assert page.get_by_text("Presentations").count() > 0
107107

108-
def test_has_spnhc_talk_link(self, page):
108+
def test_has_spnhc_talk_embed(self, page):
109109
page.goto(f"{SITE_URL}/pubs.html", wait_until="domcontentloaded")
110-
assert page.locator("a[href*='youtu']").count() > 0
110+
# Quarto {{< video >}} renders as iframe, not <a> link
111+
youtube = page.locator("iframe[src*='youtube']")
112+
assert youtube.count() > 0
111113

112114

113115
class TestDataEndpoint:

0 commit comments

Comments
 (0)