Skip to content

Commit c8222e9

Browse files
committed
test(ui): cover discussion cold-open without URL
1 parent aa2d3df commit c8222e9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎ui/src/e2e/chat-sidebar-panel-contract.e2e.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ const actionlessEmptyStateAllowlist = new Set<OfferedSlotLabel>([
4141
"Review",
4242
// Tasks: no background tasks, nothing to inspect.
4343
"Tasks",
44+
// Discussion: no external URL, nothing to open.
45+
"Discussion",
4446
]);
4547

4648
function coldOpenScenario(): ControlUiMockGatewayScenario {
@@ -67,7 +69,6 @@ function coldOpenScenario(): ControlUiMockGatewayScenario {
6769
},
6870
"environments.list": { environments: [] },
6971
"session.discussion.info": {
70-
openUrl: "https://discussion.example/session",
7172
state: "open",
7273
},
7374
"sessions.files.list": {
@@ -282,7 +283,7 @@ suite.define(() => {
282283
it("preserves the production header-action shapes for Side chat and Discussion", async () => {
283284
const context = await suite.newBrowserContext({ serviceWorkers: "block" });
284285
const page = await context.newPage();
285-
const choices = await openColdSidebar(page);
286+
const choices = await openColdSidebar(page, populatedColdOpenScenario());
286287

287288
await choices.filter({ hasText: "Side chat" }).click();
288289
const contentActions = page.locator(".side-panel__action-group--content");

0 commit comments

Comments
 (0)