Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix “I can insert an image from the CMS file store”. #919

Merged
merged 1 commit into from

2 participants

@madmatt

This requires the framework PR silverstripe/silverstripe-framework#2754 before the test will pass without failure.

@simonwelsh simonwelsh merged commit ebbb35d into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/behat/features/insert-an-image.feature
View
5 tests/behat/features/insert-an-image.feature
@@ -55,12 +55,11 @@ Feature: Insert an image into a page
# Required to avoid "unsaved changed" browser dialog
Then I press the "Save draft" button
- @todo
Scenario: I can insert an image from the CMS file store
Given I press the "Insert Media" button
And I press the "From the CMS" button
- And I select "folder1" in the "Find in Folder" dropdown
- And I select "file1.jpg"
+ And I fill in the "ParentID" dropdown with "folder1"
+ And I click on "file1.jpg" in the "Files" table
When I press the "Insert" button
Then the "Content" HTML field should contain "file1.jpg"
# Required to avoid "unsaved changed" browser dialog
Something went wrong with that request. Please try again.