Skip to content

Commit 1cde959

Browse files
committed
test(ui): tolerate CI renderer jitter in the typing-shift picker guard
The 2px y-tolerance flaked at 2.41px on CI renderers; the #122809 regression this guards against shifts by a full indicator row (~20px).
1 parent 32e2522 commit 1cde959

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎ui/src/e2e/session-suggestions.e2e.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ suite.define(() => {
127127
throw new Error("Expected the composer layout after remote typing");
128128
}
129129
expect(Math.abs(typingModelBox.x - idleModelBox.x)).toBeLessThanOrEqual(0.5);
130-
expect(Math.abs(typingModelBox.y - idleModelBox.y)).toBeLessThanOrEqual(2);
130+
// The #122809 regression shifted the picker by a full indicator row
131+
// (~20px); allow subpixel/rounding jitter seen on CI renderers (2.41px).
132+
expect(Math.abs(typingModelBox.y - idleModelBox.y)).toBeLessThanOrEqual(4);
131133
expect(typingIndicatorBox.y + typingIndicatorBox.height).toBeLessThanOrEqual(
132134
composerShellBox.y + 1,
133135
);

0 commit comments

Comments
 (0)