mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Fixed behat image upload tests
Was using "File" class rather than "Image", which broke HtmlEditorField->saveInto() with "unknown method getWidth()"
This commit is contained in:
parent
dca9c7ca65
commit
20605f7be0
@ -41,7 +41,7 @@ Feature: Insert an image into a page
|
|||||||
|
|
||||||
@assets
|
@assets
|
||||||
Scenario: I can overwrite an existing image with one uploaded from my own computer
|
Scenario: I can overwrite an existing image with one uploaded from my own computer
|
||||||
Given a "file" "assets/Uploads/file1.jpg"
|
Given a "image" "assets/Uploads/file1.jpg"
|
||||||
When I press the "Insert Media" button
|
When I press the "Insert Media" button
|
||||||
And I press the "From your computer" button
|
And I press the "From your computer" button
|
||||||
And I attach the file "file1.jpg" to "AssetUploadField" with HTML5
|
And I attach the file "file1.jpg" to "AssetUploadField" with HTML5
|
||||||
|
@ -5,8 +5,8 @@ Feature: Manage files
|
|||||||
So that I can insert them into my content efficiently
|
So that I can insert them into my content efficiently
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given a "file" "assets/folder1/file1.jpg"
|
Given a "image" "assets/folder1/file1.jpg"
|
||||||
And a "file" "assets/folder1/folder1.1/file2.jpg"
|
And a "image" "assets/folder1/folder1.1/file2.jpg"
|
||||||
And a "folder" "assets/folder2"
|
And a "folder" "assets/folder2"
|
||||||
And I am logged in with "ADMIN" permissions
|
And I am logged in with "ADMIN" permissions
|
||||||
And I go to "/admin/assets"
|
And I go to "/admin/assets"
|
||||||
|
Loading…
Reference in New Issue
Block a user