Skip to content

Commit

Permalink
e2e small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto-Guerra committed Apr 29, 2024
1 parent 1136a15 commit bbb02dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions webapp/e2e/steps/statistics.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ defineFeature(feature, test => {
});

then('The app shows the statistics page', async () => {
await expect(page).toMatchElement(".h1-statistics", { text: "test4" });
await expect(page).toMatchElement(".h2-statistics", { text: "[email protected]" });
await expect(page).toMatchElement("#h1-statistics", { text: "test4" });
await expect(page).toMatchElement("#h2-statistics", { text: "[email protected]" });
});
})

Expand Down
4 changes: 2 additions & 2 deletions webapp/src/components/stats/Statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export default function Statistics () {
<Avatar.Fallback className="AvatarFallback" style={{fontSize:'2em'}}>{username.toUpperCase().charAt(0)}{username.toUpperCase().charAt(1)}</Avatar.Fallback>
</Avatar.Root>
</div>
<h1 className="text-text text-2xl" >{username}</h1>
<h1 className="text-text text-2xl" >{email}</h1>
<h1 id="h1-statistics" className="text-text text-2xl" >{username}</h1>
<h1 id="h2-statistics" className="text-text text-2xl" >{email}</h1>
</div>
<StatsTable />
<div className="flex flex-col gap-5 justify-start items-center p-5">
Expand Down

0 comments on commit bbb02dd

Please sign in to comment.