Skip to content

Commit 12b54f0

Browse files
doublefacerezk2ll
authored andcommitted
fix: e2e tests for readonly shared drive
Since #3950 we now disable add and upload buttons on readonly folders and shared drives
1 parent 4e11945 commit 12b54f0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

e2e/tests/z-shared-drive-members.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ test.describe.serial('Shared drive members & permissions', () => {
5252
await openSharedDrive(bobPage, USERS.bob, bobDrive, VIEWER_DRIVE)
5353
await bobDrive.row(VIEWER_FILE).waitVisible({ timeout: 10_000 })
5454

55-
// Read-only recipients must not be offered write entry points — the
56-
// buttons are hidden outright (cozy-ui's FileInput ignores `disabled`,
57-
// so a disabled Upload would still open the file picker).
58-
await expect(createButton).not.toBeVisible()
59-
await expect(uploadButton).not.toBeVisible()
55+
// Read-only recipients see write entry points as disabled.
56+
await expect(createButton).toBeVisible()
57+
await expect(createButton).toBeDisabled()
58+
await expect(uploadButton).toBeVisible()
59+
await expect(uploadButton).toBeDisabled()
6060
})
6161

6262
test('the members panel shows Bob as Viewer', async ({

0 commit comments

Comments
 (0)