Skip to content

Commit

Permalink
Fixed e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Raulms29 committed Apr 28, 2024
1 parent cb331f8 commit 7b57437
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions webapp/e2e/steps/register-form.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ async function registerUser(page, username, password) {

async function waitForWelcomeMessage(page, username) {
await expect(page).toMatchElement('.welcome-message', {
text: 'Welcome back,',
timeout: 5000,
text: 'Welcome back, ',
})

await expect(page).toMatchElement('.welcome-message .username', {
await expect(page).toMatchElement('.welcome-message strong', {
text: username,
})
}
Expand Down
16 changes: 8 additions & 8 deletions webapp/src/pages/AppLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ const AppLayout = ({ volume }) => {
/>
)}

<Header
onToggleNav={toggleNav}
onChangeTheme={changeThemeHandler}
theme={theme}
volume={volume}
/>
<Header
onToggleNav={toggleNav}
onChangeTheme={changeThemeHandler}
theme={theme}
volume={volume}
/>

<Nav openNav={nav} onToggleNav={toggleNav}/>
<Nav openNav={nav} onToggleNav={toggleNav} />

</div>

<main>
<Outlet/>
<Outlet />

</main>
</div>
Expand Down

0 comments on commit 7b57437

Please sign in to comment.