Skip to content

Commit bbb73b2

Browse files
committed
Fix snapshot suffix
1 parent d87a6fc commit bbb73b2

14 files changed

+11
-9
lines changed

packages/e2e-test-utils-playwright/src/test.ts

+11
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ function observeConsoleLogging( message: ConsoleMessage ) {
9999
const test = base.extend<
100100
{
101101
pageUtils: PageUtils;
102+
snapshotSuffix: void;
102103
},
103104
{
104105
requestUtils: RequestUtils;
@@ -136,6 +137,16 @@ const test = base.extend<
136137
},
137138
{ scope: 'worker' },
138139
],
140+
// A work-around automatic fixture to remove the default snapshot suffix.
141+
// See https://github.com/microsoft/playwright/issues/11134
142+
snapshotSuffix: [
143+
async ( {}, use, testInfo ) => {
144+
testInfo.snapshotSuffix = '';
145+
146+
await use();
147+
},
148+
{ auto: true },
149+
],
139150
} );
140151

141152
export { test, expect };

test/e2e/specs/editor/various/copy-cut-paste-whole-blocks.spec.js-snapshots/Copy-cut-paste-of-whole-blocks-should-handle-paste-events-once-2-chromium-darwin.txt

-9
This file was deleted.

0 commit comments

Comments
 (0)