Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
137 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
src/collective/collectionfilter/tests/robot/test_filtertiles.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
*** Settings ***************************************************************** | ||
|
||
Resource keywords.robot | ||
|
||
Library Remote ${PLONE_URL}/RobotRemote | ||
|
||
Test Setup Open test browser | ||
Test Teardown Close all browsers | ||
|
||
*** Variables *** | ||
|
||
${COLLECTION_NAME} testcollection | ||
${TEST_PAGE} ${PLONE_URL}/testdoc | ||
|
||
|
||
*** Test Cases *************************************************************** | ||
|
||
Scenario: Add filter tiles to page for collection | ||
|
||
Log in as site owner | ||
Go to ${TEST_PAGE} | ||
|
||
# Setup full mosaic display and open editor | ||
Enable mosaic layout for page ${TEST_PAGE} | ||
Capture Page Screenshot | ||
|
||
# Add tiles to page | ||
Go to ${TEST_PAGE}/edit | ||
Add filter tile ${COLLECTION_NAME} Subject checkboxes_dropdowns | ||
Add search tile ${COLLECTION_NAME} | ||
Save mosaic page | ||
Go to ${TEST_PAGE} | ||
Capture Page screenshot | ||
|
||
# Check collection filter filters collections | ||
Go to ${TEST_PAGE} | ||
Filter by Dokumänt | ||
Should be 2 collection results | ||
Capture Page Screenshot | ||
# Filtering by all with checkboxes_dropdowns without ajax results in no page change | ||
|
||
# Check collection search filters collections | ||
Go to ${TEST_PAGE} | ||
Search for Document | ||
Should be 1 collection results | ||
Capture Page Screenshot | ||
Go to ${TEST_PAGE} | ||
Search for ${EMPTY} | ||
Should be 3 collection results |