aboutsummaryrefslogtreecommitdiffstats
path: root/cypress
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-07-12 10:41:41 +0200
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-07-12 20:14:30 +0200
commit9b84831c8d0c1d715cd42fa3e4e01ac8a59fa369 (patch)
treee39514c2cd1e51150075dff10c36c664d2d53ab2 /cypress
parent62defbd6b4dded5cdb4d76efe947231cc310263b (diff)
downloadnextcloud-server-9b84831c8d0c1d715cd42fa3e4e01ac8a59fa369.tar.gz
nextcloud-server-9b84831c8d0c1d715cd42fa3e4e01ac8a59fa369.zip
fix(files_sharing): adjust IAttributes API and files_versions
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'cypress')
-rw-r--r--cypress/e2e/files_sharing/filesSharingUtils.ts4
-rw-r--r--cypress/e2e/files_versions/filesVersionsUtils.ts1
2 files changed, 4 insertions, 1 deletions
diff --git a/cypress/e2e/files_sharing/filesSharingUtils.ts b/cypress/e2e/files_sharing/filesSharingUtils.ts
index 7bc943eea9a..2899bf45b14 100644
--- a/cypress/e2e/files_sharing/filesSharingUtils.ts
+++ b/cypress/e2e/files_sharing/filesSharingUtils.ts
@@ -33,6 +33,8 @@ export function createShare(fileName: string, username: string, shareSettings: P
export function updateShare(fileName: string, index: number, shareSettings: Partial<ShareSetting> = {}) {
openSharingPanel(fileName)
+ cy.intercept({ times: 1, method: 'PUT', url: '**/apps/files_sharing/api/v1/shares/*' }).as('updateShare')
+
cy.get('#app-sidebar-vue').within(() => {
cy.get('[data-cy-files-sharing-share-actions]').eq(index).click()
cy.get('[data-cy-files-sharing-share-permissions-bundle="custom"]').click()
@@ -82,6 +84,8 @@ export function updateShare(fileName: string, index: number, shareSettings: Part
}
cy.get('[data-cy-files-sharing-share-editor-action="save"]').click({ scrollBehavior: 'nearest' })
+
+ cy.wait('@updateShare')
})
}
diff --git a/cypress/e2e/files_versions/filesVersionsUtils.ts b/cypress/e2e/files_versions/filesVersionsUtils.ts
index 91c41dc19af..a27275e8330 100644
--- a/cypress/e2e/files_versions/filesVersionsUtils.ts
+++ b/cypress/e2e/files_versions/filesVersionsUtils.ts
@@ -4,7 +4,6 @@
*/
/* eslint-disable jsdoc/require-jsdoc */
import type { User } from '@nextcloud/cypress'
-import path from 'path'
import { createShare, type ShareSetting } from '../files_sharing/filesSharingUtils'
export const uploadThreeVersions = (user: User, fileName: string) => {