import { test, expect } from '@playwright/test' import { login } from './helpers' test('page export control is available from a readable page', async ({ page }) => { test.skip(!process.env.E2E_USERNAME || !process.env.E2E_PASSWORD, 'Set E2E_USERNAME and E2E_PASSWORD') expect(await login(page)).toBeTruthy() const exportButton = page.getByRole('button', { name: /export page/i }).first() await expect(exportButton).toBeVisible() await expect(exportButton).toHaveAttribute('title', /export html/i) })