Skip to content

Commit

Permalink
Add screenshot-keywords for debugging acceptance tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
datakurre committed Oct 8, 2014
1 parent 1cc6542 commit c9f15a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plone/app/contenttypes/tests/robot/keywords.txt
Expand Up @@ -132,15 +132,19 @@ fill date field
I set the criteria ${type} in row ${number} to the option '${label}'
${criteria_row} = Convert to String .querystring-criteria-wrapper:nth-child(${number})
Wait until page contains Element css=${criteria_row} .querystring-criteria-${type} .select2-choice
Capture page screenshot
Click Element css=${criteria_row} .querystring-criteria-${type} .select2-choice
Wait until element is visible xpath=//div[@class='select2-result-label']/descendant-or-self::*[contains(text(), '${label}')]
Capture page screenshot
Click Element xpath=//div[@class='select2-result-label']/descendant-or-self::*[contains(text(), '${label}')]

I set the criteria ${type} in row ${number} to the options '${label}'
${criteria_row} = Convert to String .querystring-criteria-wrapper:nth-child(${number})
Wait until page contains Element css=${criteria_row} .querystring-criteria-${type} .select2-choices
Capture page screenshot
Click Element css=${criteria_row} .querystring-criteria-${type} .select2-choices
Wait until element is visible xpath=//div[@class='select2-result-label']/descendant-or-self::*[contains(text(), '${label}')]
Capture page screenshot
Click Element xpath=//div[@class='select2-result-label']/descendant-or-self::*[contains(text(), '${label}')]

I set the criteria ${type} in row ${number} to the text '${label}'
Expand Down

0 comments on commit c9f15a6

Please sign in to comment.