nextcloud/tests/playwright/support/sections/FilesSidebarPage.ts
Ferdinand Thiessen a21c2fddd6
test(files): migrate more tests from Cypress to Playwright
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-06-10 09:49:04 +02:00

18 lines
428 B
TypeScript

/*
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import type { Locator, Page } from '@playwright/test'
export class FilesSidebarPage {
constructor(private readonly page: Page) {}
sidebar(): Locator {
return this.page.locator('#app-sidebar-vue')
}
heading(name: string): Locator {
return this.sidebar().getByRole('heading', { name })
}
}