Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(e2e): strengthen the resize round-trip assertion after a mutation exposed it\n\n'resizing back to full width restores the layout' survived a fault injection\nthat failed the four per-viewport tests. Forcing the content surface to a fixed\nw-[1600px] inside a 1280px window broke tests 1-4 on\n\n expect(box.x + box.width).toBeLessThanOrEqual(width + 1)\n Expected: <= 1281 Received: 1824\n\nand left this one green, because it carried only a `>` width bound (1600\nsatisfies `> 512`) and the shared documentOverflowsHorizontally probe.\n\nThat probe cannot fail in this layout. The shell clips at a parent, so\ndocumentElement.scrollWidth never grows -- with a 1600px child inside a 1280px\nwindow it still reported false. So the test had nothing left that could fail.\n\nGive it the same right-edge containment check the per-viewport cases use. The\noverflow probe stays: it is honest about what it checks and would catch a\ndocument-level overflow if the clipping parent ever changed. It is simply no\nlonger the only thing between this test and vacuity.\n\nRe-proven: with the same fault injected, this test now fails.\n

M3gA-Mind0d7233d33b6c
diff --git a/app/test/playwright/specs/app-shell-responsive.spec.ts b/app/test/playwright/specs/app-shell-responsive.spec.ts
index adaac8cb09..a338fd0e80 100644
--- a/app/test/playwright/specs/app-shell-responsive.spec.ts
+++ b/app/test/playwright/specs/app-shell-responsive.spec.ts
@@ -117,6 +117,13 @@ test.describe('App shell — narrow viewports', () => {
const box = await content(page).boundingBox();
expect(box).not.toBeNull();
expect(box!.width).toBeGreaterThan(1280 * 0.4);
+ // Same right-edge containment the per-viewport cases assert. Added after a
+ // mutation exposed the gap: forcing the content surface to a fixed 1600px
+ // failed tests 1-4 on exactly this line and left THIS test green, because
+ // it only checked the width and the document-overflow probe. The width
+ // check passes at 1600 (it is a `>` bound) and the overflow probe never
+ // fires, so without this line the test had nothing left that could fail.
+ expect(box!.x + box!.width).toBeLessThanOrEqual(1280 + 1);
expect(await documentOverflowsHorizontally(page)).toBe(false);
});
});