import { UnitListPage } from '@/manager/modules/unit/views/UnitListPage';
import { test as base } from '@playwright/test';

interface IUnitFixtures {
  unitListPage: UnitListPage;
}

export const test = base.extend<IUnitFixtures>({
  unitListPage: async ({ page }, use) => {
    await page.goto('/units');
    await use(new UnitListPage(page));
  },
});

export { expect } from '@playwright/test';
