Skip to content

Commit 014aa60

Browse files
committed
Tighten markdown settle predicate so CI waits for body paint
Heading-only frames could pass the prior no-marker check while the bold body line had not painted yet, causing intermittent CL-5715 flakes.
1 parent 80170c1 commit 014aa60

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/tui/markdown-rows.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,14 @@ describe("markdown transcript rows", () => {
104104

105105
const frame = await settle(
106106
h,
107-
(f) => f.includes("What the site is") && !f.includes("###") && !f.includes("**Hardware:**"),
107+
// Require the bold body line too: heading-only frames can pass a
108+
// "no ### / no **Hardware:**" check while the body has not painted yet
109+
// (CI flake CL-5715).
110+
(f) =>
111+
f.includes("What the site is") &&
112+
f.includes("Hardware:") &&
113+
!f.includes("###") &&
114+
!f.includes("**Hardware:**"),
108115
)
109116
expect(frame).toContain("What the site is")
110117
expect(frame).not.toContain("###")

0 commit comments

Comments
 (0)