@@ -7,19 +7,19 @@ describe("cy.realMouseDown and cy.realMouseUp", () => {
7
7
cy . get ( ".action-btn" ) . should (
8
8
"have.css" ,
9
9
"background-color" ,
10
- "rgb(217, 83, 79)"
10
+ "rgb(217, 83, 79)" ,
11
11
) ;
12
12
cy . get ( ".action-btn" ) . realMouseDown ( ) ;
13
13
cy . get ( ".action-btn" ) . should (
14
14
"have.css" ,
15
15
"background-color" ,
16
- "rgb(172, 41, 37)"
16
+ "rgb(172, 41, 37)" ,
17
17
) ;
18
18
cy . get ( ".action-btn" ) . realMouseUp ( ) ; // will go in hover state
19
19
cy . get ( ".action-btn" ) . should (
20
20
"have.css" ,
21
21
"background-color" ,
22
- "rgb(201, 48, 44)"
22
+ "rgb(201, 48, 44)" ,
23
23
) ;
24
24
} ) ;
25
25
@@ -123,10 +123,10 @@ describe("cy.realMouseDown and cy.realMouseUp", () => {
123
123
const screenCenter = screenTop + ( screenBottom - screenTop ) / 2 ;
124
124
125
125
expect ( $elTop ) . to . equal (
126
- Math . floor ( screenCenter ) - $canvas . outerHeight ( ) / 2
126
+ Math . floor ( screenCenter ) - $canvas . outerHeight ( ) / 2 ,
127
127
) ;
128
128
expect ( $elBottom ) . to . equal (
129
- Math . floor ( screenCenter ) + $canvas . outerHeight ( ) / 2
129
+ Math . floor ( screenCenter ) + $canvas . outerHeight ( ) / 2 ,
130
130
) ;
131
131
} ) ;
132
132
} ) ;
@@ -204,10 +204,10 @@ describe("cy.realMouseDown and cy.realMouseUp", () => {
204
204
const screenCenter = screenTop + ( screenBottom - screenTop ) / 2 ;
205
205
206
206
expect ( $elTop ) . to . equal (
207
- Math . floor ( screenCenter ) - $canvas . outerHeight ( ) / 2
207
+ Math . floor ( screenCenter ) - $canvas . outerHeight ( ) / 2 ,
208
208
) ;
209
209
expect ( $elBottom ) . to . equal (
210
- Math . floor ( screenCenter ) + $canvas . outerHeight ( ) / 2
210
+ Math . floor ( screenCenter ) + $canvas . outerHeight ( ) / 2 ,
211
211
) ;
212
212
} ) ;
213
213
} ) ;
@@ -285,7 +285,7 @@ describe(
285
285
. realMouseDown ( )
286
286
. then ( ( $target ) => {
287
287
expect ( $target . css ( "background-color" ) ) . to . equal (
288
- "rgb(0, 0, 255)"
288
+ "rgb(0, 0, 255)" ,
289
289
) ;
290
290
} ) ;
291
291
@@ -294,7 +294,7 @@ describe(
294
294
. realMouseUp ( )
295
295
. then ( ( $target ) => {
296
296
expect ( $target . css ( "background-color" ) ) . to . equal (
297
- "rgb(255, 192, 203)"
297
+ "rgb(255, 192, 203)" ,
298
298
) ;
299
299
} ) ;
300
300
} ) ;
@@ -319,7 +319,7 @@ describe(
319
319
. realMouseDown ( )
320
320
. then ( ( $target ) => {
321
321
expect ( $target . css ( "background-color" ) ) . to . equal (
322
- "rgb(0, 0, 255)"
322
+ "rgb(0, 0, 255)" ,
323
323
) ;
324
324
} ) ;
325
325
@@ -328,12 +328,12 @@ describe(
328
328
. realMouseUp ( )
329
329
. then ( ( $target ) => {
330
330
expect ( $target . css ( "background-color" ) ) . to . equal (
331
- "rgb(255, 192, 203)"
331
+ "rgb(255, 192, 203)" ,
332
332
) ;
333
333
} ) ;
334
334
} ) ;
335
335
} ) ;
336
- }
336
+ } ,
337
337
) ;
338
338
339
339
describe ( "realMouseMove" , ( ) => {
0 commit comments