Skip to content
Snippets Groups Projects

Issue #2707689: NodeForm::actions() checks for delete access on new entities

3 files
+ 22
16
Compare changes
  • Side-by-side
  • Inline
Files
3
  • 6a1bac3c
    Issue #3316816 by Wim Leers, nod_: Stabilize FunctionalJavascript testing... · 6a1bac3c
    catch authored
    Issue #3316816 by Wim Leers, nod_: Stabilize FunctionalJavascript testing AJAX: make ::setValue() trigger both "input" and "formUpdated" events
@@ -86,14 +86,8 @@ protected function addImage() {
$this->waitForEditor();
$this->pressEditorButton('Insert image');
$panel = $page->find('css', '.ck-dropdown__panel.ck-image-insert__panel');
// Do not use setValue method as it triggers a blur event by default that
// closes the CKEditor 5 panel, making it impossible to click on the Insert
// button.
$this->getSession()->executeScript('
const input = document.querySelector(".ck-dropdown__panel.ck-image-insert__panel input[type=text]");
input.value = "' . $src . '";
input.dispatchEvent(new Event("input", {bubbles:true}));
');
$src_input = $panel->find('css', 'input[type=text]');
$src_input->setValue($src);
$panel->find('xpath', "//button[span[text()='Insert']]")->click();
}
Loading