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:
David Baker
2026-05-22 15:01:08 +01:00
committed by GitHub
parent 63c2bb5aab
commit 7e3d6bf562
2 changed files with 49 additions and 32 deletions
+1 -1
View File
@@ -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,
});