chore: cleanup stray "fonts" mention in the codebase (#14016)

This is a follow-up to #14004
This commit is contained in:
Andrey Lushnikov 2022-05-07 10:16:55 -06:00 committed by GitHub
parent cde34841a0
commit d711734d38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -309,7 +309,6 @@ export async function toHaveScreenshot(
const [page, locator] = pageOrLocator.constructor.name === 'Page' ? [(pageOrLocator as PageEx), undefined] : [(pageOrLocator as Locator).page() as PageEx, pageOrLocator as LocatorEx];
const screenshotOptions = {
animations: config?.animations ?? 'disabled',
fonts: process.env.PLAYWRIGHT_EXPERIMENTAL_FEATURES ? (config?.fonts ?? 'ready') : undefined,
scale: config?.scale ?? 'css',
caret: config?.caret ?? 'hide',
...helper.allOptions,