import { expect } from '@playwright/test'; import { createBdd } from 'playwright-bdd'; const { Given: given, When: when, Then: then } = createBdd(); then('the ID grid should show generated IDs', async ({ page }) => { const idGrid = page.locator('.font-mono.text-xs'); const count = await idGrid.count(); expect(count).toBeGreaterThan(0); }); then('the download button should show the correct count', async ({ page }, count: string) => { await expect(page.getByRole('button', { name: /Download PDF/ })).toContainText(count); });