From 5f6403b7bcae7413c2a0f1e486592a8816ad63e1 Mon Sep 17 00:00:00 2001 From: WMDE-Fisch Date: Tue, 29 Oct 2024 20:23:20 +0100 Subject: [PATCH] [cypress] Focus the surface at least once before testing WT2017 Intended as workaround to make sure that the temp account notice is closed before opening Citoid. But does not hurt in any case I guess. Bug: T378537 Bug: T378417 Bug: T377666 Change-Id: I4c3bf156cbb7306eda924bcebc2fbed3b5864f8a --- tests/cypress/e2e/utils/ve.helper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/cypress/e2e/utils/ve.helper.js b/tests/cypress/e2e/utils/ve.helper.js index ec6f06abb..f8084724f 100644 --- a/tests/cypress/e2e/utils/ve.helper.js +++ b/tests/cypress/e2e/utils/ve.helper.js @@ -23,6 +23,7 @@ export function openVEForSourceEditingReferences( title, usesCitoid ) { if ( usesCitoid ) { waitForVECitoidToLoad(); } + cy.get( '.ve-ce-surface' ).click(); } export function waitForVECiteToLoad() {