Commit 55663b59 authored by webchick's avatar webchick
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
......@@ -125,7 +125,7 @@ public function getConfig(Editor $editor) {
'media_library.opener.editor',
$media_type_ids,
reset($media_type_ids),
-1,
1,
['filter_format_id' => $editor->getFilterFormat()->id()]
);
......
......@@ -164,7 +164,9 @@ public function testButton() {
$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->pageTextContains('1 of 1 item selected');
$assert_session->elementExists('css', 'button.media-library-select.button.button--primary')->click();
$this->assignNameToCkeditorIframe();
$this->getSession()->switchToIFrame('ckeditor');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment