Refine settings IA with tabbed sections

This commit is contained in:
ejclaw
2026-05-04 01:37:56 +09:00
parent b8d8f10332
commit 1576bb67df
6 changed files with 246 additions and 150 deletions

View File

@@ -67,6 +67,7 @@ async function main() {
baseUrl,
async (page, state) => {
await openSettings(page, baseUrl);
await openSettingsSection(page, 'settings-codex');
const goalToggle = page.getByRole('checkbox', { name: /\/goal/ });
await assertVisible(goalToggle);
@@ -236,6 +237,13 @@ async function openSettings(page: Page, baseUrl: string) {
);
}
async function openSettingsSection(page: Page, targetId: string) {
await page
.locator(`.settings-nav button[data-settings-target="${targetId}"]`)
.click();
await assertVisible(page.locator(`#${targetId}`));
}
async function assertVisible(locator: ReturnType<Page['locator']>) {
await locator.waitFor({ state: 'visible', timeout: 5_000 });
}