From 190a3acf78d775d6141a9bba00c1c4e6e5dea145 Mon Sep 17 00:00:00 2001 From: Neil Guertin Date: Fri, 26 Apr 2024 21:08:53 -0400 Subject: [PATCH] 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 Change-Id: Ie29e3f5be17bafa2dd09b3f8f5b6415104456cb7 --- .../mobile/impress/apply_font_text_spec.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cypress_test/integration_tests/mobile/impress/apply_font_text_spec.js b/cypress_test/integration_tests/mobile/impress/apply_font_text_spec.js index f92ce060f1..7c274a8f1f 100644 --- a/cypress_test/integration_tests/mobile/impress/apply_font_text_spec.js +++ b/cypress_test/integration_tests/mobile/impress/apply_font_text_spec.js @@ -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')