Skip to content

Commit

Permalink
[Behat] Emulate a focused page when interacting with Richtext
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon committed Oct 17, 2023
1 parent 80961bc commit f585bc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/Behat/Component/Fields/RichText.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ private function getFieldInput(): ElementInterface

private function focusFieldInput(): void
{
$this->getDevToolsDriver()->execute('Emulation.setFocusEmulationEnabled', ['enabled' => true]);
$this->getFieldInput()->click();
}

Expand Down

0 comments on commit f585bc2

Please sign in to comment.