Fix failing test desktop/writer/top_toolbar_spec.js

Follow up of be235b1386

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Idab5a5bac4ac15aa0e13a2d660271a305fad945a
pull/8989/head
Neil Guertin 2024-05-07 21:25:36 -04:00 committed by Szymon Kłos
parent 3e937ef83f
commit ec83c14f3d
1 changed files with 4 additions and 2 deletions

View File

@ -308,7 +308,8 @@ describe(['tagdesktop'], 'Top toolbar tests.', function() {
cy.cGet('#copy-paste-container p i').should('exist');
//Undo
cy.cGet('#Home-container .unoUndo').should('not.be.disabled').click();
cy.cGet('#Home-container .unoUndo').should('not.have.attr','disabled');
cy.cGet('#Home-container .unoUndo button').click({force: true});
helper.copy();
cy.wait(500); // wait for new clipboard
cy.cGet('#copy-paste-container p i').should('not.exist');
@ -319,7 +320,8 @@ describe(['tagdesktop'], 'Top toolbar tests.', function() {
cy.cGet('[role="tooltip"]').should('not.exist');
//Redo
cy.cGet('#Home-container .unoRedo').should('not.be.disabled').click();
cy.cGet('#Home-container .unoRedo').should('not.have.attr','disabled');
cy.cGet('#Home-container .unoRedo button').click({force: true});
helper.copy();
cy.wait(500); // wait for new clipboard
cy.cGet('#copy-paste-container p i').should('exist');