Fix playwright tests (#33592)
* Fix playwright tests The screenshot reporter was using an import that no longer works as of playwright 1.60. Inline the function instead as it doesn't seem to be importable. * Our custom expect was importing itself? How did that ever work? * Nope, that doesn't seem to help and also it was aiming the in in playwright common which should be the 2nd level of extension * Provide non-overridden version of the same function as per comment
This commit is contained in:
@@ -187,7 +187,7 @@ export const expect = baseExpect.extend<Expectations>({
|
||||
css += options.css;
|
||||
}
|
||||
|
||||
await baseExpect(receiver).toMatchScreenshot(name, {
|
||||
await baseExpect(receiver).toMatchScreenshotDontOverride(name, {
|
||||
...options,
|
||||
css,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user