Merge pull request #55897 from nextcloud/backport/55892/stable32
Some checks failed
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Integration sqlite / changes (push) Waiting to run
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, --tags ~@large files_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, capabilities_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, collaboration_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, comments_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, dav_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, federation_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, file_conversions) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, filesdrop_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, ldap_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, openldap_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, openldap_numerical_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, remoteapi_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, routing_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, setup_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, sharees_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, sharing_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, theming_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, videoverification_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite-summary (push) Blocked by required conditions
Psalm static code analysis / static-code-analysis (push) Has been cancelled
Psalm static code analysis / static-code-analysis-security (push) Has been cancelled
Psalm static code analysis / static-code-analysis-ocp (push) Has been cancelled
Psalm static code analysis / static-code-analysis-ncu (push) Has been cancelled

This commit is contained in:
Maksim Sukharev 2025-10-24 14:42:16 +02:00 committed by GitHub
commit bea0505a95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -148,26 +148,6 @@ describe('files: Filter in files list', { testIsolation: true }, () => {
getRowForFile('folder').should('be.visible')
})
it('keeps name filter when changing the directory', () => {
// All are visible by default
getRowForFile('folder').should('be.visible')
getRowForFile('file.txt').should('be.visible')
// Set up a search query
appNavigation.searchInput()
.type('folder')
// See that only the folder is visible
getRowForFile('folder').should('be.visible')
getRowForFile('file.txt').should('not.exist')
// go to that folder
navigateToFolder('folder')
// see that the folder is also filtered
getRowForFile('text.txt').should('not.exist')
})
it('keeps type filter when changing the directory', () => {
// All are visible by default
getRowForFile('folder').should('be.visible')
@ -250,6 +230,31 @@ describe('files: Filter in files list', { testIsolation: true }, () => {
.and('have.attr', 'aria-checked', 'true')
})
/** Regression test of https://github.com/nextcloud/server/issues/53038 */
it('resets name filter when changing the directory', () => {
// All are visible by default
getRowForFile('folder').should('be.visible')
getRowForFile('file.txt').should('be.visible')
// Set up a search query
appNavigation.searchInput()
.type('folder')
// See that only the folder is visible
getRowForFile('folder').should('be.visible')
getRowForFile('file.txt').should('not.exist')
// go to that folder
navigateToFolder('folder')
// see the search is cleared
appNavigation.searchInput()
.should('have.value', '')
// see that the folder content is showed
getRowForFile('text.txt').should('be.visible')
})
it('resets filter when changing the view', () => {
// All are visible by default
getRowForFile('folder').should('be.visible')