import { expect } from '@playwright/test'; import { createBdd } from 'playwright-bdd'; const { Given: given, When: when, Then: then } = createBdd(); then('the available IDs count should be {int}', async ({ page }, count: number) => { const countEl = page.locator('.text-blue-400.text-2xl'); await expect(countEl).toHaveText(String(count)); }); then('the print button should be disabled', async ({ page }) => { await expect(page.getByRole('button', { name: /Download PDF/ })).toBeDisabled(); });