import type { Page, Locator } from '@playwright/test'; export class ExportPage { readonly page: Page; readonly notAvailableBanner: Locator; readonly zipDownloadButton: Locator; readonly htmlDownloadButton: Locator; readonly htmlGuideModalContinue: Locator; constructor(page: Page) { this.page = page; this.notAvailableBanner = page.locator('[data-testid="export-not-available"]'); this.zipDownloadButton = page.getByRole('button', { name: /zip.*herunter|herunter.*zip/i }).first(); this.htmlDownloadButton = page.getByRole('button', { name: /html.*herunter|herunter.*html/i }).first(); this.htmlGuideModalContinue = page.getByRole('button', { name: /^herunterladen$/i }); } async goto() { await this.page.goto('/export'); } }