Skip to content

Commit 218f7b1

Browse files
committed
fix: incorrect selector in E2E test
-e Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
1 parent cef7c69 commit 218f7b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

playwright/e2e/form-sharing.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ test.describe('Form sharing', () => {
5151
// After adding, the share link entry renders NcActions with :inline="1",
5252
// so the first action ("Copy to clipboard") appears as an inline button.
5353
await expect(
54-
shareLinkRow.getByRole('button', { name: /Copy to clipboard/ }),
54+
shareLinkRow.getByRole('link', { name: /Copy to clipboard/ }),
5555
).toBeVisible()
5656
})
5757

@@ -65,7 +65,7 @@ test.describe('Form sharing', () => {
6565

6666
// The inline "Copy to clipboard" action should now be visible
6767
await expect(
68-
shareLinkRow.getByRole('button', { name: /Copy to clipboard/ }),
68+
shareLinkRow.getByRole('link', { name: /Copy to clipboard/ }),
6969
).toBeVisible()
7070

7171
// Open the overflow menu (the "Actions" toggle) to find "Remove link".

0 commit comments

Comments
 (0)