Skip to content

Commit 6e3939a

Browse files
committed
test(gui): align Codex routing copy expectations
1 parent d52b387 commit 6e3939a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gui/tests/codex-account-auto-switch.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ describe("Codex account auto-switch threshold", () => {
117117
expect(html).toContain('value="95"');
118118
expect(html).toContain('min="1"');
119119
expect(html).toContain('max="100"');
120-
expect(html).toContain('aria-label="Switch threshold, percent"');
120+
expect(html).toContain('aria-label="Usage threshold, percent"');
121121
expect(html).toContain("95% usage or above");
122122
expect(html).toContain("including an already-bound task");
123123
expect(html).toContain('aria-pressed="true"');
@@ -212,7 +212,7 @@ describe("Codex account auto-switch threshold", () => {
212212

213213
test("surfaces load failure without hiding the toggle", () => {
214214
const failed = renderSetting(DEFAULT_AUTO_SWITCH_THRESHOLD, String(DEFAULT_AUTO_SWITCH_THRESHOLD), false, true);
215-
expect(failed).toContain("Automatic switching setting could not be loaded.");
215+
expect(failed).toContain("Usage-based switching setting could not be loaded.");
216216
expect(failed).toContain("Retry");
217217
expect(failed).toContain('aria-pressed="true"');
218218
});

0 commit comments

Comments
 (0)