@devries-cameron20 / t3code-1 / commits / e402c94034
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

test(web): source control writing settings test waits for the reset button (#30372)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Nov 5, 2026 at 12:21 UTC e402c94034f65e66c0f888781531667cb436b350
1 file changed +3
apps/web/src/components/settings/SourceControlWritingSettings.browser.test.tsx
+3
@@ -100,6 +100,9 @@ describe("mixed source control instructions", () => {
100 }));
101
102 await userEvent.click(page.getByRole("button", { name: "Advanced" }));
103 + // Mid-open, Playwright scrolls the clipped panel to reach the button, then the growing panel
104 + // shifts it between press and release and the click misses. Wait until the panel shows it.
105 + await expect.element(resetButton("change request templates")).toBeInViewport({ ratio: 1 });
106 await userEvent.click(resetButton("change request templates"));
107
108 expect(state.updateSettings).toHaveBeenCalledTimes(1);