Skip to content

Commit 8daab7c

Browse files
committed
fix(e2e): Add e2e prefix to percy snapshot
This change differentiates the snapshots from the QUnit tests, addressing the visual changes caused by the font not loading in QUnit tests (#9052).
1 parent cb34f19 commit 8daab7c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

e2e/fixtures/percy.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ export class PercyPage {
1414
private title(): string {
1515
// Skip the filename
1616
const paths = this.testInfo.titlePath.slice(1);
17-
return paths.join(' | ');
17+
// Add an "e2e" prefix to differentiate the snapshots from the QUnit tests.
18+
// This address the visual changes caused by the font not loading in QUnit tests (#9052).
19+
return ['e2e'].concat(paths).join(' | ');
1820
}
1921

2022
async snapshot(options?: Parameters<typeof percySnapshot>[2]) {

0 commit comments

Comments
 (0)