Verified Commit 243fc5ca authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3463569 by alexpott, catch: ToolbarStoredStateTest needs wait after resizing window

(cherry picked from commit 3dc29858)
parent da245219
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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.