File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
examples/app-cucumber/test/acceptance/features/playwright/step-definitions Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ import assert from 'node:assert'
22import { Given } from '@cucumber/cucumber'
33import { $fetch , createPage } from '@nuxt/test-utils/e2e'
44
5- Given ( / ^ t h e u s e r g o e s o n t h e h o m e p a g e $ / u, async function ( ) : Promise < void > {
5+ Given ( / ^ t h e u s e r g o e s o n t h e h o m e p a g e $ / u, { timeout : 10000 } , async function ( ) : Promise < void > {
66 // Browser test
77 const page = await createPage ( '/' )
8- const text = await page . getByRole ( 'heading' , { name : 'Welcome to Nuxt!' } ) . textContent ( )
9- assert . match ( text ! , / W e l c o m e t o N u x t ! / )
8+ // nuxt v3 or nuxt v4 welcome page text
9+ const text = await page . getByRole ( 'heading' , { name : / W e l c o m e t o N u x t ! | G e t s t a r t e d / } ) . textContent ( )
10+ assert . match ( text ! , / W e l c o m e t o N u x t ! | G e t s t a r t e d / )
1011 await page . close ( )
1112
1213 // SSR test
You can’t perform that action at this time.
0 commit comments