Skip to content

Commit

Permalink
Adapt the tests to the new robotframework syntax (#198)
Browse files Browse the repository at this point in the history
Fixes #199
  • Loading branch information
ale-rt authored and pbauer committed Jun 21, 2019
1 parent ac98753 commit 987a218
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions news/199.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Adapt the tests to the new robotframework syntax [ale-rt]
4 changes: 2 additions & 2 deletions plone/app/widgets/tests/robot/test_datetime_widget.robot
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ Fill date field
Click Element xpath=${xpath_pattern}${xpath_date_field}
Select from list by value xpath=${xpath_pattern}${xpath_month_select} ${month}
Select from list xpath=${xpath_pattern}${xpath_year_select} ${year}
Click Element xpath=${xpath_pattern}${xpath_day_list}[text()='${day}']
Click Element xpath=${xpath_pattern}${xpath_day_list}\[text()='${day}']

Fill time field
[Arguments] ${fieldlabel} ${time}
${xpath_pattern} = Convert to String //div[label[text()[normalize-space(.)="${fieldlabel}"]]]
Click Element xpath=${xpath_pattern}${xpath_time_field}
${xpath_time} = Convert to String ${xpath_pattern}${xpath_time_list}[text()='${time}']
${xpath_time} = Convert to String ${xpath_pattern}${xpath_time_list}\[text()='${time}']
Wait until page contains Element xpath=${xpath_time}
Click Element xpath=${xpath_time}

Expand Down

0 comments on commit 987a218

Please sign in to comment.