Skip to content

Commit 1938da8

Browse files
juliusknorrnextcloud-command
authored andcommitted
fix: Close viewer if we navigate back in browser history
Signed-off-by: Julius Knorr <jus@bitgrid.net> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent 7176f6b commit 1938da8

File tree

5 files changed

+44
-6
lines changed

5 files changed

+44
-6
lines changed

cypress/e2e/navigation.cy.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
3+
* SPDX-License-Identifier: AGPL-3.0-or-later
4+
*/
5+
6+
describe('Browser navigation', function() {
7+
before(function() {
8+
// Init user
9+
cy.createRandomUser().then(user => {
10+
// Upload test files
11+
cy.uploadFile(user, 'image.png', 'image/png', '/image1.png')
12+
13+
// Visit nextcloud
14+
cy.login(user)
15+
cy.visit('/apps/files')
16+
})
17+
})
18+
after(function() {
19+
cy.logout()
20+
})
21+
22+
it('Navigating back to the files overview', function() {
23+
cy.getFile('image1.png', { timeout: 10000 })
24+
cy.openFile('image1.png')
25+
cy.get('body > .viewer').should('be.visible')
26+
cy.go('back')
27+
cy.get('body > .viewer').should('not.exist')
28+
})
29+
})

js/vendor.LICENSE.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ version: 0.7.5
2121
license: MIT
2222

2323
@floating-ui/core
24-
version: 1.6.0
24+
version: 0.3.1
2525
license: MIT
2626

2727
@floating-ui/dom
28-
version: 1.6.3
28+
version: 0.1.10
2929
license: MIT
3030

3131
@floating-ui/utils
@@ -73,7 +73,7 @@ version: 2.2.0
7373
license: GPL-3.0-or-later
7474

7575
@nextcloud/l10n
76-
version: 3.1.0
76+
version: 2.2.0
7777
license: GPL-3.0-or-later
7878

7979
@nextcloud/logger
@@ -141,7 +141,7 @@ version: 11.3.0
141141
license: MIT
142142

143143
@vueuse/shared
144-
version: 11.0.3
144+
version: 11.3.0
145145
license: MIT
146146

147147
ansi-regex

0 commit comments

Comments
 (0)