fix(ci): keep sidebar contract aligned with rectification chat-panel class

BUG-322 added an is-rectification modifier on SidebarInset, but the sidebar source contract still required a fixed className and failed staging frontend CI.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-08-20 15:51:20 +08:00
co-authored by Cursor
parent a1914686e8
commit 3970410e66
2 changed files with 20 additions and 1 deletions
+4 -1
View File
@@ -172,7 +172,10 @@ test("composes the chat page with the app sidebar shell", () => {
assert.match(page, /const modalOpen = activeAccountDialog !== null \|\| onboardingPaywallOpen/);
assert.match(page, /<SidebarProvider escapeBlocked=\{accountMenuOpen \|\| modalOpen\}>/);
assert.match(page, /<main className="chat-app">[\s\S]*<AppSidebar\b/);
assert.match(page, /<SidebarInset className="chat-panel" inert=\{modalOpen\}>/);
assert.match(
page,
/<SidebarInset className=\{`chat-panel\$\{rectificationSurfaceOpen \? " is-rectification" : ""\}`\} inert=\{modalOpen\}>/,
);
assert.match(page, /<SidebarTrigger placement="inset" \/>/);
});