Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 574ea5f

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

3 files changed

+6-6Lines changed: 6 additions & 6 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: examples/app-bun/test/browser.e2e.spec.ts
+2-2Lines 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
})
Collapse file

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

Copy file name to clipboardExpand all lines: examples/app-jest/test/browser.e2e.spec.ts
+2-2Lines 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
})
Collapse file

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

Copy file name to clipboardExpand all lines: examples/app-vitest/test/browser.e2e.spec.ts
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.