Fix randomly failing PDF cucumber tests

Posted About 13 years ago. Visible to the public.

Sometimes PDF cucumber tests fail at the first test run and succeed at the second run. You can fix this with this step:

When PDF generation is ready
And I follow "Save as PDF"
# Checks for PDF contents go here

Here is the step definition:

When /^PDF generation is ready$/ do
  Then 'I should see ""'
end
Last edit
Over 11 years ago
License
Source code in this card is licensed under the MIT License.
Posted to makandra dev (2011-05-16 10:29)