0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-03-15 00:43:23 +00:00
nextcloud_server/cypress/pages/FilesNavigation.ts
Christopher Ng ad9b07d85e chore(files): Change "filename" to "file name"
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2025-02-04 12:22:16 +01:00

35 lines
777 B
TypeScript

/*!
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/**
* Page object model for the files app navigation
*/
export class FilesNavigationPage {
navigation() {
return cy.findByRole('navigation', { name: 'Files' })
}
searchInput() {
return this.navigation().findByRole('searchbox', { name: /filter file names/i })
}
searchClearButton() {
return this.navigation().findByRole('button', { name: /clear search/i })
}
settingsToggle() {
return this.navigation().findByRole('link', { name: 'Files settings' })
}
views() {
return this.navigation().findByRole('list', { name: 'Views' })
}
quota() {
return this.navigation().find('[data-cy-files-navigation-settings-quota]')
}
}