feat: improve tournament workflows and prune outdated docs

This commit is contained in:
dahyeon committed 2026-11-10 15:31:19 +09:00
1 parent da7b502936
commit 38a89b5374
53 files changed
+3308 -3276

No files matched your search

+11 -8
View File
@@ -7,16 +7,19 @@ const homePageSource = await readFile(
"utf8",
);
test("keeps past match history focused on the five summary columns", () => {
const colGroup = sourceForFunction("HistoryTableColGroup");
const header = sourceForFunction("HistoryTableHeader");
test("shares the four history columns between records and the loading state", () => {
const columns = sourceForFunction("HistoryTableColumns");
const skeleton = sourceForFunction("HistoryRecordsSkeleton");
const records = sourceForFunction("HistoryRecords");
assert.equal(colGroup.match(/<col(?:\s|\/|>)/g)?.length, 5);
assert.doesNotMatch(header, />결과<\/th>/);
assert.doesNotMatch(homePageSource, /공식 결과/);
assert.doesNotMatch(skeleton, /1팀 승리/);
assert.match(homePageSource, /colSpan=\{5\}/);
assert.equal(columns.match(/<col(?:\s|\/|>)/g)?.length, 4);
assert.deepEqual(
Array.from(columns.matchAll(/<th\b[^>]*>\s*([^<]+?)\s*<\/th>/g), (match) => match[1]),
["일정", "내전", "결과", "참가"],
);
assert.match(skeleton, /<HistoryTableColumns\s*\/>/);
assert.match(records, /<HistoryTableColumns\s*\/>/);
assert.doesNotMatch(skeleton, /<HistoryResult\b/);
});
function sourceForFunction(name: string): string {