Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Check that the settings dialog keeps its size on Usage

Fei2411fcd2117914f3
diff --git a/ds-bot/dev/ui-shots.mjs b/ds-bot/dev/ui-shots.mjs
index af9a253c..961a0049 100644
--- a/ds-bot/dev/ui-shots.mjs
+++ b/ds-bot/dev/ui-shots.mjs
@@ -235,9 +235,11 @@ await page.locator('.bt-settings-scroll button.bt-set-row').first().click()
check(await page.locator('.bt-settings .bt-bs .bt-seg').waitFor({ timeout: 5_000 }).then(() => true, () => false), 'a group chat opens its own settings')
await page.waitForTimeout(600)
await shot('group-settings')
+const settingsBox = await page.locator('.bt-settings').boundingBox()
await page.locator('.bt-settings-nav .bt-settings-item', { hasText: /^Usage$/ }).click()
-check(await page.locator('.bt-settings[data-wide]').waitFor({ timeout: 5_000 }).then(() => true, () => false), 'the settings dialog widens for Usage')
check(await page.locator('.bt-us-stats').waitFor({ timeout: 15_000 }).then(() => true, () => false), 'the Usage page shows the totals')
+const usageBox = await page.locator('.bt-settings').boundingBox()
+check(Boolean(settingsBox && usageBox) && Math.abs(usageBox.width - settingsBox.width) < 1 && Math.abs(usageBox.height - settingsBox.height) < 1, 'the settings dialog keeps its size on Usage')
check(await page.locator('.bt-us-row[data-kind="bot"]').first().waitFor({ timeout: 15_000 }).then(() => true, () => false), 'the Usage page ranks the Bots that used tokens')
check(await page.locator('.bt-us-row[data-kind="model"]').first().waitFor({ timeout: 5_000 }).then(() => true, () => false), 'the Usage page ranks the models')
await page.waitForTimeout(1200)