Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
done

- name: ʦ TypeScript
run: npm run typecheck
run: npm run typecheck --if-present
working-directory: ./workshop

- name: ⬣ Lint
Expand All @@ -83,7 +83,9 @@ jobs:
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version: 26
# Playwright 1.51's browser install and test runner hang under Node 26.
# The setup matrix above still validates the workshop under Node 26.
node-version: 22

- name: 📦 Install dependencies
run: npm ci
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ test('should display the home page and perform client-side routing', async ({
reloadCount++
})

// Wait for the page to load
await page.waitForSelector('a')

// Get the first link
const firstLink = await page.locator('a').first()
// Wait for the streamed search results to replace placeholder "#" links.
const firstLink = page.locator('a[href^="/"]').first()
await firstLink.waitFor()

// Get the href attribute of the first link
const href = await firstLink.getAttribute('href')
Expand Down
Loading