Skip to content

Commit

Permalink
fix robottest for Plone 5.1 relateditems widget
Browse files Browse the repository at this point in the history
and remove obsolete checkouts. all packages are released.
  • Loading branch information
petschki committed Apr 29, 2019
1 parent 5f7c994 commit 2bcf85e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 35 deletions.
28 changes: 3 additions & 25 deletions base.cfg
@@ -1,31 +1,9 @@
[buildout]
extensions = mr.developer
eggs +=
collective.geolocationbehavior
sources = sources
versions = versions
sources-dir = extras
auto-checkout =
collective.geolocationbehavior
plone.formwidget.geolocation
plone.patternslib

[sources]
collective.geolocationbehavior = git ${remotes:collective}/collective.geolocationbehavior.git pushurl=${remotes:collective_push}/collective.geolocationbehavior.git
plone.formwidget.geolocation = git ${remotes:collective}/plone.formwidget.geolocation.git pushurl=${remotes:collective_push}/plone.formwidget.geolocation.git
plone.patternslib = git ${remotes:plone}/plone.patternslib.git pushurl=${remotes:plone_push}/plone.patternslib.git

[versions]
collective.collectionfilter =
collective.geolocationbehavior =
plone.formwidget.geolocation =
plone.patternslib =

[remotes]
# Collective
collective = https://github.com/collective
collective_push = git@github.com:collective

# Plone
plone = https://github.com/plone
plone_push = git@github.com:plone
collective.geolocationbehavior = >=1.6.0
plone.formwidget.geolocation = >=2.2.0
plone.patternslib = >=1.1.0
19 changes: 9 additions & 10 deletions src/collective/collectionfilter/tests/robot/keywords.robot
Expand Up @@ -42,17 +42,20 @@ I am logged in

# --- MISC

Select related filter collection
Click element css=div.pattern-relateditems-container input.select2-input
Wait until page contains element xpath://ul[@class='select2-results']//a[@data-path='/']
Click link xpath://ul[@class='select2-results']//a[@data-path='/']
Wait until page contains element xpath://ul[@class='select2-results']//a[@data-path='/testcollection']
Click link xpath://ul[@class='select2-results']//a[@data-path='/testcollection']

Add search portlet
Wait until page contains element css=select.add-portlet
Select From List by label css=select.add-portlet Collection Search
Wait until element is visible css=input#form-widgets-header

Input text css=input#form-widgets-header Searchable Text
Click element css=div.pattern-relateditems-container input.select2-input
Wait until page contains element xpath://ul[@class='select2-results']//a[@title='Go one level up']
Click link xpath://ul[@class='select2-results']//a[@title='Go one level up']
Wait until page contains element xpath://ul[@class='select2-results']//a[@data-path='/testcollection']
Click link xpath://ul[@class='select2-results']//a[@data-path='/testcollection']
Select related filter collection
Click element css=.plone-modal-footer input#form-buttons-add
Wait until page contains element xpath://div[@class='portletAssignments']//a[text()='Searchable Text']

Expand All @@ -64,11 +67,7 @@ Add filter portlet
Wait until element is visible css=input#form-widgets-header

Input text css=input#form-widgets-header ${group_criteria}
Click element css=div.pattern-relateditems-container input.select2-input
Wait until page contains element xpath://ul[@class='select2-results']//a[@title='Go one level up']
Click link xpath://ul[@class='select2-results']//a[@title='Go one level up']
Wait until page contains element xpath://ul[@class='select2-results']//a[@data-path='/testcollection']
Click link xpath://ul[@class='select2-results']//a[@data-path='/testcollection']
Select related filter collection
Select from List by value css=select#form-widgets-group_by ${group_criteria}
Click element css=input#form-widgets-show_count-0
Select from List by value css=select#form-widgets-filter_type ${filter_type}
Expand Down

0 comments on commit 2bcf85e

Please sign in to comment.