Guest User

Untitled

a guest
Oct 17th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.86 KB | None | 0 0
  1. bmorris@cincinnatus:~/Projects/importal/apps/consumer_direct/consumer_direct_web_site$ RAILS_ENV=integration rake cucumber
  2. NOTICE: running consumer direct common v 0.2.1
  3. /home/bmorris/.rvm/rubies/ruby-1.8.7-p334/bin/ruby -S bundle exec cucumber --profile default
  4. Using the default profile...
  5. NOTICE: running consumer direct common v 0.2.1
  6. Feature: Adding a beneficiary
  7.  
  8. Background: # features/beneficiaries.feature:3
  9. Given a beneficiary relationship of "Spouse" # features/step_definitions/beneficiary_steps.rb:1
  10. And a beneficiary relationship of "Wife" # features/step_definitions/beneficiary_steps.rb:1
  11.  
  12. Scenario: Adding a Person beneficiary # features/beneficiaries.feature:7
  13. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  14. When I begin to add a beneficiary # features/step_definitions/beneficiary_steps.rb:60
  15. And I enter "Bobby" for first name # features/step_definitions/beneficiary_steps.rb:7
  16. And I enter "Tables" for last name # features/step_definitions/beneficiary_steps.rb:11
  17. And I enter "Spouse" for beneficiary relationship # features/step_definitions/beneficiary_steps.rb:26
  18. When I click "Add" # features/step_definitions/beneficiary_steps.rb:31
  19. Then a beneficiary has been added # features/step_definitions/beneficiary_steps.rb:68
  20. And the beneficiary first name is "Bobby" # features/step_definitions/beneficiary_steps.rb:38
  21. And the beneficiary last name is "Tables" # features/step_definitions/beneficiary_steps.rb:42
  22. And the beneficiary relationship is "Spouse" # features/step_definitions/beneficiary_steps.rb:54
  23.  
  24. Scenario: Cancel adding a beneficiary # features/beneficiaries.feature:32
  25. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  26. And I have one beneficiary # features/step_definitions/beneficiary_steps.rb:111
  27. When I begin to add a beneficiary # features/step_definitions/beneficiary_steps.rb:60
  28. And I enter "Bobby" for first name # features/step_definitions/beneficiary_steps.rb:7
  29. And I enter "Tables" for last name # features/step_definitions/beneficiary_steps.rb:11
  30. When I click "Cancel" # features/step_definitions/beneficiary_steps.rb:31
  31. Then the "first_name" field should be empty # features/step_definitions/beneficiary_steps.rb:103
  32. And the "last_name" field should be empty # features/step_definitions/beneficiary_steps.rb:103
  33.  
  34. # TODO - Uncomment this after refactoring to create beneficiaries controller
  35. # Scenario: Validations prevent adding a beneficiary
  36. # Given There is one case
  37. # When I begin to add a beneficiary
  38. # And I click "Add"
  39. # Then a beneficiary has not been added
  40. Scenario: Editing a beneficiary # features/beneficiaries.feature:49
  41. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  42. And I have one beneficiary with the following attributes: # features/step_definitions/beneficiary_steps.rb:78
  43. | first_name | last_name | beneficiary_relationship |
  44. | Bobby | Tables | Spouse |
  45. When I begin to edit the beneficiary # features/step_definitions/beneficiary_steps.rb:85
  46. And I enter "Robert" for first name # features/step_definitions/beneficiary_steps.rb:7
  47. And I enter "Vector" for last name # features/step_definitions/beneficiary_steps.rb:11
  48. And I enter "Wife" for beneficiary relationship # features/step_definitions/beneficiary_steps.rb:26
  49. When I click "Update" # features/step_definitions/beneficiary_steps.rb:31
  50. Then the beneficiary has been updated with the following attributes: # features/step_definitions/beneficiary_steps.rb:90
  51. | first_name | last_name | beneficiary_relationship |
  52. | Robert | Vector | Wife |
  53.  
  54. Scenario: Deleting a beneficiary # features/beneficiaries.feature:63
  55. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  56. And I have one beneficiary # features/step_definitions/beneficiary_steps.rb:111
  57. When I am on beneficiary # features/step_definitions/web_steps.rb:36
  58. And I click delete beneficiary # features/step_definitions/beneficiary_steps.rb:121
  59. Then the case has no beneficiaries # features/step_definitions/beneficiary_steps.rb:116
  60.  
  61. Scenario: Cancel editing a beneficiary # features/beneficiaries.feature:70
  62. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  63. And I have one beneficiary # features/step_definitions/beneficiary_steps.rb:111
  64. When I begin to edit the beneficiary # features/step_definitions/beneficiary_steps.rb:85
  65. And I click "Cancel" # features/step_definitions/beneficiary_steps.rb:31
  66. Then I should see "Add" # features/step_definitions/web_steps.rb:58
  67. And I should not see "Update" # features/step_definitions/web_steps.rb:66
  68. And the "first_name" field should be empty # features/step_definitions/beneficiary_steps.rb:103
  69. And the "last_name" field should be empty # features/step_definitions/beneficiary_steps.rb:103
  70.  
  71. Feature: Display the appropriate State Form Variations for Esig documents
  72.  
  73. Background: # features/form_mappings.feature:3
  74. Given I have Form Mappings with the following attributes: # features/step_definitions/form_mapping_steps.rb:1
  75. | state_code | hipaa | notices_of_information_practices | declaration_agreement_and_authorization |
  76. | IL | illinois_hipaa | illinois_notices | illinois_authorization |
  77. | CA | california_hipaa | california_notices | california_authorization |
  78. Validation failed: State code has already been taken (ActiveRecord::RecordInvalid)
  79. ./features/step_definitions/form_mapping_steps.rb:3
  80. ./features/step_definitions/form_mapping_steps.rb:2:in `each'
  81. ./features/step_definitions/form_mapping_steps.rb:2:in `/^I have Form Mappings with the following attributes:$/'
  82. features/form_mappings.feature:4:in `Given I have Form Mappings with the following attributes:'
  83.  
  84. Scenario: Displaying Illinois HIPAA Form # features/form_mappings.feature:9
  85. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  86. And the state applied is IL # features/step_definitions/form_mapping_steps.rb:7
  87. When I begin esig hipaa # features/step_definitions/form_mapping_steps.rb:16
  88. Then I should see the image illinois_hipaa # features/step_definitions/form_mapping_steps.rb:11
  89.  
  90. Scenario: Displaying California Notice Form # features/form_mappings.feature:15
  91. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  92. And the state applied is CA # features/step_definitions/form_mapping_steps.rb:7
  93. When I begin esig notice # features/step_definitions/form_mapping_steps.rb:16
  94. Then I should see the image california_notices # features/step_definitions/form_mapping_steps.rb:11
  95.  
  96. Scenario: Displaying Illinois History Form # features/form_mappings.feature:21
  97. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  98. And the state applied is IL # features/step_definitions/form_mapping_steps.rb:7
  99. When I begin esig history # features/step_definitions/form_mapping_steps.rb:16
  100. Then I should see the image illinois_authorization # features/step_definitions/form_mapping_steps.rb:11
  101.  
  102. Feature: Verifying the Applicant's Identity
  103. In order to verify an applicant's identity
  104. As Consumer Direct
  105. I want to query the LexisNexis Identity Risk Management API
  106.  
  107. Feature: Navigating Through a Case
  108. In order to fill out a case
  109. As a consumer
  110. I want to fill out all information and have it saved
  111.  
  112. Scenario: Getting Started creates a case # features/navigate_through_application.feature:6
  113. Given I am on the home page # features/step_definitions/web_steps.rb:36
  114. When I get started # features/step_definitions/navigation_steps.rb:37
  115. Then there should be "1" case # features/step_definitions/consumer_direct_cases.rb:16
  116.  
  117. Scenario: Fills out all 13 pages # features/navigate_through_application.feature:11
  118. Given There are no cases # features/step_definitions/consumer_direct_cases.rb:5
  119. HTTPI executes HTTP POST using the httpclient adapter
  120. HTTPI executes HTTP POST using the httpclient adapter
  121. HTTPI executes HTTP POST using the httpclient adapter
  122. When I fill out all of the pages # features/step_definitions/navigation_steps.rb:5
  123. Then the data has been saved on the case # features/step_definitions/navigation_steps.rb:49
  124.  
  125. Scenario: Followup is shown when hospitalization is answered yes # features/navigate_through_application.feature:16
  126. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  127. When I answer "Yes" to the hospitalized question # features/step_definitions/navigation_steps.rb:19
  128. Then the case should be on the "health_follow_up_questions" page # features/step_definitions/navigation_steps.rb:55
  129.  
  130. Scenario: Followup is not shown when hospitalization is answered no # features/navigate_through_application.feature:21
  131. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  132. When I answer "No" to the hospitalized question # features/step_definitions/navigation_steps.rb:19
  133. Then the case should be on the "medical_generic_ko_questions" page # features/step_definitions/navigation_steps.rb:55
  134.  
  135. Scenario: Followup answer is wiped out when hospitalization is changed from yes to no # features/navigate_through_application.feature:26
  136. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  137. When I answer "Yes" to the hospitalized question # features/step_definitions/navigation_steps.rb:19
  138. And I answer "Yes" to the health followup question # features/step_definitions/navigation_steps.rb:29
  139. And I answer "No" to the hospitalized question # features/step_definitions/navigation_steps.rb:19
  140. Then the case should not have a value for the health followup question # features/step_definitions/navigation_steps.rb:59
  141.  
  142. Failing Scenarios:
  143. cucumber features/form_mappings.feature:9 # Scenario: Displaying Illinois HIPAA Form
  144.  
  145. 13 scenarios (1 failed, 2 skipped, 10 passed)
  146. 81 steps (1 failed, 14 skipped, 66 passed)
  147. 0m8.683s
  148. rake aborted!
  149. Command failed with status (1): [/home/bmorris/.rvm/rubies/ruby-1.8.7-p334/...]
  150.  
  151. Tasks: TOP => cucumber => cucumber:ok
  152. (See full trace by running task with --trace)
Add Comment
Please, Sign In to add comment