Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Adding AdminAssets filter Behat tests #946

Merged
merged 1 commit into from

2 participants

@srizzling

Adds Search Filter tests to manage-files.feature fixes: #621.

@srizzling

Requires silverstripe/silverstripe-framework#2861 to pass the test as Filter Panel does not open with the current state of framework

@simonwelsh simonwelsh merged commit 7f62cd3 into silverstripe:3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 17, 2014
  1. @srizzling
This page is out of date. Refresh to see the latest.
Showing with 15 additions and 0 deletions.
  1. +15 −0 tests/behat/features/manage-files.feature
View
15 tests/behat/features/manage-files.feature
@@ -60,3 +60,18 @@ Feature: Manage files
When I go to "/admin/assets/add"
And I follow "Show allowed extensions"
Then I should see "png,"
+
+ Scenario: I can filter the files list view using name
+ Given I expand the "Filter" CMS Panel
+ And I fill in "Name" with "file1"
+ And I press the "Apply Filter" button
+ Then I should see "assets/folder1/file1.jpg"
+ And I should not see "assets/folder1/file2.jpg"
+
+ Scenario: I can filter the files list view using filetype
+ Given a "file" "assets/document.pdf"
+ And I expand the "Filter" CMS Panel
+ And I select "Image" from "File type"
+ And I press the "Apply Filter" button
+ Then I should see "assets/folder1/file1.jpg"
+ And I should not see "assets/document.pdf"
Something went wrong with that request. Please try again.