Skip to content

Commit 880bc0d

Browse files
authored
chore: create acc report folder (#11200)
Error is throw if `cypress-log` folder doesn't exist. Ensure the folder is always created.
1 parent 458fba3 commit 880bc0d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/cypress-internal/src/acc_report/index

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
<body>
3939

40-
<h1>Cypress Test Report</h1>
40+
<h1>Cypress Accessibility Test Report</h1>
4141

4242
<div>
4343
<ul id="test-report">

packages/cypress-internal/src/acc_report/task.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ const reset = (testFile: string) => {
6161

6262
const prepare = () => {
6363
const indexTemplate = readFileSync(path.join(__dirname, "index"), { encoding: "utf-8" });
64-
writeFileSync(outputPathIndex, indexTemplate);
65-
6664
saveReportFile([]);
6765

66+
// Add log visualizer page.
67+
writeFileSync(outputPathIndex, indexTemplate);
6868
}
6969

7070
function accTask(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) {

0 commit comments

Comments
 (0)