diff --git a/tests/browser/account.test.js b/tests/browser/account.test.js index 2ea5df70f..d62d97152 100644 --- a/tests/browser/account.test.js +++ b/tests/browser/account.test.js @@ -1645,7 +1645,7 @@ test("post-interview and lobby reports wire same-category comparison into HTML a ); assert.match( functionBody(app, "syncAttemptSelection"), - /downloadingSelectedAttempts \|\| selected === 0/, + /downloadingSelectedAttempts \|\| paginationSourcePending \|\| selected === 0/, ); assert.match(functionBody(app, "downloadSavedReport"), /categoryComparison/); }); diff --git a/tests/browser/download.test.js b/tests/browser/download.test.js index a5092d95e..a25b4ea61 100644 --- a/tests/browser/download.test.js +++ b/tests/browser/download.test.js @@ -32,6 +32,8 @@ for (const [path, name] of [ }, requestTimeoutMs: 10_000, pendingReportDownloads: new Set(), + pendingRowReportDownloads: new Set(), + visibleReportDownloadButtons: new Map(), selectionKey: (attempt) => attempt.id || attempt, loadPageMapWithin: () => new Promise((resolve, reject) => { diff --git a/tests/browser/lobby-render.test.js b/tests/browser/lobby-render.test.js index b5aa58da2..37610018c 100644 --- a/tests/browser/lobby-render.test.js +++ b/tests/browser/lobby-render.test.js @@ -28,6 +28,16 @@ import { installDocument } from "./dom.js"; const markup = read("web/index.html"); const dom = installDocument(markup); +dom.node("attempt-page-size").options = ["5", "10", "20"].map((value) => ({ + value, +})); +// The small DOM stub does not apply an option's HTML `selected` attribute. +const pageSizeMarkup = markup.match( + /]*id="attempt-page-size"[\s\S]*?<\/select>/, +)[0]; +dom.node("attempt-page-size").value = pageSizeMarkup.match( + /