diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-06-26 17:34:49 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-07-03 17:45:09 +0200 |
commit | fed1451604d0b0e2fbc5b08fb9e85d26e0f580c2 (patch) | |
tree | 89b6a090c6acc55942d2450c03afceb62b34f1f5 | |
parent | e1e47305f46b607b5c3c1da05dc7d14af327be65 (diff) | |
download | nextcloud-server-fed1451604d0b0e2fbc5b08fb9e85d26e0f580c2.tar.gz nextcloud-server-fed1451604d0b0e2fbc5b08fb9e85d26e0f580c2.zip |
chore: Adapt cypress component test to contain total space
Mocked server initial state was incomplete
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | apps/files/src/views/Navigation.cy.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/src/views/Navigation.cy.ts b/apps/files/src/views/Navigation.cy.ts index 6b03efa4f5f..7357943ee28 100644 --- a/apps/files/src/views/Navigation.cy.ts +++ b/apps/files/src/views/Navigation.cy.ts @@ -190,6 +190,7 @@ describe('Quota rendering', () => { cy.mockInitialState('files', 'storageStats', { used: 1024 * 1024 * 1024, quota: -1, + total: 50 * 1024 * 1024 * 1024, }) cy.mount(NavigationView, { @@ -210,6 +211,7 @@ describe('Quota rendering', () => { cy.mockInitialState('files', 'storageStats', { used: 1024 * 1024 * 1024, quota: 5 * 1024 * 1024 * 1024, + total: 5 * 1024 * 1024 * 1024, relative: 20, // percent }) @@ -233,6 +235,7 @@ describe('Quota rendering', () => { cy.mockInitialState('files', 'storageStats', { used: 5 * 1024 * 1024 * 1024, quota: 1024 * 1024 * 1024, + total: 1024 * 1024 * 1024, relative: 500, // percent }) |