From d5388af0ee62af69973fb1d8d871fc8e5b5d7113 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 21 Jul 2026 14:49:22 +0100 Subject: [PATCH] Use capPagination() after form submission too --- .screenshotter/src/screenshotter.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.screenshotter/src/screenshotter.mjs b/.screenshotter/src/screenshotter.mjs index 742af06e61..0494edd5ae 100644 --- a/.screenshotter/src/screenshotter.mjs +++ b/.screenshotter/src/screenshotter.mjs @@ -213,6 +213,12 @@ async function shot(name, opts = {}) { await mkdir(dirname(path), {recursive: true}); const {element, ...playwrightOpts} = opts; await page.waitForLoadState('networkidle').catch(() => {}); + // Cap bootstrap-table pagination on every shot, not just after + // explicit waitForTable() calls. Post-submit redirects and other + // "arrived here without knowing there's a table" flows would + // otherwise render at the user's persisted per-page preference + // (often 20 or 25). Safe no-op on pages without a snipe-table. + await capPagination(); // Capture the current URL path for the frame address bar (relative // path only, so the frame doesn't leak / dumb-look the local .test // hostname). Grabbed at shot time rather than inside frameLocally