Skip to content

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

test(i18n): assert interpolated labels fit their containers

Toyo Saga3a9580ffadc1
diff --git a/app/test/e2e/specs/japanese-locale.browser.ts b/app/test/e2e/specs/japanese-locale.browser.ts
index 555fe98ade..b73bbe41e1 100644
--- a/app/test/e2e/specs/japanese-locale.browser.ts
+++ b/app/test/e2e/specs/japanese-locale.browser.ts
@@ -131,11 +131,15 @@ test.describe('Japanese UI locale', () => {
await expect(count).toBeVisible();
await count.scrollIntoViewIfNeeded();
await expect(count).toBeInViewport();
+ expect(await count.evaluate(element => element.scrollWidth <= element.clientWidth)).toBe(true);
await page.goto('/#/connections?tab=usage#tokens');
const attribution = page.getByText('Qwen3.8-Flash-Next のコストで計算', { exact: true });
await expect(attribution).toBeVisible();
await attribution.scrollIntoViewIfNeeded();
await expect(attribution).toBeInViewport();
+ expect(await attribution.evaluate(element => element.scrollWidth <= element.clientWidth)).toBe(
+ true
+ );
await expect(page.getByText('3 回の圧縮で', { exact: true })).toBeVisible();
});
});