Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix failing cucumber tests (issue #106) #113

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bill-auger
Copy link

  • Scenario: Distribute to commits not linked to a GitHub account

User#recipient_label method was prefering to show identifier instead of email when nick was undefined but the test was expecting an email address - not sure which was the intended behavior but showing email to the user rather than an obtuse ID seems more reasonable

is it possible this could be a private email address ? then perhaps to modify the test instead to expexct an ID - the original implementation would still show the email address however in cases where no nick nor ID is defined if such a state is possible

* Scenario: Distribute to commits not linked to a GitHub account

User#recipient_label method was prefering to show identifier instead of email when nick was undefined but the test was expecting an email address - not sure which was the intended behavior but showing email to the use rather than an obtuse ID seems more reasonable
@bill-auger bill-auger changed the title fix failing "distribute_to_commits.feature" scenario fix failing cucumber tests (issue #106) Oct 26, 2014
several tests that filled fields on the Distribution edit form
    were were passing and failing intermittently
    this was most likely due to the 'auto-complete' feature

notably scenarios:
* Send distribution to multiple users
* Remove a distribution line
* Create distribution line without an amount

adding a one second delay to these steps has made all tests passing

* Given(/^I add the GitHub user "(.*?)" to the recipients$/)
* Given(/^I add the user with email "(.*?)"
      through his identifier to the recipients$/)
* When(/^I add the commit "(.*?)" to the recipients$/)
@bill-auger
Copy link
Author

several tests that filled fields on the Distribution edit form were were passing and failing intermittently - this was most likely due to the 'auto-complete' feature

notably scenarios:

  • Send distribution to multiple users
  • Remove a distribution line
  • Create distribution line without an amount

adding a one second delay to these steps has made all tests passing

  • Given /^I add the GitHub user "(.*?)" to the recipients$/
  • Given /^I add the user with email "(.*?)" through his identifier to the recipients$/
  • When /^I add the commit "(.*?)" to the recipients$/

these were intended to be included in the previous commit
@bill-auger
Copy link
Author

the additions to the last commit were intended to be included in the previous commit

these steps were not the source of any test failures but if the autocomplete feature was the cause of the failures addressed by this pull request, then the potential exists for these to be problematic - as these failures were intermittent and therefore insideous its best to guard against them

the sibling 'email' field does not implement the autocomplete feature so i assume no wait is needed for its related step

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant