aboutsummaryrefslogtreecommitdiffstats
path: root/cypress/e2e
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2025-01-22 16:11:47 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2025-01-22 16:11:47 +0100
commited852118ac759e2b3662f40057f033a14f782dda (patch)
treecaaeb8dc0a4d09b45901c8ddc0f66fc2421511e5 /cypress/e2e
parentfe4f40d4dbca96e61a6fdc299405cebedc0ea0cc (diff)
downloadnextcloud-server-chore/cypress-typos.tar.gz
nextcloud-server-chore/cypress-typos.zip
chore(tests): Make linter happy in cypress testschore/cypress-typos
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'cypress/e2e')
-rw-r--r--cypress/e2e/files_sharing/FilesSharingUtils.ts1
-rw-r--r--cypress/e2e/files_sharing/files-copy-move.cy.ts2
-rw-r--r--cypress/e2e/files_sharing/note-to-recipient.cy.ts2
-rw-r--r--cypress/e2e/files_trashbin/files-trash-action.cy.ts10
4 files changed, 7 insertions, 8 deletions
diff --git a/cypress/e2e/files_sharing/FilesSharingUtils.ts b/cypress/e2e/files_sharing/FilesSharingUtils.ts
index e49b7d0f4be..b3a8bb483bc 100644
--- a/cypress/e2e/files_sharing/FilesSharingUtils.ts
+++ b/cypress/e2e/files_sharing/FilesSharingUtils.ts
@@ -9,6 +9,7 @@ export interface ShareSetting {
read: boolean
update: boolean
delete: boolean
+ create: boolean
share: boolean
download: boolean
note: string
diff --git a/cypress/e2e/files_sharing/files-copy-move.cy.ts b/cypress/e2e/files_sharing/files-copy-move.cy.ts
index 07e35cc2d6e..fc8a04c3ab1 100644
--- a/cypress/e2e/files_sharing/files-copy-move.cy.ts
+++ b/cypress/e2e/files_sharing/files-copy-move.cy.ts
@@ -6,7 +6,6 @@ import type { User } from '@nextcloud/cypress'
import { createShare } from './FilesSharingUtils.ts'
import {
getRowForFile,
- moveFile,
copyFile,
navigateToFolder,
triggerActionForFile,
@@ -66,7 +65,6 @@ describe('files_sharing: Move or copy files', { testIsolation: true }, () => {
})
})
-
it('can create a file in a shared folder', () => {
// share the folder
cy.mkdir(user, '/folder')
diff --git a/cypress/e2e/files_sharing/note-to-recipient.cy.ts b/cypress/e2e/files_sharing/note-to-recipient.cy.ts
index d1153f2c995..edc2a67c4c1 100644
--- a/cypress/e2e/files_sharing/note-to-recipient.cy.ts
+++ b/cypress/e2e/files_sharing/note-to-recipient.cy.ts
@@ -4,7 +4,7 @@
*/
import type { User } from '@nextcloud/cypress'
import { createShare, openSharingPanel } from './FilesSharingUtils.ts'
-import { getRowForFile, navigateToFolder } from '../files/FilesUtils.ts'
+import { navigateToFolder } from '../files/FilesUtils.ts'
describe('files_sharing: Note to recipient', { testIsolation: true }, () => {
let user: User
diff --git a/cypress/e2e/files_trashbin/files-trash-action.cy.ts b/cypress/e2e/files_trashbin/files-trash-action.cy.ts
index ee06f6c3158..85cb854b8e5 100644
--- a/cypress/e2e/files_trashbin/files-trash-action.cy.ts
+++ b/cypress/e2e/files_trashbin/files-trash-action.cy.ts
@@ -12,10 +12,10 @@ describe('files_trashbin: Empty trashbin action', { testIsolation: true }, () =>
beforeEach(() => {
cy.createRandomUser().then(($user) => {
user = $user
- // create 10 fake files
- new Array(FILE_COUNT).fill(0).forEach((_, index) => {
+ // create 5 fake files
+ for (let index = 0; index < FILE_COUNT; index++) {
cy.uploadContent(user, new Blob(['<content>']), 'text/plain', `/file${index}.txt`)
- })
+ }
cy.login(user)
cy.visit('/apps/files')
@@ -44,9 +44,9 @@ describe('files_trashbin: Empty trashbin action', { testIsolation: true }, () =>
it('Can empty trashbin', () => {
// Delete files from home
- new Array(FILE_COUNT).fill(0).forEach((_, index) => {
+ for (let index = 0; index < FILE_COUNT; index++) {
deleteFileWithRequest(user, `/file${index}.txt`)
- })
+ }
// Home have no files (or the default welcome file)
cy.visit('/apps/files')