import { test as base } from '@playwright/test'; import { NumberInput, PopupContent } from '@/pages/components'; type MyFixture = { numberInput: NumberInput; popupContent: PopupContent; }; export const test = base.extend({ numberInput: async ({ page }, use) => { const numberInput = new NumberInput(page); await use(numberInput); }, popupContent: async ({ page }, use) => { const popupContent = new PopupContent(page); await use(popupContent); }, });