chore: update

This commit is contained in:
Anthony Fu 2023-09-01 16:40:49 +02:00
parent 478a3c781d
commit e053eefad5
2 changed files with 6 additions and 7 deletions

View File

@ -7,5 +7,5 @@
</template>
<script setup lang="ts">
await new Promise(resolve => setTimeout(resolve, 500))
await new Promise(resolve => setTimeout(resolve, 100))
</script>

View File

@ -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)