Issue #2870172: [8.4.x] Added [ Feature: File & Media Management - Assets Management - Ability to embed existing media image library in the rich text editor ] for Automated Functional Testing
Scenario: Check if we are able to embed existing files library in the rich text editor.
When I go to "admin/content"
And I wait
Then I should see "Content"
When I fill in "Test Basic page to embed existing files" for "Title"
And I press the "Filter" button
And I wait
Then I should see "Test Basic page to embed existing files"
When I click "Test Basic page to embed existing files"
And I wait
Then I should see "Test Basic page body to embed existing files"
When I click "Edit"
And I wait
Then I should see "Edit Basic page Test Basic page to embed existing files"
When I move focus to "Body" rich text editor field
And I click the editor media browser command button
And I wait for AJAX to finish
Then the editor media browser should be open
When I switch to iframe "entity_browser_iframe_editor_media_browser"
And I fill in "Embed Flag Earth" for "Search keywords"
And I press the "Search" button
And I wait for AJAX to finish
Then I should see image with the "Embed Flag Earth all earth in space" title text
When I double click on the image with the "Embed Flag Earth all earth in space" title text
And I wait for AJAX to finish
And I switch to main frame
And I wait for AJAX to finish
Then I should see "Embed media"
And I should see "Embed Flag Earth"
When I click "Embed" in the "button" element with the "class" attribute set to "button button--primary js-form-submit form-submit ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
And I wait for AJAX to finish
When I press "Save"
And I wait
Then I should see image with the "Embed Flag Earth all earth in space" title text