import { test as base, expect } from '@playwright/test'; import { resetAll } from '../src/helpers/reset'; /** * Shared fixture: resets the demo rows the suite touches before every test, so * tests are self-contained and execution order never matters (spec §3). * * Multi-user tests use the built-in `browser` fixture to create isolated * `BrowserContext`s (one per user) so real-time behaviour is observed naturally * (spec §2, §40). */ type Fixtures = { /** Auto: reset state before the test. */ reset: void; }; export const test = base.extend({ reset: [ async ({}, use) => { resetAll(); await use(); }, { auto: true }, ], }); export { expect };