cypress: fix writer/top_toolbar_spec.js insert special character
In 24.04 we activated dialog which informs about idle dialog. It covers full screen so some tests fail on that. Add {force: true} to ignore that in failing case. Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: I11a183deb91ca35a2ddecc63b62bcb82b8ad1d0fpull/8127/head
parent
090e4587dd
commit
b085d3d214
|
@ -333,8 +333,16 @@ describe(['tagdesktop'], 'Top toolbar tests.', function() {
|
|||
cy.cGet('#Home-container .unospan-CharmapControl').click();
|
||||
cy.cGet('.jsdialog-container.ui-dialog.ui-widget-content.lokdialog_container').should('be.visible');
|
||||
cy.cGet('.ui-dialog-title').should('have.text', 'Special Characters');
|
||||
helper.clickOnIdle('#favchar1');
|
||||
helper.clickOnIdle('.ui-pushbutton.jsdialog.button-primary');
|
||||
|
||||
// FIXME: dialog is not async, shows popup
|
||||
helper.waitUntilIdle('#favchar1');
|
||||
cy.cGet('#favchar1').click({force: true});
|
||||
helper.waitUntilIdle('#SpecialCharactersDialog .ui-pushbutton.jsdialog.button-primary');
|
||||
cy.cGet('#SpecialCharactersDialog .ui-pushbutton.jsdialog.button-primary').click({force: true});
|
||||
// FIXME: CHANGE ABOVE TO:
|
||||
// helper.clickOnIdle('#favchar1');
|
||||
// helper.clickOnIdle('.ui-pushbutton.jsdialog.button-primary');
|
||||
|
||||
//helper.expectTextForClipboard('€');
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue