fix(files_sharing): fix view only actions button selector

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
skjnldsv 2024-10-26 15:29:53 +02:00
parent 569f235560
commit 3e6d18aaf6

View file

@ -2,7 +2,7 @@
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { getActionsForFile, getRowForFile, navigateToFolder } from '../../files/FilesUtils.ts'
import { getActionButtonForFile, getRowForFile, navigateToFolder } from '../../files/FilesUtils.ts'
import { openSharingPanel } from '../FilesSharingUtils.ts'
describe('files_sharing: Public share - View only', { testIsolation: true }, () => {
@ -85,7 +85,7 @@ describe('files_sharing: Public share - View only', { testIsolation: true }, ()
})
it('Only download action is actions available', () => {
getActionsForFile('foo.txt')
getActionButtonForFile('foo.txt')
.should('be.visible')
.click()