import { DiscountListPage } from '@/manager/modules/discount/views/DiscountListPage';
import { test as base } from '@playwright/test';

interface IDiscountFixtures {
  discountListPage: DiscountListPage;
}

export const test = base.extend<IDiscountFixtures>({
  discountListPage: async ({ page }, use) => {
    await page.goto('/discounts');
    await use(new DiscountListPage(page));
  },
});

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