From 4f47df39cc82ea83cd4b0771937007a930893d4c Mon Sep 17 00:00:00 2001 From: Lauri Eskola <lauri.eskola@acquia.com> Date: Mon, 20 Nov 2023 11:08:21 +0200 Subject: [PATCH] Issue #3402604 by alexpott, larowlan, catch, Spokje: SettingsTrayBlockFormTest::testBlocks() fails locally 100% of the time and lots of times on Gitlab CI --- .../tests/src/FunctionalJavascript/SettingsTrayTestBase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php b/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php index 2bb11a77900a..5d3ca1c368f4 100644 --- a/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php +++ b/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php @@ -47,6 +47,10 @@ protected function openBlockForm($block_selector, $contextual_link_container = ' // When page first loads Edit Mode is not triggered until first contextual // link is added. $this->assertNotEmpty($this->assertSession()->waitForElementVisible('css', '.dialog-off-canvas-main-canvas.js-settings-tray-edit-mode')); + // @todo https://www.drupal.org/project/drupal/issues/3317520 Work why the + // sleep is necessary in. + usleep(100000); + $block = $this->getSession()->getPage()->find('css', $block_selector); $block->mouseOver(); $block->click(); -- GitLab