Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
export default {
name: 'model-speed',
entry: './model-speed-fixture.tsx',
viewport: { width: 360, height: 500 },
real: 'ModelConfigFlyout, SpeedIcon, speed menu, themes and translations',
notCovered: 'Account entitlement, live model requests, database persistence and native mobile controls',
cases: {
default: { about: 'GPT-6 Astra: catalog reasoning levels and Ultrafast speed' },
sol: { about: 'GPT-6.1 Sol: catalog reasoning levels and Ultrafast speed' },
},
async check(page, ui) {
const button = page.getByRole('button', { name: await ui.t('newChat.modelSelector.speed.label'), exact: true });
await button.click();
await page.getByRole('menuitemradio', { name: await ui.t('newChat.modelSelector.speed.ultrafast'), exact: true }).waitFor();
await ui.capture('speed-menu');
await page.getByRole('menuitemradio', { name: await ui.t('newChat.modelSelector.speed.standard'), exact: true }).click();
if (await button.getAttribute('title') !== await ui.t('newChat.modelSelector.speed.standard')) throw new Error('Standard selection was lost');
await button.click();
await page.getByRole('menuitemradio', { name: await ui.t('newChat.modelSelector.speed.fast'), exact: true }).click();
if (await button.getAttribute('title') !== await ui.t('newChat.modelSelector.speed.fast')) throw new Error('Fast selection was lost');
await button.click();
await page.getByRole('menuitemradio', { name: await ui.t('newChat.modelSelector.speed.ultrafast'), exact: true }).click();
if (await button.getAttribute('title') !== await ui.t('newChat.modelSelector.speed.ultrafast')) throw new Error('Ultrafast selection was lost');
const slider = page.getByRole('slider');
await slider.focus();
await slider.press('End');
if (await slider.getAttribute('aria-valuetext') !== 'Ultra') throw new Error('Catalog Ultra reasoning level was lost');
await page.mouse.click(8, 8);
await slider.hover();
await ui.capture('ultra-reasoning');
},
};