Rev 1 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@editor @editor_tiny @tiny_media @javascriptFeature: Use the TinyMCE editor to upload an imageIn order to work with imagesAs a userI need to be able to upload and manipulate imagesScenario: Clicking on the Image button in the TinyMCE editor opens the image dialogGiven I log in as "admin"And I open my profile in edit modeWhen I click on the "Image" button for the "Description" TinyMCE editorThen "Insert image" "dialogue" should existScenario: Browsing repositories in the TinyMCE editor opens the image dialog and shows the FilePickerGiven I log in as "admin"And I open my profile in edit modeWhen I click on the "Image" button for the "Description" TinyMCE editorAnd I click on "Browse repositories" "button" in the "Insert image" "dialogue"Then "File picker" "dialogue" should exist@_file_upload @test_tinyScenario: Browsing repositories in the TinyMCE editor shows the FilePicker and upload url imageGiven I log in as "admin"And I open my profile in edit modeWhen I click on the "Image" button for the "Description" TinyMCE editorAnd I click on "Browse repositories" "button" in the "Insert image" "dialogue"And I upload "/lib/editor/tiny/tests/behat/fixtures/tinyscreenshot.png" to the file picker for TinyMCE# Note: This needs to be replaced with a label.Then ".tiny_image_preview" "css_element" should be visible@_file_uploadScenario: Insert image to the TinyMCE editorGiven I log in as "admin"And I open my profile in edit modeAnd I click on the "Image" button for the "Description" TinyMCE editorAnd I click on "Browse repositories" "button" in the "Insert image" "dialogue"And I upload "lib/editor/tiny/tests/behat/fixtures/moodle-logo.png" to the file picker for TinyMCEAnd I set the field "How would you describe this image to someone who can't see it?" to "It's the Moodle"And I click on "Save" "button" in the "Image details" "dialogue"When I select the "img" element in position "0" of the "Description" TinyMCE editorAnd I click on the "Image" button for the "Description" TinyMCE editorThen the field "How would you describe this image to someone who can't see it?" matches value "It's the Moodle"# Note: This needs to be replaced with a label.And ".tiny_image_preview" "css_element" should be visible@_file_uploadScenario: Resizing the image uses the original and custom sizes and the keep proportion checkboxGiven I log in as "admin"And I open my profile in edit modeAnd I click on the "Image" button for the "Description" TinyMCE editorAnd I click on "Browse repositories" "button" in the "Insert image" "dialogue"And I upload "lib/editor/tiny/tests/behat/fixtures/moodle-logo.png" to the file picker for TinyMCEAnd I click on "This image is decorative only" "checkbox"And I click on "Save" "button" in the "Image details" "dialogue"When I select the "img" element in position "0" of the "Description" TinyMCE editorAnd I click on the "Image" button for the "Description" TinyMCE editorThen the field "Original size" matches value "1"And I click on "Custom size" "radio"Then the field "Keep proportion" matches value "1"And I click on "Keep proportion" "checkbox"And I set the field "Width" to "102"And I click on "Save" "button" in the "Image details" "dialogue"When I select the "img" element in position "0" of the "Description" TinyMCE editorAnd I click on the "Image" button for the "Description" TinyMCE editorThen the field "Custom size" matches value "1"And the field "Width" matches value "102"And the field "Keep proportion" matches value "0"