test(admin): open Page options after the saved default is read

Drops the leftover LoraManager section comment above the Page options save.
This commit is contained in:
Vito Sansevero
2026-10-27 19:09:21 -07:00
parent 9909bc5faa
commit 97e8b9b680
2 changed files with 2 additions and 2 deletions
@@ -188,6 +188,8 @@ test('Page options keeps the page-only settings admin', async ({ page, request }
const after = (await (await request.get('/prompt_manager/settings')).json()).settings;
expect(after).toEqual({ ...before, infinite_scroll: true });
await page.reload();
// The dialog shows the saved default once the page has read it (the header follows it first).
await expect(page.locator('#infiniteScrollSession')).toBeChecked();
await page.locator('#pageOptionsBtn').click();
await expect(page.locator('#infiniteScrollDefault')).toBeChecked();
});
-2
View File
@@ -973,8 +973,6 @@
this.showModal("settingsModal");
}
// ── LoraManager integration ──────────────────────────────
/** Saves Page options: only `infinite_scroll`, so a stale page never overwrites what System saved (#330 S13-9). */
async saveSettings() {
const infiniteScroll = document.getElementById("infiniteScrollDefault").checked;