fix: hide highlight in recorder before toHaveScreenshot command (#20874)

Fixes #20866
This commit is contained in:
Andrey Lushnikov 2023-02-13 13:15:55 -08:00 committed by GitHub
parent 31460f7ad6
commit 3a685ecae4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -695,5 +695,5 @@ class ThrottledFile {
}
function isScreenshotCommand(metadata: CallMetadata) {
return metadata.method.includes('screenshot');
return metadata.method.toLowerCase().includes('screenshot');
}