import { expect } from '@playwright/test'; import { createBdd } from 'playwright-bdd'; const { Given: given, When: when, Then: then } = createBdd(); // E2E scan injection is handled by common steps and Scanner component hook // These are additional scan-flow-specific steps then('the scanned item card should be visible', async ({ page }) => { const card = page.locator('button.bg-slate-800').first(); await expect(card).toBeVisible(); }); then('the action buttons should be visible', async ({ page }) => { const buttons = page.getByRole('button'); await expect(buttons.first()).toBeVisible(); });