import { BookingListPage } from '@/manager/modules/booking/views/BookingListPage';
import { test as base } from '@playwright/test';

interface IBookingFixtures {
  bookingListPage: BookingListPage;
}

export const test = base.extend<IBookingFixtures>({
  bookingListPage: async ({ page }, use) => {
    await page.goto('/bookings');
    await use(new BookingListPage(page));
  },
});

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