0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
posthog/playwright/fixtures/storybook.ts

17 lines
402 B
TypeScript
Raw Normal View History

import { test as base } from '@playwright/test'
import { StorybookStoryPage } from '../pages/storybook'
type StorybookFixtures = {
storyPage: StorybookStoryPage
}
export const test = base.extend<StorybookFixtures>({
storyPage: async ({ page }, use) => {
const storyPage = new StorybookStoryPage(page)
await use(storyPage)
},
})
export { expect } from '@playwright/test'