silverwolf-x's picture
download
raw
904 Bytes
import { nextTestSetup } from 'e2e-utils'
import { retry, waitFor } from 'next-test-utils'
describe('duplicate-runtime-error', () => {
const { next } = nextTestSetup({
files: __dirname,
})
it('should not rerender the overlay for the same runtime error', async () => {
const browser = await next.browser('/')
const badge = await browser.elementByCss('[data-next-badge]')
// Wait until the badge is showing "errored"
await retry(async () => {
const errorProp = await badge.getAttribute('data-error')
expect(errorProp).toBe('true')
})
// Still present the same value after a while without re-rendersw.
// Should always display the badge, should not re-render by hiding it again
for (let i = 0; i < 40; i++) {
const errorProp = await badge.getAttribute('data-error')
expect(errorProp).toBe('true')
await waitFor(50)
}
})
})

Xet Storage Details

Size:
904 Bytes
·
Xet hash:
f2fc82ed65775a86ecb2b619748196afcfbfb7bf59c60bfdfa065f0430439d5d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.