Skip to content

Commit

Permalink
Sorry guys I had messed up :(
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloGOP committed Apr 27, 2024
1 parent 20b6bcc commit d85a4df
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions webapp/src/__tests__/components/NavBar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ describe('NavBar component', () => {
</BrowserRouter>
</SessionContext.Provider>
);
const logo = screen.getByAltText('Logo');
await expect(logo).toBeInTheDocument();
const logo = screen.getAllByAltText('Logo');
// There should be the one for mobile and the one for normal devices
await expect(logo[0]).toBeInTheDocument();
await expect(logo[1]).toBeInTheDocument();
});

it('should render log-in option', async () => {
Expand All @@ -42,6 +44,7 @@ describe('NavBar component', () => {
await expect(logIn).toBeInTheDocument();
});


// As there s a link for the menu (mobiles version) and in the propper nav, we have to check 2 elements appear
it('should render navigation links', async () => {
render(
Expand Down

0 comments on commit d85a4df

Please sign in to comment.