test(web): align Shell header control assertions with touch targets

Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-10-07 10:49:08 +00:00
parent d8b2d6428e
commit 5d35ac7598
No known key found for this signature in database

View File

@ -67,12 +67,15 @@ describe("window chrome", () => {
expect(shell).toContain(
'className="app-drag flex items-center justify-between border-b border-sidebar-border',
);
expect(shell).toContain('className="app-no-drag grid size-control-lg');
expect(shell).toContain(
'className="app-no-drag rk-touch-target grid size-control-lg min-h-control-lg min-w-control-lg',
);
expect(shell).toContain('className="app-no-drag flex min-w-0 items-center gap-3"');
// Ensure header sidebar toggle controls stay clickable (not part of drag region)
expect(
toggles.match(/app-no-drag .* size-control-lg .* place-items-center/g)?.length ?? 0,
).toBeGreaterThanOrEqual(2);
toggles.match(/app-no-drag rk-touch-target .* size-control-lg .* place-items-center/g)?.length ??
0,
).toBeGreaterThanOrEqual(1);
});
it("moves window chrome into the conversation header when the bots sidebar is collapsed", () => {