mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 09:16:49 +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'
|