mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
fix(test): display correct error when golden files mismatch (#3234)
This commit is contained in:
parent
19e8c0fe66
commit
08916781a8
@ -151,7 +151,7 @@ class PlaywrightEnvironment extends NodeEnvironment {
|
||||
snapshotState.matched++;
|
||||
else
|
||||
snapshotState.unmatched++;
|
||||
return {pass, message};
|
||||
return {pass, message: () => message};
|
||||
};
|
||||
this.global.expect.extend({ toBeGolden });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user