Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/browser/account.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/);
});
Expand Down
2 changes: 2 additions & 0 deletions tests/browser/download.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
11 changes: 11 additions & 0 deletions tests/browser/lobby-render.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
/<select\b[^>]*id="attempt-page-size"[\s\S]*?<\/select>/,
)[0];
dom.node("attempt-page-size").value = pageSizeMarkup.match(
/<option value="([^"]+)" selected>/,
)[1];

// Site data blocked, said here rather than left to the runtime: from Node 25
// `sessionStorage` is a working store by default and `localStorage` is one
Expand Down Expand Up @@ -68,6 +78,7 @@ const UNIDENTIFIED = {
"login-link": "Retry account check",
"progress-problem": "all",
"progress-mode": "all",
"attempt-page-size": "10",
start: "Start interview",
"progress-summary":
"Could not load account progress. Retry the account check.",
Expand Down
Loading
Loading