Skip to content

Commit e0a9a3e

Browse files
authored
Hotfix for tests + forgotten Node update (#266)
* hotfix for new links to test * update node for lighthouse ci
1 parent 1fb92ee commit e0a9a3e

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/lighthouse-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
- uses: actions/checkout@v3
88
- uses: actions/setup-node@v4
99
with:
10-
node-version: 22
10+
node-version: 24
1111
- run: npm install && npm install -g @lhci/[email protected]
1212
- run: npm run build
1313
- run: lhci autorun

src/components/SideDrawer/__test__/SideDrawer.test.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,14 @@ describe('SideDrawer', () => {
130130
await user.click(button)
131131

132132
const navLinks = await screen.findAllByRole('link')
133-
expect(navLinks.length).toEqual(4)
133+
expect(navLinks.length).toEqual(6)
134134

135135
expect(navLinks[0]).toHaveAttribute('href', '/')
136136
expect(navLinks[1]).toHaveAttribute('href', '/team')
137137
expect(navLinks[2]).toHaveAttribute('href', '/jobs')
138-
expect(navLinks[3]).toHaveAttribute('href', '/codeofconduct')
138+
expect(navLinks[3]).toHaveAttribute('href', '/events')
139+
expect(navLinks[4]).toHaveAttribute('href', '/wiki')
140+
expect(navLinks[5]).toHaveAttribute('href', '/codeofconduct')
139141
// no need to test actual navigation as it's out of scope for this test
140142
})
141143
})

0 commit comments

Comments
 (0)