Skip to content

Commit 574ea5f

Browse files
committed
test: make browser tests forward-compat with v4
1 parent 51b4a4e commit 574ea5f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

examples/app-bun/test/browser.e2e.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ await setup({
1111
describe('browser', () => {
1212
it('runs a test', async () => {
1313
const page = await createPage('/')
14-
const text = await page.getByRole('heading', { name: 'Welcome to Nuxt!' }).textContent()
15-
expect(text).toContain('Welcome to Nuxt!')
14+
const text = await page.getByRole('heading', { name: 'Get started' }).textContent()
15+
expect(text).toContain('Get started')
1616
await page.close()
1717
}, isWindows ? 120000 : 20000)
1818
})

examples/app-jest/test/browser.e2e.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ await setup({
1010
describe('browser', () => {
1111
it('runs a test', async () => {
1212
const page = await createPage('/')
13-
const text = await page.getByRole('heading', { name: 'Welcome to Nuxt!' }).textContent()
14-
expect(text).toContain('Welcome to Nuxt!')
13+
const text = await page.getByRole('heading', { name: 'Get started' }).textContent()
14+
expect(text).toContain('Get started')
1515
await page.close()
1616
}, isWindows ? 120000 : 20000)
1717
})

examples/app-vitest/test/browser.e2e.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ await setup({
1212
describe('browser', () => {
1313
it('runs a test', { timeout: 20000 }, async () => {
1414
const page = await createPage('/')
15-
const text = await page.getByRole('heading', { name: 'Welcome to Nuxt!' }).textContent()
16-
expect(text).toContain('Welcome to Nuxt!')
15+
const text = await page.getByRole('heading', { name: 'Get started' }).textContent()
16+
expect(text).toContain('Get started')
1717
await page.close()
1818
})
1919
})

0 commit comments

Comments
 (0)