Cypress: Fix mobile/impress/apply_font_text_spec.js

Failed because mobile wizard opened too soon.
Fix: Wait for selection before opening mobile wizard.

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ie29e3f5be17bafa2dd09b3f8f5b6415104456cb7
pull/8916/head
Neil Guertin 2024-04-26 21:08:53 -04:00 committed by Neil Guertin
parent c44bcb2980
commit 190a3acf78
1 changed files with 6 additions and 0 deletions

View File

@ -139,12 +139,18 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Apply font on selected text
cy.cGet('#CharBackColor .color-sample-selected')
.should('have.attr', 'style', 'background-color: rgb(204, 0, 0);');
helper.setDummyClipboardForCopy();
triggerNewSVG();
// TODO: highlight color is not in the SVG
// At least check the mobile wizard's state
impressHelper.selectTextOfShape();
// Wait for selection before opening mobile wizard
helper.copy();
helper.expectTextForClipboard('X');
cy.wait(200);
mobileHelper.openTextPropertiesPanel();
cy.cGet('#CharBackColor .color-sample-selected')