Skip to content

Commit 90278ba

Browse files
committed
test: simplify test
1 parent 8ec7782 commit 90278ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/app-cucumber/test/acceptance/features/playwright/step-definitions/playwright.given-steps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Given(/^the user goes on the home page$/u, { timeout: 10000 }, async function ()
66
// Browser test
77
const page = await createPage('/')
88
// nuxt v3 or nuxt v4 welcome page text
9-
const text = await page.getByRole('heading', { name: /Welcome to Nuxt!|Get started/ }).textContent()
10-
assert.match(text!, /Welcome to Nuxt!|Get started/)
9+
const text = await page.getByRole('heading', { name: 'Get started' }).textContent()
10+
assert.match(text!, /Get started/)
1111
await page.close()
1212

1313
// SSR test

0 commit comments

Comments
 (0)