Skip to content

Commit 7690a5d

Browse files
committed
refactor(visual-regressions): add info on how to open report
1 parent 8f477aa commit 7690a5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/scripts/testing/e2e-script.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
isCancel,
1313
cancel,
1414
text,
15+
log,
1516
} from '@clack/prompts';
1617
import { exec } from 'child_process';
1718
import fs from 'node:fs';
@@ -218,6 +219,9 @@ async function main() {
218219
await execAsync('npx playwright show-report').catch(() => {
219220
console.error('Error: Failed to open the Playwright report or user closed the report');
220221
});
222+
} else {
223+
// Inform the user that the Playwright report can be opened by running the following command.
224+
log.info('You can open the Playwright report by running the following command: npx playwright show-report');
221225
}
222226

223227
outro("You're all set!");

0 commit comments

Comments
 (0)