diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index 3b75028c083..c52a587b89f 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -92,6 +92,7 @@ { + const expectedDate = new Date() + expectedDate.setDate(expectedDate.getDate() + 2) + expect(new Date(val).toDateString()).to.eq(expectedDate.toDateString()) + }) + } /** @@ -90,7 +99,7 @@ export function createShare(context: ShareContext, shareName: string, options: S cy.intercept('POST', '**/ocs/v2.php/apps/files_sharing/api/v1/shares').as('createShare') cy.findByRole('button', { name: 'Create a new share link' }).click() - // Conduct optional checks based on the provided options + // Conduct optional checks based on the provided options if (options) { cy.get('.sharing-entry__actions').should('be.visible') // Wait for the dialog to open checkPasswordState(options.enforcePassword ?? false, options.alwaysAskForPassword ?? false)