mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #1361 from kinglozzer/behat-coverage-file-link
Add behat coverage to check that file field is reset when adding links
This commit is contained in:
commit
e9e6a9cca4
@ -57,6 +57,10 @@ So that I can link to a external website or a page on my site
|
|||||||
Then the "Content" HTML field should contain "<a href="[file_link,id=3]" target="_blank">awesome</a>"
|
Then the "Content" HTML field should contain "<a href="[file_link,id=3]" target="_blank">awesome</a>"
|
||||||
# Required to avoid "unsaved changes" browser dialog
|
# Required to avoid "unsaved changes" browser dialog
|
||||||
Then I press the "Save draft" button
|
Then I press the "Save draft" button
|
||||||
|
# Check that the field is reset when adding another new link
|
||||||
|
Given I select "content" in the "Content" HTML field
|
||||||
|
When I press the "Insert Link" button
|
||||||
|
Then I should not see a ".ss-uploadfield-files .ss-uploadfield-item" element
|
||||||
|
|
||||||
Scenario: I can link to an anchor
|
Scenario: I can link to an anchor
|
||||||
Given I fill in the "Content" HTML field with "<p>My awesome content<a name='myanchor'></a></p>"
|
Given I fill in the "Content" HTML field with "<p>My awesome content<a name='myanchor'></a></p>"
|
||||||
|
Loading…
Reference in New Issue
Block a user