Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test: use semantic cpu input selector

Steven Enamakela7f0501403d9
diff --git a/app/src/components/settings/panels/__tests__/SandboxSettingsPanel.validation.test.tsx b/app/src/components/settings/panels/__tests__/SandboxSettingsPanel.validation.test.tsx
index 165c5e4cad..69c5533e42 100644
--- a/app/src/components/settings/panels/__tests__/SandboxSettingsPanel.validation.test.tsx
+++ b/app/src/components/settings/panels/__tests__/SandboxSettingsPanel.validation.test.tsx
@@ -93,7 +93,7 @@ function blurWith(input: HTMLElement, value: string) {
}
const memoryInput = () => screen.getByDisplayValue('512');
-const cpuInput = () => screen.getByDisplayValue('1');
+const cpuInput = () => screen.getByRole('spinbutton', { name: /cpu limit/i });
const imageInput = () => screen.getByDisplayValue('alpine:3.20');
beforeEach(() => {