Skip to content

Commit 876ae46

Browse files
committed
Now we hide the scaling and rotating handles while editing shapes.
Modify tests accordingly. Signed-off-by: Gökay Şatır <[email protected]> Change-Id: I4527ad3696df66d6a624792eaf30c6c44b79936d
1 parent a4e2eb3 commit 876ae46

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cypress_test/integration_tests/common/impress_helper.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,12 @@ function editTextInShape() {
199199
function dblclickOnSelectedShape() {
200200
cy.log('>> dblclickOnSelectedShape - start');
201201

202-
cy.cGet('#test-div-shape-handle-rotation')
202+
cy.cGet('#document-container')
203203
.then(function(items) {
204204
expect(items).to.have.length(1);
205205
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);
209208
});
210209

211210
cy.cGet('.leaflet-cursor.blinking-cursor')

0 commit comments

Comments
 (0)