2025-09-21 11:02:31 -07:00
|
|
|
import { expect as baseExpect, test as baseTest } from "@playwright/test";
|
2025-12-15 14:43:39 +00:00
|
|
|
import { ChatPage } from "./pages/chat";
|
2025-04-22 18:55:17 -07:00
|
|
|
|
2025-09-21 11:02:31 -07:00
|
|
|
type Fixtures = {
|
2025-12-15 14:43:39 +00:00
|
|
|
chatPage: ChatPage;
|
2025-09-21 11:02:31 -07:00
|
|
|
};
|
2025-04-22 18:55:17 -07:00
|
|
|
|
2025-12-15 14:43:39 +00:00
|
|
|
export const test = baseTest.extend<Fixtures>({
|
|
|
|
|
chatPage: async ({ page }, use) => {
|
|
|
|
|
const chatPage = new ChatPage(page);
|
|
|
|
|
await use(chatPage);
|
|
|
|
|
},
|
2025-04-22 18:55:17 -07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const expect = baseExpect;
|