mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 09:14:46 +01:00
17 lines
402 B
TypeScript
17 lines
402 B
TypeScript
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'
|