import { expect } from '@playwright/test'; import { createBdd } from 'playwright-bdd'; const { Given: given, When: when, Then: then } = createBdd(); then('the scan button should be visible', async ({ page }) => { await expect(page.getByRole('button', { name: 'Scan Barcode' })).toBeVisible(); });