diff --git a/e2e/storage/connections-management.spec.ts b/e2e/storage/connections-management.spec.ts index c449f43e..50e7a3f1 100644 --- a/e2e/storage/connections-management.spec.ts +++ b/e2e/storage/connections-management.spec.ts @@ -16,7 +16,7 @@ async function openFirstConnectionEditPage(page: Page) { await page .getByRole('button', { name: /Options for/i }) .first() - .click({ force: true }); + .click(); await page.getByRole('menuitem', { name: 'Edit' }).click(); await waitForHydration(page); } @@ -231,7 +231,7 @@ test.describe('Storage — Connections management', () => { await savedList .getByRole('button', { name: /Options for/ }) .first() - .click({ force: true }); + .click(); await page.getByRole('menuitem', { name: 'Edit', exact: true }).click(); await waitForHydration(page); await expect(page.getByRole('heading', { name: 'Edit connection' })).toBeVisible(); @@ -410,7 +410,7 @@ test.describe('Storage — Connection edit sidebar', () => { await savedList .getByRole('button', { name: /Options for/ }) .first() - .click({ force: true }); + .click(); await page.getByRole('menuitem', { name: 'Edit', exact: true }).click(); await waitForHydration(page); await expect(page.getByRole('heading', { name: 'Edit connection' })).toBeVisible(); @@ -433,7 +433,7 @@ test.describe('Storage — Connection edit sidebar', () => { .getByRole('list', { name: 'Saved connections' }) .getByRole('button', { name: /Options for/ }) .nth(index) - .click({ force: true }); + .click(); await page.getByRole('menuitem', { name: 'Delete', exact: true }).click(); await page.getByRole('dialog').getByRole('button', { name: 'Delete', exact: true }).click(); } diff --git a/e2e/storage/helpers.ts b/e2e/storage/helpers.ts index d750d9a2..34b66f37 100644 --- a/e2e/storage/helpers.ts +++ b/e2e/storage/helpers.ts @@ -54,12 +54,11 @@ async function clearSavedConnections(page: Page) { ) break; const before = await items.count(); - // Click the last button in the first list item. On desktop this is the - // "more options" button (opacity-0, so use force). On mobile it's the - // X delete button which submits the form directly. - await items.first().getByRole('button').last().click({ force: true }); - // Desktop: a context menu appears — click Delete to open the modal. - // Mobile: the form submitted directly (no context menu), skip to hydration. + // Click the last button in the first list item. On desktop this is the options button, + // on mobile the X delete button, which submits the form directly. + await items.first().getByRole('button').last().click(); + // Desktop: the options menu opens — click Delete to open the modal. + // Mobile: the form submitted directly (no menu), skip to hydration. const deleteMenuItem = page.getByRole('menuitem', { name: 'Delete', exact: true }); if (await deleteMenuItem.isVisible().catch(() => false)) { await deleteMenuItem.click(); diff --git a/e2e/storage/pinning.spec.ts b/e2e/storage/pinning.spec.ts index 4c402de6..4c4ed69e 100644 --- a/e2e/storage/pinning.spec.ts +++ b/e2e/storage/pinning.spec.ts @@ -36,9 +36,7 @@ test.describe('Storage S3 — Pinned locations', () => { const sidebar = page.getByRole('navigation', { name: 'Buckets' }); await expect(sidebar.getByText('Pinned Access')).toBeVisible(); - await sidebar.getByRole('button', { name: `Unpin ${credentials.bucket}` }).click({ - force: true - }); + await sidebar.getByRole('button', { name: `Unpin ${credentials.bucket}` }).click(); await expect(sidebar.getByText('Pinned Access')).toHaveCount(0); } finally { diff --git a/src/lib/components/storage/sidebar/BucketList.svelte b/src/lib/components/storage/sidebar/BucketList.svelte index 1cdabfb1..c4d3353f 100644 --- a/src/lib/components/storage/sidebar/BucketList.svelte +++ b/src/lib/components/storage/sidebar/BucketList.svelte @@ -149,9 +149,8 @@