Skip to content

Commit

Permalink
Now we hide the scaling and rotating handles while editing shapes.
Browse files Browse the repository at this point in the history
Modify tests accordingly.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I4527ad3696df66d6a624792eaf30c6c44b79936d
  • Loading branch information
gokaysatir authored and eszkadev committed Feb 3, 2025
1 parent b58c81a commit 875c3b0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cypress_test/integration_tests/common/impress_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,12 @@ function editTextInShape() {
function dblclickOnSelectedShape() {
cy.log('>> dblclickOnSelectedShape - start');

cy.cGet('#test-div-shape-handle-rotation')
cy.cGet('#document-container')
.then(function(items) {
expect(items).to.have.length(1);
var XPos = (items[0].getBoundingClientRect().left + items[0].getBoundingClientRect().right) / 2;
var YPos = items[0].getBoundingClientRect().bottom + 50;
cy.cGet('body')
.dblclick(XPos, YPos);
var XPos = (items[0].getBoundingClientRect().left + items[0].getBoundingClientRect().width) / 2;
var YPos = (items[0].getBoundingClientRect().top + items[0].getBoundingClientRect().height) / 2;
cy.cGet('body').dblclick(XPos, YPos);
});

cy.cGet('.leaflet-cursor.blinking-cursor')
Expand Down

0 comments on commit 875c3b0

Please sign in to comment.