The best way to control Claude Code, Codex and more from any computer or phone
test(web): fix release browser test failures (#22508)
Theo Browne committed
Oct 20, 2026 at 14:47 UTC
5bcc90e1116e396a86cb1802fd26361457c9548a
3 files changed
+16
-4
apps/web/src/components/chat/ComposerBannerStack.browser.test.tsx
+12
-2
@@ -77,14 +77,19 @@ it("keeps only the usage limit attached while an active goal waits in the collap
77
const limit = page.getByText("Usage limit reached", { exact: true });
78
const goal = page.getByText("Goal active", { exact: true });
79
80
- expect(visibleBanners()).toHaveLength(1);
80
+ // A retained pointer can expand the stack as it mounts; start outside the hover target.
81
+ await userEvent.hover(limit);
82
+ await expect.poll(visibleBanners).toHaveLength(1);
83
await expect.element(limit).toBeVisible();
84
await expect.element(goal).not.toBeVisible();
85
expect(container.querySelector('[data-slot="composer-banner-attachment"]')?.textContent).toBe(
86
"Usage limit reached",
87
);
88
87
- await page.getByRole("button", { name: "Show other notices" }).click();
89
+ const peek = page.getByRole("button", { name: "Show other notices" });
90
+ // Hover opens the stack and hides the peek before a pointer click can finish.
91
+ await act(() => peek.element().focus());
92
+ await userEvent.keyboard("{Enter}");
93
await expect.element(goal).toBeVisible();
94
await expect.element(limit).toBeVisible();
95
await expect.poll(visibleBanners).toHaveLength(2);
@@ -93,6 +98,11 @@ it("keeps only the usage limit attached while an active goal waits in the collap
98
await expect.element(goal).not.toBeVisible();
99
await expect.element(limit).toBeVisible();
100
expect(visibleBanners()).toHaveLength(1);
101
+
102
+ await userEvent.hover(peek);
103
+ await expect.element(goal).toBeVisible();
104
+ await expect.element(limit).toBeVisible();
105
+ await expect.poll(visibleBanners).toHaveLength(2);
106
});
107
108
it("reveals the full running command only while its title is clipped", async () => {
apps/web/src/components/diffs/StyledDiffCodeView.browser.test.tsx
+2
-1
@@ -200,7 +200,8 @@ describe("code-view worker lifecycle", () => {
200
};
201
}
202
203
- it("starts on demand, keeps quick reopens warm, and expires the last closed pool", async () => {
203
+ // Two cold starts can each use Pierre's 10-second initialization budget.
204
+ it("starts workers on demand and expires idle pools", { timeout: 30_000 }, async () => {
205
setup();
206
await using workers = await workerEnvironment();
207
const view = await workers.render(renderViews(0));
apps/web/src/components/pullRequest/PullRequestDetailPanel.browser.test.tsx
+2
-1
@@ -398,6 +398,7 @@ describe.each([
398
);
399
});
400
401
+ // The first Code-tab action starts real diff workers as well as driving the panel.
402
it.each([
403
"Resolve conflicts",
404
"Ask a question",
@@ -405,7 +406,7 @@ describe.each([
406
"Fix findings in this thread",
407
"Fix check",
408
"Add to agent",
408
- ])("%s writes to the correct composer", async (action) => {
409
+ ])("%s writes to the correct composer", { timeout: 30_000 }, async (action) => {
410
setup();
411
// Cover both a host without inline comments and an account that cannot write them.
412
currentDetail =