Skip to content

Commit b2d183d

Browse files
authored
fix(report): reduce playwright report size (#396)
1 parent f05322f commit b2d183d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

packages/web-integration/playwright.config.ts

+5
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ export default defineConfig({
5858
],
5959
reporter: [
6060
[process.env.CI ? 'line' : 'list'],
61+
// [
62+
// 'json',
63+
// { outputFile: 'midscene_run/playwright-report/test-results.json' },
64+
// ],
65+
// ['html', { outputFolder: 'midscene_run/playwright-report' }],
6166
['./src/playwright/reporter/index.ts'],
6267
],
6368
});

packages/web-integration/src/playwright/reporter/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ class MidsceneReporter implements Reporter {
5151
},
5252
});
5353

54+
test.annotations = test.annotations.filter(
55+
(annotation) => annotation.type !== 'MIDSCENE_DUMP_ANNOTATION',
56+
);
57+
5458
updateReport();
5559
}
5660

0 commit comments

Comments
 (0)