File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ declare global {
16
16
imagesDir ?: string ;
17
17
imagesPath ?: string ;
18
18
maxDiffThreshold ?: number ;
19
+ forceDeviceScaleFactor ?: boolean ;
19
20
title ?: string ;
20
21
matchAgainstPath ?: string ;
21
22
// IDEA: to be implemented if support for files NOT from filesystem needed
@@ -77,6 +78,7 @@ export const getConfig = (options: Cypress.MatchImageOptions) => {
77
78
78
79
return {
79
80
scaleFactor :
81
+ options . forceDeviceScaleFactor === false ||
80
82
Cypress . env ( "pluginVisualRegressionForceDeviceScaleFactor" ) === false
81
83
? 1
82
84
: 1 / window . devicePixelRatio ,
@@ -131,7 +133,9 @@ Cypress.Commands.add(
131
133
} = getConfig ( options ) ;
132
134
133
135
const currentRetryNumber = (
134
- cy as unknown as { state : ( s : string ) => { currentRetry : ( ) => number } }
136
+ cy as unknown as {
137
+ state : ( s : string ) => { currentRetry : ( ) => number } ;
138
+ }
135
139
)
136
140
. state ( "test" )
137
141
. currentRetry ( ) ;
You can’t perform that action at this time.
0 commit comments