1 @atto @atto_media @_file_upload
2 Feature: Add media to Atto
3 To write rich text - I need to add media.
6 Scenario: Insert some media
7 Given I log in as "admin"
8 And I navigate to "My private files" node in "My profile"
9 And I upload "lib/editor/atto/tests/fixtures/moodle-logo.webm" file to "Files" filemanager
10 And I click on "Save changes" "button"
12 And I expand "My profile" node
13 And I expand "Blogs" node
14 And I follow "Add a new entry"
15 And I set the field "Blog entry body" to "<p>Media test</p>"
16 And I select the text in the "Blog entry body" field
17 And I set the field "Entry title" to "The best video in the entire world (not really)"
18 And I click on "Media" "button"
19 And I click on "Browse repositories..." "button"
20 And I click on "Private files" "link"
21 And I click on "moodle-logo.webm" "link"
22 And I click on "Select this file" "button"
23 And I set the field "Enter name" to "It's the logo"
24 And I click on "Insert media" "button"
25 And I click on "Save changes" "button"
26 Then "video" "css_element" should be visible