Skip to content

Commit

Permalink
fixed test again
Browse files Browse the repository at this point in the history
  • Loading branch information
uo289029 committed Apr 7, 2024
1 parent cb711f7 commit 1a03a94
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions webapp/src/components/Record.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,10 @@ describe('Record component', () => {

await waitFor(() => screen.getByText(/Here you can see your record! All about your past games and all!/i));

//check the game button
const homeButton = screen.getByText('Home');
expect(homeButton).toBeInTheDocument();

fireEvent.click(homeButton);

//checks it navigates out of the home page
expect(history.location.pathname).toBe('/');

});

});

0 comments on commit 1a03a94

Please # to comment.