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: Ie29e3f5be17bafa2dd09b3f8f5b6415104456cb7pull/8916/head
parent
c44bcb2980
commit
190a3acf78
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue