From 27194eb024eec7d65295e55aeb8f41c787a2d407 Mon Sep 17 00:00:00 2001 From: nod_ <nod_@598310.no-reply.drupal.org> Date: Thu, 25 Jul 2024 21:15:43 +0200 Subject: [PATCH] Issue #3463569 by alexpott, catch: ToolbarStoredStateTest needs wait after resizing window (cherry picked from commit 3dc298586a379d76cabbfeccba46738e181710c6) --- .../tests/src/FunctionalJavascript/ToolbarStoredStateTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarStoredStateTest.php b/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarStoredStateTest.php index 7e2d7b5e0c3b..b6be1e816e08 100644 --- a/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarStoredStateTest.php +++ b/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarStoredStateTest.php @@ -95,6 +95,7 @@ public function testToolbarStoredState(): void { $this->assertSame($expected, $toolbar_stored_state); $this->getSession()->resizeWindow(600, 600); + $this->getSession()->wait(1000, "JSON.parse(sessionStorage.getItem('Drupal.toolbar.toolbarState')).isFixed == false"); // Update expected state values to reflect the viewport being at a width // that is narrow enough that the toolbar isn't fixed. -- GitLab