Skip to content

feat: expose goto() fixture with hydration features#781

Merged
danielroe merged 1 commit intonuxt:feat/playwright-runnerfrom
mxschmitt:feat/playwright-runner-goto
Mar 15, 2024
Merged

feat: expose goto() fixture with hydration features#781
danielroe merged 1 commit intonuxt:feat/playwright-runnerfrom
mxschmitt:feat/playwright-runner-goto

Conversation

@mxschmitt
Copy link
Copy Markdown
Collaborator

No description provided.

@mxschmitt mxschmitt force-pushed the feat/playwright-runner-goto branch from bf4efbd to 574ef20 Compare March 15, 2024 16:30
test('test', async ({ page }) => {
await page.goto('/')
test('test', async ({ page, goto }) => {
await goto('/', { waitUntil: 'hydration' })
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would this behaviour also work with page.goto?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately not, we don't recommend overriding page.goto so I think exposing it as a fixture is a nice middle-line between both sides (overriding class vs. making this extra functionality available).

@danielroe danielroe merged commit ae55031 into nuxt:feat/playwright-runner Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants