aboutsummaryrefslogtreecommitdiffstats
path: root/cypress/e2e/files_versions
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2023-03-30 16:59:00 +0200
committerLouis Chemineau <louis@chmn.me>2023-03-30 17:03:13 +0200
commit5dc64ebee67920c06e8a5b154bf8c35401508304 (patch)
tree1b74e949ffcdc05ec150b78b1dee41b2c3c076c4 /cypress/e2e/files_versions
parent4bfdd715c8346d90f5f1bcbf6925a3fc7d1c187a (diff)
downloadnextcloud-server-5dc64ebee67920c06e8a5b154bf8c35401508304.tar.gz
nextcloud-server-5dc64ebee67920c06e8a5b154bf8c35401508304.zip
Prevent expiration from delete file in cypress tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'cypress/e2e/files_versions')
-rw-r--r--cypress/e2e/files_versions/version_expiration.cy.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/cypress/e2e/files_versions/version_expiration.cy.ts b/cypress/e2e/files_versions/version_expiration.cy.ts
index e0c9e36d529..a3b2eea83e1 100644
--- a/cypress/e2e/files_versions/version_expiration.cy.ts
+++ b/cypress/e2e/files_versions/version_expiration.cy.ts
@@ -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)
@@ -53,7 +55,9 @@ describe('Versions expiration', () => {
it('Expire versions v2', () => {
nameVersion(2, 'v1')
+ 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)