Skip to content

Commit

Permalink
Prevent expiration from delete file in cypress tests
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Mar 30, 2023
1 parent ae0ec6f commit 128955a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion cypress/dockerNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export const configureNextcloud = async function() {
await runExec(container, ['php', 'occ', 'config:system:set', 'default_locale', '--value', 'en_US'], true)
await runExec(container, ['php', 'occ', 'config:system:set', 'force_locale', '--value', 'en_US'], true)
await runExec(container, ['php', 'occ', 'config:system:set', 'enforce_theme', '--value', 'light'], true)
await runExec(container, ['php', 'occ', 'config:system:set', 'versions_retention_obligation', '--value', '0, 0'], true)

console.log('└─ Nextcloud is now ready to use 🎉')
}
Expand Down
2 changes: 2 additions & 0 deletions cypress/e2e/files_versions/version_expiration.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ describe('Versions expiration', () => {
})

it('Expire all versions', () => {
cy.runOccCommand('config:system:set versions_retention_obligation --value 0, 0')
cy.runOccCommand('versions:expire')
cy.runOccCommand('config:system:set versions_retention_obligation --value auto')
cy.visit('/apps/files')
openVersionsPanel(randomFileName)

Expand Down

0 comments on commit 128955a

Please sign in to comment.