Created
January 25, 2018 11:29
-
-
Save tansaku/f7f9ba4cefd3c880ac0b9956e856c065 to your computer and use it in GitHub Desktop.
single cuke fail from metplus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tansaku@Samuels-MBP:~/Documents/Github/AgileVentures/MetPlus_PETS (694_google_analytics)]$ | |
→ be cucumber features/event_management.feature:35 | |
Using the default profile... | |
Feature: manage notifications upon specific system events | |
As a user of PETS | |
I want to be notified of specific events appropriate to my role | |
And receive realtime as well as email notifications | |
Background: seed data # features/event_management.feature:7 | |
Given the default settings are present # features/step_definitions/fixtures_steps.rb:238 | |
Given the following agency people exist: # features/step_definitions/fixtures_steps.rb:36 | |
| agency | role | first_name | last_name | email | password | | |
| MetPlus | AA | John | Smith | aa@metplus.org | qwerty123 | | |
| MetPlus | CM | Jane | Jones | jane@metplus.org | qwerty123 | | |
| MetPlus | JD | Dave | Developer | dave@metplus.org | qwerty123 | | |
Given the following companies exist: # features/step_definitions/fixtures_steps.rb:27 | |
| agency | name | website | phone | email | job_email | ein | status | | |
| MetPlus | Widgets Inc. | widgets.com | 555-222-3333 | corp@ymail.com | corp@ymail.com | 12-3456799 | active | | |
Given the following company people exist: # features/step_definitions/fixtures_steps.rb:67 | |
| company | role | first_name | last_name | email | password | phone | | |
| Widgets Inc. | CC | Jane | Smith | jane@ymail.com | qwerty123 | 555-222-3334 | | |
Given the following company addresses exist: # features/step_definitions/fixtures_steps.rb:84 | |
| company | street | city | state | zipcode | | |
| Widgets Inc. | 10 Spring Street | Detroit | Michigan | 02034 | | |
Given the following jobseekers exist: # features/step_definitions/fixtures_steps.rb:107 | |
| first_name | last_name | email | phone | password | year_of_birth | job_seeker_status | | |
| Sam | Seeker | sammy1@gmail.com | 222-333-4444 | qwerty123 | 1990 | Unemployed Seeking | | |
| Tom | Terrific | tommy1@gmail.com | 333-444-5555 | qwerty123 | 1990 | Unemployed Seeking | | |
@selenium | |
Scenario: Job Seeker registers in PETS # features/event_management.feature:35 | |
When I am in Admin's browser # features/step_definitions/web_steps.rb:256 | |
Given I am on the home page # features/step_definitions/navigation_steps.rb:67 | |
And I login as "aa@metplus.org" with password "qwerty123" # features/step_definitions/devise_steps.rb:1 | |
Then I should see "Signed in successfully." # features/step_definitions/web_steps.rb:15 | |
Then I am in Paula's browser # features/step_definitions/web_steps.rb:256 | |
Then I go to the Jobseeker Registration page # features/step_definitions/navigation_steps.rb:63 | |
When I fill in "First Name" with "Paula" # features/step_definitions/web_steps.rb:85 | |
And I fill in "Last Name" with "Jones" # features/step_definitions/web_steps.rb:85 | |
And I fill in "Email" with "paulajones@gmail.com" # features/step_definitions/web_steps.rb:85 | |
And I fill in "Phone" with "345-890-7890" # features/step_definitions/web_steps.rb:85 | |
And I fill in "Password" with "qwerty123" # features/step_definitions/web_steps.rb:85 | |
And I fill in "Password Confirmation" with "qwerty123" # features/step_definitions/web_steps.rb:85 | |
And I select "1980" in select list "Year Of Birth" # features/step_definitions/web_steps.rb:182 | |
And I select "Unemployed Seeking" in select list "Status" # features/step_definitions/web_steps.rb:182 | |
Then I click the "Create Job seeker" button # features/step_definitions/web_steps.rb:135 | |
Then "paulajones@gmail.com" should receive an email with subject "Confirmation instructions" # features/step_definitions/email_steps.rb:59 | |
When "paulajones@gmail.com" opens the email # features/step_definitions/email_steps.rb:78 | |
Then they should see "Confirm my account" in the email body # features/step_definitions/email_steps.rb:109 | |
And "paulajones@gmail.com" follows "Confirm my account" in the email # features/step_definitions/email_steps.rb:182 | |
Then I should see "Your email address has been successfully confirmed." # features/step_definitions/web_steps.rb:15 | |
And "aa@metplus.org" should receive an email with subject "Job seeker registered" # features/step_definitions/email_steps.rb:59 | |
And "jane@metplus.org" should receive an email with subject "Job seeker registered" # features/step_definitions/email_steps.rb:59 | |
Then I am in Admin's browser # features/step_definitions/web_steps.rb:256 | |
And I should see "Job Seeker: Paula Jones has joined PETS." # features/step_definitions/web_steps.rb:15 | |
expected to find text "Job Seeker: Paula Jones has joined PETS." in "MET|PLUS Home Jobs About Contact Admin Hello, John Signed in successfully. × Add Job Seeker Unassigned Tasks Your Open Tasks All Open Tasks All Closed Tasks No outstanding tasks ® MetPlus 2018 | Terms and Conditions Apply | All Rights Reserved Home | About | Contact" (Capybara::ExpectationNotMet) | |
features/event_management.feature:59:in `And I should see "Job Seeker: Paula Jones has joined PETS."' | |
Then I go to the tasks page # features/step_definitions/navigation_steps.rb:63 | |
And I wait for 1 second # features/step_definitions/web_steps.rb:81 | |
And I should see "Job Seeker has no assigned Job Developer" # features/step_definitions/web_steps.rb:15 | |
Failing Scenarios: | |
cucumber features/event_management.feature:35 # Scenario: Job Seeker registers in PETS | |
1 scenario (1 failed) | |
33 steps (1 failed, 3 skipped, 29 passed) | |
0m17.467s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment