Skip to content

Commit

Permalink
LoginDetails alignment when a user is unverified (#984)
Browse files Browse the repository at this point in the history
* Fix LoginDetails alignment when unverified user is login

* Fix cypress component test for Navbar

* Use data-testid in cypress test for Navbar component
  • Loading branch information
BenjaminCharmes authored Nov 14, 2024
1 parent 24bb0f9 commit 5dc4e2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webapp/cypress/component/NavbarTest.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe("Navbar", () => {
},
});

cy.get(".row")
cy.get("[data-testid=navbar-logindetails]")
.should("exist")
.within(() => {
cy.contains("Login").should("exist");
Expand Down
5 changes: 4 additions & 1 deletion webapp/src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
<img v-else class="logo-banner" :src="logo_url" />
</div>

<div class="row justify-content-center pt-3">
<div
class="container d-flex flex-column align-items-center pt-3"
data-testid="navbar-logindetails"
>
<LoginDetails />
</div>

Expand Down

0 comments on commit 5dc4e2c

Please sign in to comment.