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> </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>

View File

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