1
0

FilesNavigation.ts 776 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*!
  2. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: AGPL-3.0-or-later
  4. */
  5. /**
  6. * Page object model for the files app navigation
  7. */
  8. export class FilesNavigationPage {
  9. navigation() {
  10. return cy.findByRole('navigation', { name: 'Files' })
  11. }
  12. searchInput() {
  13. return this.navigation().findByRole('searchbox', { name: /filter filenames/i })
  14. }
  15. searchClearButton() {
  16. return this.navigation().findByRole('button', { name: /clear search/i })
  17. }
  18. settingsToggle() {
  19. return this.navigation().findByRole('link', { name: 'Files settings' })
  20. }
  21. views() {
  22. return this.navigation().findByRole('list', { name: 'Views' })
  23. }
  24. quota() {
  25. return this.navigation().find('[data-cy-files-navigation-settings-quota]')
  26. }
  27. }