silverwolf-x's picture
download
raw
863 Bytes
import { nextTestSetup } from 'e2e-utils'
import { retry } from 'next-test-utils'
describe.each(['edge', 'nodejs'])(
'dynamic-css-client-navigation react lazy %s',
(runtime) => {
const { next } = nextTestSetup({
files: __dirname,
})
it(`should not remove style when navigating from static imported component to react lazy at runtime ${runtime}`, async () => {
const browser = await next.browser(`/${runtime}`)
await browser.elementByCss(`a[href="/${runtime}/react-lazy"]`).click()
await retry(async () => {
expect(await browser.waitForElementByCss('#red-button').text()).toBe(
'Red Button'
)
const buttonBgColor = await browser
.elementByCss('button')
.getComputedCss('background-color')
expect(buttonBgColor).toBe('rgb(255, 0, 0)')
})
})
}
)

Xet Storage Details

Size:
863 Bytes
·
Xet hash:
dff2ab656c3929866e4caaed6b8f8b646c410b07aa51a1a5c8491dc1d439f5e3

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