File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
cypress_test/integration_tests/common Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -199,13 +199,12 @@ function editTextInShape() {
199
199
function dblclickOnSelectedShape ( ) {
200
200
cy . log ( '>> dblclickOnSelectedShape - start' ) ;
201
201
202
- cy . cGet ( '#test-div-shape-handle-rotation ' )
202
+ cy . cGet ( '#document-container ' )
203
203
. then ( function ( items ) {
204
204
expect ( items ) . to . have . length ( 1 ) ;
205
205
var XPos = ( items [ 0 ] . getBoundingClientRect ( ) . left + items [ 0 ] . getBoundingClientRect ( ) . right ) / 2 ;
206
- var YPos = items [ 0 ] . getBoundingClientRect ( ) . bottom + 50 ;
207
- cy . cGet ( 'body' )
208
- . dblclick ( XPos , YPos ) ;
206
+ var YPos = ( items [ 0 ] . getBoundingClientRect ( ) . top + items [ 0 ] . getBoundingClientRect ( ) . bottom ) / 2 ;
207
+ cy . cGet ( 'body' ) . dblclick ( XPos , YPos ) ;
209
208
} ) ;
210
209
211
210
cy . cGet ( '.leaflet-cursor.blinking-cursor' )
You can’t perform that action at this time.
0 commit comments