Skip to content

Commit

Permalink
Merge pull request #1198 from openeuropa/fix-tests-EPIC-EWPP-2556
Browse files Browse the repository at this point in the history
EWPP-2556: Add workaround for context submenu appearance in wysiwyg.
  • Loading branch information
upchuk authored Oct 26, 2022
2 parents b8b7853 + ce6e5d1 commit 7254b93
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ protected function openCellPropertiesDialog(string $right_click_selector): void
$this->getSession()->switchToIFrame($page->find('xpath', "//div[contains(concat(' ', normalize-space(@class), ' '), ' cke_menu_panel ') and not(@hidden)]/iframe")->getAttribute('id'));
$this->clickLink('Cell');
$this->getSession()->switchToIFrame();
// @todo Fix in EWPP-2734 the way for waiting for the showing of the context submenu.
$web_assert->waitForElementVisible('xpath', "//div[contains(concat(' ', normalize-space(@class), ' '), ' cke_menu_panel ')][last()]/iframe");
$this->getSession()->wait(1000);
$this->getSession()->switchToIFrame($page->find('xpath', "//div[contains(concat(' ', normalize-space(@class), ' '), ' cke_menu_panel ') and not(@hidden)][last()]/iframe")->getAttribute('id'));
$this->clickLink('Cell Properties');
$this->getSession()->switchToIFrame();
Expand Down

0 comments on commit 7254b93

Please sign in to comment.