mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 06:31:27 +00:00
chore: update
This commit is contained in:
parent
478a3c781d
commit
e053eefad5
2
test/fixtures/suspense/pages/target.vue
vendored
2
test/fixtures/suspense/pages/target.vue
vendored
@ -7,5 +7,5 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
await new Promise(resolve => setTimeout(resolve, 500))
|
||||
await new Promise(resolve => setTimeout(resolve, 100))
|
||||
</script>
|
||||
|
@ -39,15 +39,14 @@ describe('suspense multiple nav', () => {
|
||||
page.locator('#btn-a').click(),
|
||||
page.locator('#btn-b').click()
|
||||
])
|
||||
await new Promise(resolve => setTimeout(resolve, 200))
|
||||
|
||||
expect.soft(await page.locator('#content').textContent()).toContain('Hello b')
|
||||
|
||||
const consoleLogErrors = consoleLogs.filter(i => i.type === 'error')
|
||||
const consoleLogWarnings = consoleLogs.filter(i => i.type === 'warning')
|
||||
expect(pageErrors).toEqual([])
|
||||
expect(consoleLogErrors).toEqual([])
|
||||
expect(consoleLogWarnings).toEqual([])
|
||||
|
||||
expect(await page.locator('#content').textContent()).toContain('Hello b')
|
||||
expect.soft(pageErrors).toEqual([])
|
||||
expect.soft(consoleLogErrors).toEqual([])
|
||||
expect.soft(consoleLogWarnings).toEqual([])
|
||||
|
||||
await page.close()
|
||||
}, 60_000)
|
||||
|
Loading…
Reference in New Issue
Block a user