Skip to content
Snippets Groups Projects
Commit 55663b59 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #3075443 by oknate, Wim Leers, seanB: Follow-up for #2994699:...

Issue #3075443 by oknate, Wim Leers, seanB: Follow-up for #2994699: Cardinality should be 1 for inserting embedded media
parent 6d3b05c2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -125,7 +125,7 @@ public function getConfig(Editor $editor) { ...@@ -125,7 +125,7 @@ public function getConfig(Editor $editor) {
'media_library.opener.editor', 'media_library.opener.editor',
$media_type_ids, $media_type_ids,
reset($media_type_ids), reset($media_type_ids),
-1, 1,
['filter_format_id' => $editor->getFilterFormat()->id()] ['filter_format_id' => $editor->getFilterFormat()->id()]
); );
......
...@@ -164,7 +164,9 @@ public function testButton() { ...@@ -164,7 +164,9 @@ public function testButton() {
$this->assertSame($expected_tab_order[$key], $tab->getText()); $this->assertSame($expected_tab_order[$key], $tab->getText());
} }
$assert_session->pageTextContains('0 of 1 item selected');
$assert_session->elementExists('css', '.media-library-item')->click(); $assert_session->elementExists('css', '.media-library-item')->click();
$assert_session->pageTextContains('1 of 1 item selected');
$assert_session->elementExists('css', 'button.media-library-select.button.button--primary')->click(); $assert_session->elementExists('css', 'button.media-library-select.button.button--primary')->click();
$this->assignNameToCkeditorIframe(); $this->assignNameToCkeditorIframe();
$this->getSession()->switchToIFrame('ckeditor'); $this->getSession()->switchToIFrame('ckeditor');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment