Skip to content

Commit e5f1b14

Browse files
chaxusclaude
andcommitted
test(v9): disambiguate corpus test titles for duplicate filenames
The same deck exists in two corpus folders and Playwright rejects duplicate test titles, aborting the whole matrix run. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 1035174 commit e5f1b14

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎test/e2e/corpus.spec.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,13 @@ test.describe('real-document corpus matrix', () => {
100100
}
101101
});
102102

103-
for (const filePath of files) {
103+
for (const [index, filePath] of files.entries()) {
104104
const name = basename(filePath);
105105
const ext = extname(filePath).toLowerCase();
106106

107-
test(`corpus: ${name}`, async ({ page }) => {
107+
// Index prefix keeps titles unique when the same filename exists in
108+
// several corpus folders.
109+
test(`corpus #${index}: ${name}`, async ({ page }) => {
108110
const t0 = Date.now();
109111
const row: Row = {
110112
file: filePath,

0 commit comments

Comments
 (0)