Skip to content

Commit

Permalink
[Behat] Adjusted Richtext embed button positions
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon committed Sep 5, 2023
1 parent db16149 commit ad6fff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/Behat/Component/Fields/RichText.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@ public function addUnorderedList(array $listElements): void

public function clickEmbedInlineButton(): void
{
$buttonPosition = 10 + $this->getCustomStylesOffset();
$buttonPosition = 11 + $this->getCustomStylesOffset();
$this->openElementsToolbar();
$this->clickElementsToolbarButton($buttonPosition);
}

public function clickEmbedButton(): void
{
$buttonPosition = 7 + $this->getCustomStylesOffset();
$buttonPosition = 8 + $this->getCustomStylesOffset();
$this->openElementsToolbar();
$this->clickElementsToolbarButton($buttonPosition);
}
Expand Down

0 comments on commit ad6fff5

Please sign in to comment.