Skip to content

Commit 0dc7913

Browse files
committed
Update e2e
1 parent 046a913 commit 0dc7913

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/frontend/src/lib/components/ui/Popover.svelte

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,7 @@
8484
8585
// Scroll into view if out of view e.g. mobile
8686
$effect(() => {
87-
if (isNullish(popoverRef)) {
88-
return;
89-
}
90-
popoverRef.scrollIntoView({
87+
popoverRef?.scrollIntoView({
9188
block: "nearest",
9289
inline: "nearest",
9390
behavior: "smooth",

src/frontend/tests/e2e-playwright/dashboard/removePasskey.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ test("User cannot remove passkey if they only have one access method", async ({
101101
.filter({ hasText: "Chrome" })
102102
.getByRole("button", { name: "More options" })
103103
.click();
104-
await expect(page.getByRole("listitem", { name: "Remove" })).toBeHidden();
104+
await expect(page.getByRole("menuitem", { name: "Remove" })).toBeHidden();
105105

106106
// Verify that the rename button is still visible (to ensure we're looking at the right area)
107-
await expect(page.getByRole("listitem", { name: "Rename" })).toBeVisible();
107+
await expect(page.getByRole("menuitem", { name: "Rename" })).toBeVisible();
108108
});
109109

110110
test("User is logged out after removing the passkey they used to authenticate", async ({

0 commit comments

Comments
 (0)