From de00e84bd9d3675a34d5de1518856540ea557be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6kay=20=C5=9Eat=C4=B1r?= Date: Wed, 29 Jan 2025 12:44:45 +0300 Subject: [PATCH] Now we hide the scaling and rotating handles while editing shapes. Modify tests accordingly. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gökay Şatır Change-Id: I4527ad3696df66d6a624792eaf30c6c44b79936d --- cypress_test/integration_tests/common/impress_helper.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cypress_test/integration_tests/common/impress_helper.js b/cypress_test/integration_tests/common/impress_helper.js index 65ac1b8876d08..890129539dc94 100644 --- a/cypress_test/integration_tests/common/impress_helper.js +++ b/cypress_test/integration_tests/common/impress_helper.js @@ -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')