Issue #3359494 by bnjmnm, Spokje, lauriii, hooroomoo: Focus is lost on dialog...
Issue #3359494 by bnjmnm, Spokje, lauriii, hooroomoo: Focus is lost on dialog close if the opener is inside a collapsible element
(cherry picked from commit d8f747b1)
$this->assertJsCondition('document.activeElement === document.querySelector("#block-branding button.trigger")',10000,'Focus should be on the contextual trigger, but instead is at '.$this->getSession()->evaluateScript('document.activeElement.outerHTML'));