From 3f28d72065ad5d50d50de57f688834ac6a181777 Mon Sep 17 00:00:00 2001 From: Sriram Venkatesh Date: Tue, 18 Feb 2014 10:23:51 +1300 Subject: [PATCH] Adding AdminAssets filter Behat tests --- tests/behat/features/manage-files.feature | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/behat/features/manage-files.feature b/tests/behat/features/manage-files.feature index e6eb11f3..b5763277 100644 --- a/tests/behat/features/manage-files.feature +++ b/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"