test(web): align Shell header control assertions with touch targets
Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
parent
d8b2d6428e
commit
5d35ac7598
@ -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", () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user