12 lines
689 B
Gherkin
12 lines
689 B
Gherkin
@core @editor_tiny @source_code @javascript
|
|
Feature: A user can insert script tag in TinyMCE
|
|
|
|
Scenario: Allow script elements in the editor
|
|
Given I log in as "admin"
|
|
And I open my profile in edit mode
|
|
When I click on the "Tools > Source code" menu item for the "Description" TinyMCE editor
|
|
Then I set the field with xpath "//textarea[@class='tox-textarea']" to "<p><script>alert('script in tiny');</script></p>"
|
|
And I click on "Save" "button"
|
|
When I click on the "Tools > Source code" menu item for the "Description" TinyMCE editor
|
|
Then the field with xpath "//textarea[@class='tox-textarea']" matches value "<p><script>alert('script in tiny');</script></p>"
|