Guest User

Untitled

a guest
Oct 17th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.09 KB | None | 0 0
  1. bmorris@cincinnatus:~/development/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.  
  79. Scenario: Displaying Illinois HIPAA Form # features/form_mappings.feature:9
  80. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  81. And the state applied is IL # features/step_definitions/form_mapping_steps.rb:7
  82. When I begin esig hipaa # features/step_definitions/form_mapping_steps.rb:16
  83. Then I should see the image illinois_hipaa # features/step_definitions/form_mapping_steps.rb:11
  84.  
  85. Scenario: Displaying California Notice Form # features/form_mappings.feature:15
  86. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  87. And the state applied is CA # features/step_definitions/form_mapping_steps.rb:7
  88. When I begin esig notice # features/step_definitions/form_mapping_steps.rb:16
  89. Then I should see the image california_notices # features/step_definitions/form_mapping_steps.rb:11
  90.  
  91. Scenario: Displaying Illinois History Form # features/form_mappings.feature:21
  92. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  93. And the state applied is IL # features/step_definitions/form_mapping_steps.rb:7
  94. When I begin esig history # features/step_definitions/form_mapping_steps.rb:16
  95. Then I should see the image illinois_authorization # features/step_definitions/form_mapping_steps.rb:11
  96.  
  97. Feature: Verifying the Applicant's Identity
  98. In order to verify an applicant's identity
  99. As Consumer Direct
  100. I want to query the LexisNexis Identity Risk Management API
  101.  
  102. Feature: Navigating Through a Case
  103. In order to fill out a case
  104. As a consumer
  105. I want to fill out all information and have it saved
  106.  
  107. Scenario: Getting Started creates a case # features/navigate_through_application.feature:6
  108. Given I am on the home page # features/step_definitions/web_steps.rb:36
  109. When I get started # features/step_definitions/navigation_steps.rb:37
  110. Then there should be "1" case # features/step_definitions/consumer_direct_cases.rb:16
  111.  
  112. Scenario: Fills out all 13 pages # features/navigate_through_application.feature:11
  113. Given There are no cases # features/step_definitions/consumer_direct_cases.rb:5
  114. HTTPI executes HTTP POST using the httpclient adapter
  115. HTTPI executes HTTP POST using the httpclient adapter
  116. HTTPI executes HTTP POST using the httpclient adapter
  117. When I fill out all of the pages # features/step_definitions/navigation_steps.rb:5
  118. Then the data has been saved on the case # features/step_definitions/navigation_steps.rb:49
  119.  
  120. Scenario: Followup is shown when hospitalization is answered yes # features/navigate_through_application.feature:16
  121. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  122. When I answer "Yes" to the hospitalized question # features/step_definitions/navigation_steps.rb:19
  123. Then the case should be on the "health_follow_up_questions" page # features/step_definitions/navigation_steps.rb:55
  124.  
  125. Scenario: Followup is not shown when hospitalization is answered no # features/navigate_through_application.feature:21
  126. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  127. When I answer "No" to the hospitalized question # features/step_definitions/navigation_steps.rb:19
  128. Then the case should be on the "medical_generic_ko_questions" page # features/step_definitions/navigation_steps.rb:55
  129.  
  130. Scenario: Followup answer is wiped out when hospitalization is changed from yes to no # features/navigate_through_application.feature:26
  131. Given There is one case # features/step_definitions/consumer_direct_cases.rb:9
  132. When I answer "Yes" to the hospitalized question # features/step_definitions/navigation_steps.rb:19
  133. And I answer "Yes" to the health followup question # features/step_definitions/navigation_steps.rb:29
  134. And I answer "No" to the hospitalized question # features/step_definitions/navigation_steps.rb:19
  135. Then the case should not have a value for the health followup question # features/step_definitions/navigation_steps.rb:59
  136.  
  137. 13 scenarios (13 passed)
  138. 81 steps (81 passed)
  139. 0m8.977s
Add Comment
Please, Sign In to add comment