mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-21 16:09:52 +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>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
await new Promise(resolve => setTimeout(resolve, 500))
|
await new Promise(resolve => setTimeout(resolve, 100))
|
||||||
</script>
|
</script>
|
||||||
|
@ -39,15 +39,14 @@ describe('suspense multiple nav', () => {
|
|||||||
page.locator('#btn-a').click(),
|
page.locator('#btn-a').click(),
|
||||||
page.locator('#btn-b').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 consoleLogErrors = consoleLogs.filter(i => i.type === 'error')
|
||||||
const consoleLogWarnings = consoleLogs.filter(i => i.type === 'warning')
|
const consoleLogWarnings = consoleLogs.filter(i => i.type === 'warning')
|
||||||
expect(pageErrors).toEqual([])
|
expect.soft(pageErrors).toEqual([])
|
||||||
expect(consoleLogErrors).toEqual([])
|
expect.soft(consoleLogErrors).toEqual([])
|
||||||
expect(consoleLogWarnings).toEqual([])
|
expect.soft(consoleLogWarnings).toEqual([])
|
||||||
|
|
||||||
expect(await page.locator('#content').textContent()).toContain('Hello b')
|
|
||||||
|
|
||||||
await page.close()
|
await page.close()
|
||||||
}, 60_000)
|
}, 60_000)
|
||||||
|
Loading…
Reference in New Issue
Block a user