Skip to content

test: fix css-codesplit dynamic import flaky failure - #23871

Merged
sapphi-red merged 1 commit into
mainfrom
test/fix-css-codesplit-dynamic-import-flaky-failure
Oct 22, 2026
Merged

sapphi-red merged 1 commit into
mainfrom
test/fix-css-codesplit-dynamic-import-flaky-failure

Conversation

@sapphi-red

@sapphi-red sapphi-red commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

These are set after the dynamic imports so it should be using expect.poll.

import('./inline.css?inline').then((css) => {
document.querySelector('.dynamic-inline').textContent = css.default
})
import('./mod.module.css').then((css) => {
document.querySelector('.dynamic-module').textContent = JSON.stringify(
css.default,
)
document.querySelector('.mod').classList.add(css.default.mod)
})

Example failures:

@sapphi-red sapphi-red added p1-chore Doesn't change code behavior (priority) test labels Oct 22, 2026
@sapphi-red
sapphi-red merged commit 4ca25e1 into main Oct 22, 2026
41 of 43 checks passed
@sapphi-red
sapphi-red deleted the test/fix-css-codesplit-dynamic-import-flaky-failure branch October 22, 2026 09:30
@musaibiqbal1313-sketch

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p1-chore Doesn't change code behavior (priority) test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants