Skip to content

Commit a46ed27

Browse files
committed
fix: update Resume navigation tests to use /games/y/play/ URL
1 parent 98c13b8 commit a46ed27

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

webapp/src/test/GameHistoryPage.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ describe('GameHistoryPage — active game', () => {
266266
it('clicking Resume navigates to the game page', () => {
267267
renderPage({ games: [makeSummary({ id: 'g1', status: 'playing', winner: null })] })
268268
fireEvent.click(screen.getByText('Resume'))
269-
expect(mockNavigate).toHaveBeenCalledWith('/games/y/g1')
269+
expect(mockNavigate).toHaveBeenCalledWith('/games/y/play/g1')
270270
})
271271

272272
it('shows "In progress" badge instead of a result badge for an active game', () => {
@@ -302,7 +302,7 @@ describe('GameHistoryPage — active game', () => {
302302
],
303303
})
304304
fireEvent.click(screen.getByText('Resume'))
305-
expect(mockNavigate).toHaveBeenCalledWith('/games/y/active-game')
305+
expect(mockNavigate).toHaveBeenCalledWith('/games/y/play/active-game')
306306
})
307307
})
308308

0 commit comments

Comments
 (0)