Skip to content

Commit

Permalink
cypress: make impress/undo_redo_spec.js more stable
Browse files Browse the repository at this point in the history
it requires real fix, possibly saving causes cursor to
dissapear due to some focus change...

Signed-off-by: Szymon Kłos <[email protected]>
Change-Id: I3fafe46102ac7ae40728cbd123d93595c2175b8b
  • Loading branch information
eszkadev committed Mar 7, 2025
1 parent 67311f8 commit 6ea1ad0
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global describe it beforeEach require */
/* global describe it beforeEach require cy */

var helper = require('../../common/helper');
var impressHelper = require('../../common/impress_helper');
Expand All @@ -7,16 +7,24 @@ var repairHelper = require('../../common/repair_document_helper');

describe(['tagdesktop'], 'Editing Operations', function() {

function skipMessage() {
// FIXME: receiveMessage: {"MessageId":"Doc_ModifiedStatus","SendTime":1741357902023,"Values":{"Modified":true}}
// FIXME: that message seems to close blinking cursor
cy.wait(500);
}

beforeEach(function() {
helper.setupAndLoadDocument('impress/undo_redo.odp');
desktopHelper.switchUIToCompact();
desktopHelper.selectZoomLevel('30', false);
impressHelper.selectTextShapeInTheCenter();
skipMessage();
impressHelper.dblclickOnSelectedShape();
});

function undo() {
helper.typeIntoDocument('Hello World');
skipMessage();
impressHelper.dblclickOnSelectedShape();
helper.typeIntoDocument('{ctrl}z');
impressHelper.dblclickOnSelectedShape();
Expand Down

0 comments on commit 6ea1ad0

Please sign in to comment.