Skip to content

Commit

Permalink
feat: improve topbar and login tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-osch committed Jan 21, 2025
1 parent f85f652 commit f9922f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __checks__/key-user-flows/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ test('login', async ({ page }) => {
const shopPage = new DanubeShopPage(page);

await shopPage.performLogin(registeredUser);
expect(await shopPage.isPastLogin());
expect(await shopPage.loginMessage).toBeVisible();
});
4 changes: 1 addition & 3 deletions vue/src/components/Topbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<input
id="n-email"
class="textfield-modal"
v-model="username"
v-model="email"
type="text"
placeholder="Email"
/>
Expand Down Expand Up @@ -163,10 +163,8 @@ export default {
methods: {
show() {
this.$modal.show("modal-login");
console.log('hello world')
},
signIn() {
console.log('Sign IN attempt', this.email, this.password)
this.error = ''
if (!this.email || !this.password) {
Expand Down

0 comments on commit f9922f0

Please sign in to comment.