diff --git a/src/lib/Behat/Component/Fields/RichText.php b/src/lib/Behat/Component/Fields/RichText.php index 17959cb0c0..eb29b55ee6 100644 --- a/src/lib/Behat/Component/Fields/RichText.php +++ b/src/lib/Behat/Component/Fields/RichText.php @@ -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); }