Skip to content

Commit

Permalink
Issue #3396296: Add automatically Editorial Accessibility Checker ste…
Browse files Browse the repository at this point in the history
…p Close the accessibility checker, to clear space for more actions
  • Loading branch information
Natshah committed Dec 9, 2023
1 parent c380407 commit ef80f45
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/features/bootstrap/VarbaseContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,17 +577,11 @@ public function iClickOnCommandButtonInTheRichTextEditorField($selectorCommand,
throw new \Exception('Could not find an id for the rich text editor field : ' . $locator);
}

// Find the command button by the select command.
$element = $this->getSession()->getPage()->find('xpath', "//button[span[text()='$selectorCommand']]");

if (is_null($element)) {
throw new \Exception("The $selectorCommand command button in the rich text editor field $locator was not found");
}
$element->click();

$this->getSession()->executeScript("CKEDITOR.instances[\"$fieldId\"].execCommand( '$selectorCommand' );");

}


/**
* Append text at the end of a rich text editor field WYSIWYG with content.
*
Expand Down

0 comments on commit ef80f45

Please sign in to comment.