Skip to content

Instantly share code, notes, and snippets.

@aurels
Created November 29, 2011 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aurels/1407171 to your computer and use it in GitHub Desktop.
Save aurels/1407171 to your computer and use it in GitHub Desktop.
aurels@zouls:pagesmed (op-pictures) $ cucumber --drb
Using the default profile...
Disabling profiles...
@http://www.pivotaltracker.com/story/show/16172393 @account
Feature: Admins confirm user accounts
In order to help users with email problems
As an Admin
I confirm user accounts
Background: Logged in # features/account/admins_confirm_user_accounts.feature:7
Given I am a new, authenticated admin # features/step_definitions/authentication_steps.rb:9
Scenario: I confirm a user account # features/account/admins_confirm_user_accounts.feature:10
Given a user exists with confirmed_at: nil # features/step_definitions/pickle_steps.rb:4
When I go to the user edit page in BO # features/step_definitions/web_steps.rb:27
And I check "Confirmé" # features/step_definitions/web_steps.rb:68
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then the user should be confirmed # features/step_definitions/pickle_steps.rb:64
@http://www.pivotaltracker.com/story/show/16179493 @account
Feature: Admins disable account access
In order to keep untrustworthy users out of the platform
As an Admin
I disable account access
Scenario: I ban a user # features/account/admins_disable_account_access.feature:7
Given I am a new, authenticated admin # features/step_definitions/authentication_steps.rb:9
And a user exists # features/step_definitions/pickle_steps.rb:4
And I am on the user's edit page in BO # features/step_definitions/web_steps.rb:23
When I check "Bloqué" # features/step_definitions/web_steps.rb:68
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then the user should be banned # features/step_definitions/pickle_steps.rb:64
Scenario: A banned user cannot login # features/account/admins_disable_account_access.feature:15
Given I have one banned user "email@example.com" with password "secret" # features/step_definitions/pagesmed_steps.rb:14
And I am not authenticated # features/step_definitions/authentication_steps.rb:1
When I go to the login page # features/step_definitions/web_steps.rb:27
And I fill in the following: # features/step_definitions/web_steps.rb:58
| Adresse e-mail | email@example.com |
| Mot de passe | secret |
And I press "Connexion" # features/step_definitions/web_steps.rb:31
Then I should be on the home page # features/step_definitions/web_steps.rb:166
And I should see "Votre compte a été bloqué. Pour plus d'information veuillez nous contacter." # features/step_definitions/web_steps.rb:84
@http://www.pivotaltracker.com/story/show/16132979 @account
Feature: Admins see user confirmation
In order to check that user email is valid
As an Admin
I see which users have confirmed their account
Background: Logged in # features/account/admins_see_user_confirmation.feature:7
Given I am a new, authenticated admin # features/step_definitions/authentication_steps.rb:9
And a user exists with email: "confirmed@example.com" # features/step_definitions/pickle_steps.rb:4
And a user exists with email: "unconfirmed@unexample.com", confirmed_at: nil # features/step_definitions/pickle_steps.rb:4
@javascript
Scenario: I see users who have not confirmed their account # features/account/admins_see_user_confirmation.feature:13
Given I am on users list page in BO # features/step_definitions/web_steps.rb:23
When I filter by: "Confirmé le" # features/step_definitions/admin_steps.rb:2
And I select "Is blank" from confirmed at filter # features/step_definitions/pagesmed_steps.rb:37
And I submit the form # features/step_definitions/pagesmed_steps.rb:104
Then I should see "unconfirmed@unexample.com" # features/step_definitions/web_steps.rb:84
And I should not see "confirmed@example.com" # features/step_definitions/web_steps.rb:102
@http://www.pivotaltracker.com/story/show/16170435 @account
Feature: Professionals create accounts
In order to have a contact form on my PagesMed page
As a Professional
I create a user account
Scenario: I mention that I am a professional on signup form # features/account/professionals_create_accounts.feature:7
Given I am on the signup page # features/step_definitions/web_steps.rb:23
Then I should see "Je suis un professionnel de la santé" within signup form # features/step_definitions/web_steps.rb:14
Scenario: I create a professional account # features/account/professionals_create_accounts.feature:11
Given I am on the signup page # features/step_definitions/web_steps.rb:23
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Adresse e-mail | email@example.com |
| Prénom | Test |
| Nom | Test |
| Mot de passe | password |
| Confirmation du mot de passe | password |
And I choose "Oui" within professional radio buttons # features/step_definitions/web_steps.rb:14
And I press "Créer mon compte" # features/step_definitions/web_steps.rb:31
Then a user should exist with email: "email@example.com", professional: "true" # features/step_definitions/pickle_steps.rb:19
@http://www.pivotaltracker.com/story/show/16170525 @account
Feature: Users confirm email addresses
In order to get access to my account
As a User
I confirm my email address
Background: An email is sent after # features/account/users_confirm_email_addresses.feature:7
Given I am on the signup page # features/step_definitions/web_steps.rb:23
And I fill in the following: # features/step_definitions/web_steps.rb:58
| Adresse e-mail | email@example.com |
| Prénom | Test |
| Nom | Test |
| Mot de passe | password |
| Confirmation du mot de passe | password |
And I press "Créer mon compte" # features/step_definitions/web_steps.rb:31
Scenario: I confirm my registration # features/account/users_confirm_email_addresses.feature:17
Given 1 email should be delivered to "email@example.com" # features/step_definitions/email_steps.rb:29
When I follow "Activer mon compte" in the email # features/step_definitions/email_steps.rb:21
Then I should be on the home page # features/step_definitions/web_steps.rb:166
And I should see "Votre compte a été confirmé avec succès, vous êtes maintenant connecté" # features/step_definitions/web_steps.rb:84
Scenario: I confirm my registration twice # features/account/users_confirm_email_addresses.feature:23
Given 1 email should be delivered to "email@example.com" # features/step_definitions/email_steps.rb:29
When I follow "Activer mon compte" in the email # features/step_definitions/email_steps.rb:21
And I follow "Activer mon compte" in the email # features/step_definitions/email_steps.rb:21
Then I should be on new confirmation page # features/step_definitions/web_steps.rb:166
And I should see "Il semble que le code de confirmation soit invalide." # features/step_definitions/web_steps.rb:84
@http://www.pivotaltracker.com/story/show/16132763 @account
Feature: Users log in
In order to access my address book
As a User
I log in
Scenario: I go to the login page # features/account/users_log_in.feature:7
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I follow "Connexion" # features/step_definitions/web_steps.rb:35
Then I should be on the login page # features/step_definitions/web_steps.rb:166
Scenario: I log in # features/account/users_log_in.feature:12
Given I have one user "example@pagesmed.com" with password "secret" # features/step_definitions/authentication_steps.rb:5
When I go to the login page # features/step_definitions/web_steps.rb:27
And I fill in the following: # features/step_definitions/web_steps.rb:58
| Adresse e-mail | example@pagesmed.com |
| Mot de passe | secret |
And I press "Connexion" # features/step_definitions/web_steps.rb:31
Then I should be on the home page # features/step_definitions/web_steps.rb:166
And I should see "Vous êtes connecté." # features/step_definitions/web_steps.rb:84
Scenario: I see logout link once logged in # features/account/users_log_in.feature:22
Given I am a new, authenticated user # features/step_definitions/authentication_steps.rb:9
When I go to the home page # features/step_definitions/web_steps.rb:27
Then I should see "Déconnexion" # features/step_definitions/web_steps.rb:84
Scenario: I log out # features/account/users_log_in.feature:27
Given I am a new, authenticated user # features/step_definitions/authentication_steps.rb:9
When I go to the home page # features/step_definitions/web_steps.rb:27
And I follow "Déconnexion" # features/step_definitions/web_steps.rb:35
Then I should be on the home page # features/step_definitions/web_steps.rb:166
And I should see "Vous avez été déconnecté." # features/step_definitions/web_steps.rb:84
@http://www.pivotaltracker.com/story/show/16170513 @account
Feature: Users receive confirmation email
In order to get access to my account
As a User
I receive a confirmation email
Scenario: I receive a confirmation email when I sign up # features/account/users_receive_confirmation_email_.feature:7
Given I am on the signup page # features/step_definitions/web_steps.rb:23
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Adresse e-mail | email@example.com |
| Prénom | Test |
| Nom | Test |
| Mot de passe | password |
| Confirmation du mot de passe | password |
And I press "Créer mon compte" # features/step_definitions/web_steps.rb:31
Then 1 email should be delivered with to: "email@example.com", from: "noreply@pagesmed.com", subject: "Bienvenue sur PagesMed.com - Activation de votre compte" # features/step_definitions/email_steps.rb:33
And the email should link to confirmation page # features/step_definitions/email_steps.rb:57
@http://www.pivotaltracker.com/story/show/16132847 @account
Feature: Users retrieve lost passwords
In order to access my account
As a User
I retrieve my lost password
Background: # features/account/users_retrieve_lost_passwords.feature:7
Given I have one user "email@example.com" with password "secret" # features/step_definitions/authentication_steps.rb:5
And I am not authenticated # features/step_definitions/authentication_steps.rb:1
Scenario: I go to the new password request page # features/account/users_retrieve_lost_passwords.feature:11
Given I am on the login page # features/step_definitions/web_steps.rb:23
When I follow "demander un nouveau mot de passe" # features/step_definitions/web_steps.rb:35
Then I should be on the password retrieval page # features/step_definitions/web_steps.rb:166
Scenario: I ask for a new password # features/account/users_retrieve_lost_passwords.feature:16
Given I am on the password retrieval page # features/step_definitions/web_steps.rb:23
When I fill in "Adresse e-mail" with "email@example.com" # features/step_definitions/web_steps.rb:39
And I press "Envoyer" # features/step_definitions/web_steps.rb:31
Then 1 email should be delivered to "email@example.com" # features/step_definitions/email_steps.rb:29
Scenario: I click on the link in the email # features/account/users_retrieve_lost_passwords.feature:22
Given I requested a new password # features/step_definitions/pagesmed_steps.rb:27
And 1 email should be delivered # features/step_definitions/email_steps.rb:17
When I click the first link in the email # features/step_definitions/email_steps.rb:25
Then I should be on password modification page # features/step_definitions/web_steps.rb:166
Scenario: I change my password # features/account/users_retrieve_lost_passwords.feature:28
Given I requested a new password # features/step_definitions/pagesmed_steps.rb:27
And I clicked the link in the email # features/step_definitions/pagesmed_steps.rb:22
And I fill in the following: # features/step_definitions/web_steps.rb:58
| Nouveau mot de passe | secret |
| Confirmation du nouveau mot de passe | secret |
And I press "Envoyer" # features/step_definitions/web_steps.rb:31
Then I should be on the home page # features/step_definitions/web_steps.rb:166
And I should see "Votre mot de passe a été édité avec succès" # features/step_definitions/web_steps.rb:84
@http://www.pivotaltracker.com/story/show/21251229 @account
Feature: Users update their account information
In order to keep my contact information up to date
As a user
I update my account information
Background: I am logged in # features/account/users_update_their_account_information.feature:7
Given I am a new, authenticated user # features/step_definitions/authentication_steps.rb:9
Scenario: Users go to the account edit page # features/account/users_update_their_account_information.feature:10
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I follow "Mon Compte" # features/step_definitions/web_steps.rb:35
Then I should be on the account edit page # features/step_definitions/web_steps.rb:166
Scenario: Users update their account information # features/account/users_update_their_account_information.feature:15
Given I am on the account edit page # features/step_definitions/web_steps.rb:23
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Adresse e-mail | test@example.com |
| Prénom | test |
| Nom | example |
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then I should have first_name: "test", last_name: "example", email: "test@example.com" # features/step_definitions/account_steps.rb:1
@http://www.pivotaltracker.com/story/show/16130815 @account
Feature: Visitors create accounts
In order to create an address book
As a Visitor
I create a user account
Scenario: I go to the account creation page # features/account/visitors_create_accounts.feature:7
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I follow "Créer un compte patient" within the top menu bar # features/step_definitions/web_steps.rb:14
Then I should be on the account creation page # features/step_definitions/web_steps.rb:166
Scenario: I create an account # features/account/visitors_create_accounts.feature:12
Given I am on the account creation page # features/step_definitions/web_steps.rb:23
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Adresse e-mail | email@example.com |
| Prénom | Test |
| Nom | Test |
| Mot de passe | password |
| Confirmation du mot de passe | password |
And I press "Créer mon compte" # features/step_definitions/web_steps.rb:31
Then a user should exist with email: "email@example.com", first_name: "Test", last_name: "Test" # features/step_definitions/pickle_steps.rb:19
And I should be on the registration welcome page # features/step_definitions/web_steps.rb:166
Scenario Outline: I forget to fill a mandatory fields # features/account/visitors_create_accounts.feature:24
Given I am on the account creation page # features/step_definitions/web_steps.rb:23
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Adresse e-mail | email@example.com |
| Prénom | Test |
| Nom | Test |
| Mot de passe | password |
| Confirmation du mot de passe | password |
And I fill in "<attribute>" with "" # features/step_definitions/web_steps.rb:39
And I press "Créer mon compte" # features/step_definitions/web_steps.rb:31
Then a user should not exist with email: "email@example.com", first_name: "Test", last_name: "Test" # features/step_definitions/pickle_steps.rb:24
And I should see "Une ou plusieurs erreurs ont été repérées. Veuillez vérifier les champs en rouge." # features/step_definitions/web_steps.rb:84
Scenarios:
| attribute |
| Adresse e-mail |
| Prénom |
| Nom |
| Mot de passe |
| Confirmation du mot de passe |
Scenario: I create an account with an already existing email # features/account/visitors_create_accounts.feature:45
Given a user exists with email: "email@example.com" # features/step_definitions/pickle_steps.rb:4
And I am on the account creation page # features/step_definitions/web_steps.rb:23
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Adresse e-mail | email@example.com |
| Prénom | Test |
| Nom | Test |
| Mot de passe | password |
| Confirmation du mot de passe | password |
And I press "Créer mon compte" # features/step_definitions/web_steps.rb:31
Then a user should not exist with email: "email@example.com", first_name: "Test", last_name: "Test" # features/step_definitions/pickle_steps.rb:24
And I should see "Une ou plusieurs erreurs ont été repérées. Veuillez vérifier les champs en rouge." # features/step_definitions/web_steps.rb:84
Scenario: I create an account with a confirmation not matching password # features/account/visitors_create_accounts.feature:58
Given a user exists with email: "email@example.com" # features/step_definitions/pickle_steps.rb:4
And I am on the account creation page # features/step_definitions/web_steps.rb:23
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Adresse e-mail | email@example.com |
| Prénom | Test |
| Nom | Test |
| Mot de passe | password |
| Confirmation du mot de passe | drowssap |
And I press "Créer mon compte" # features/step_definitions/web_steps.rb:31
Then a user should not exist with email: "email@example.com", first_name: "Test", last_name: "Test" # features/step_definitions/pickle_steps.rb:24
And I should see "Une ou plusieurs erreurs ont été repérées. Veuillez vérifier les champs en rouge." # features/step_definitions/web_steps.rb:84
@http://www.pivotaltracker.com/story/show/16170759 @bookmarks
Feature: Users bookmark addresses
In order to remember professionals info
As a User
I bookmark professionals from '/category/location' page, on search results page and on professional page
Background: I am logged in and a contact exists # features/bookmarks/users_bookmark_addresses.feature:7
Given I am a new, authenticated user # features/step_definitions/authentication_steps.rb:9
And a contact "Medecin" exists in "Paris" # features/step_definitions/pagesmed_steps.rb:9
Scenario: I bookmark a professional from '/category/location' page # features/bookmarks/users_bookmark_addresses.feature:11
Given I reach the category page: "Medecins" in "Paris" # features/step_definitions/pagesmed_steps.rb:3
When I click the heart on the contact entry # features/step_definitions/bookmark_steps.rb:1
Then a bookmark should exist with contact: the contact # features/step_definitions/pickle_steps.rb:19
@http://www.pivotaltracker.com/story/show/16170907 @bookmarks
Feature: Users see bookmarked addresses
In order to find a professionals info later on
As a User
I see bookmarked addresses
Background: Logged in # features/bookmarks/users_see_bookmarked_addresses.feature:7
Given I am a new, authenticated user # features/step_definitions/authentication_steps.rb:9
Scenario: I go to the bookmark page when I click on the link in the header # features/bookmarks/users_see_bookmarked_addresses.feature:10
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I follow "Mes Favoris" # features/step_definitions/web_steps.rb:35
Then I should be on the bookmark page # features/step_definitions/web_steps.rb:166
Scenario: I see bookmarked items when I am on the bookmark page # features/bookmarks/users_see_bookmarked_addresses.feature:15
Given I have bookmarked 3 contacts # features/step_definitions/bookmark_steps.rb:6
When I am on the bookmark page # features/step_definitions/web_steps.rb:23
Then I should see 3 bookmarks # features/step_definitions/bookmark_steps.rb:11
@http://www.pivotaltracker.com/story/show/16170857 @cms
Feature: Admins change the directory root page
In order to get flexibility in page organisation
As an Admin
I change the directory root page
Scenario: # features/cms/admins_change_the_directory_root_page.feature:7
Given I am a new, authenticated admin # features/step_definitions/authentication_steps.rb:9
And two pages: "Page 1" and "Page 2" exist in a folder: "Mon Dossier" # features/step_definitions/cms_steps.rb:1
When I go to the folder edit page in BO # features/step_definitions/web_steps.rb:27
And I select "Page 2" from "Racine" # features/step_definitions/web_steps.rb:64
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
And I go to the folder page # features/step_definitions/web_steps.rb:27
Then I should see "Page 2" # features/step_definitions/web_steps.rb:84
@http://www.pivotaltracker.com/story/show/16170891 @contact-form
Feature: Admins receive an email when a User submit a message through the contact form
In order to answer quickly to a customer message
As an Admin
I receive an email when a User submit a message through the contact form
Scenario: I receive a confirmation email when a Visitor send a message # features/contact_form/admins_receive_an_email_when_a_user_submit_a_request_through_the_contact_form.feature:7
Given I am on the new message page # features/step_definitions/web_steps.rb:23
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Nom | Mon Nom |
| Adresse e-mail | me@example.com |
| Numéro de téléphone | 9999999999 |
| Sujet | Mon sujet |
| Message | Mon petit msg |
And I press "Envoyer" # features/step_definitions/web_steps.rb:31
Then 1 email should be delivered with from: "noreply@pagesmed.com", to: "support@pagesmed.com", subject: "[PagesMed - Contact] Mon sujet" # features/step_definitions/email_steps.rb:33
@http://www.pivotaltracker.com/story/show/16170899 @contact-form
Feature: Admins see messages in BO
In order to keep track of all the requests
As an Admin
I see messages in BO
Scenario: Admins see message requests in BO # features/contact_form/admins_see_messages_in_bo.feature:7
Given I am a new, authenticated admin # features/step_definitions/authentication_steps.rb:9
And a message exists with subject: "Demande de renseignement" # features/step_definitions/pickle_steps.rb:4
When I go to message list page in BO # features/step_definitions/web_steps.rb:27
Then I should see "Demande de renseignement" # features/step_definitions/web_steps.rb:84
@http://www.pivotaltracker.com/story/show/16170879 @contact-form
Feature: Users fill a contact form
In order to give feedback or ask questions
As a User
I fill a contact form
Scenario: I go to the contact page # features/contact_form/users_fill_a_contact_form.feature:7
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I follow "Contactez-nous !" # features/step_definitions/web_steps.rb:35
Then I should be on the new message page # features/step_definitions/web_steps.rb:166
Scenario: I fill and send a contact form # features/contact_form/users_fill_a_contact_form.feature:12
Given I am on the new message page # features/step_definitions/web_steps.rb:23
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Nom | Mon Nom |
| Adresse e-mail | me@example.com |
| Numéro de téléphone | 9999999999 |
| Sujet | Mon sujet |
| Message | Mon petit msg |
And I press "Envoyer" # features/step_definitions/web_steps.rb:31
Then I should see "Merci, nous avons bien reçu votre message. Nous vous répondrons dans les 48h ouvrables." # features/step_definitions/web_steps.rb:84
@http://www.pivotaltracker.com/story/show/16179421 @contact-pages
Feature: Admins refuse office ownership
In order to publish relevant data
As an Admin
I refuse office ownership. The office is then not mentioned on the map and the mini-site is deactivated
Background: As a logged in Admin # features/contact_pages/admins_refuse_office_ownership.feature:7
Given I am a new, authenticated admin # features/step_definitions/authentication_steps.rb:9
Scenario: I refuse contact # features/contact_pages/admins_refuse_office_ownership.feature:10
Given an approved professional exists # features/step_definitions/pickle_steps.rb:4
And I am on the user edit page in BO # features/step_definitions/web_steps.rb:23
And I uncheck "Approuvé" # features/step_definitions/web_steps.rb:72
And I press "Enregistrer et re-modifier" # features/step_definitions/web_steps.rb:31
Then the user should not be approved # features/step_definitions/pickle_steps.rb:73
Scenario: I do not see the unapproved user contact details # features/contact_pages/admins_refuse_office_ownership.feature:17
Given an unapproved professional exists # features/step_definitions/pickle_steps.rb:4
And the user contact name is "Arthur" # features/step_definitions/contact_pages_steps.rb:1
Then I should get a 404 error when I go to the user contact page # features/step_definitions/contact_pages_steps.rb:24
@http://www.pivotaltracker.com/story/show/16179371 @contact-pages
Feature: Admins see contact history
In order to explain unexpected situations
As an Admin
I see history of contact changes
Background: Logged in admin # features/contact_pages/admins_see_contact_history.feature:7
Given I am a new, authenticated admin # features/step_definitions/authentication_steps.rb:9
Scenario: # features/contact_pages/admins_see_contact_history.feature:10
Given a contact exists with full_name: "Arthur" # features/step_definitions/pickle_steps.rb:4
And I am on the contact edit page in BO # features/step_definitions/web_steps.rb:23
When I fill in "Nom" with "Bernard" # features/step_definitions/web_steps.rb:39
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
And I go to contact_versions list page in BO # features/step_definitions/web_steps.rb:27
And I follow "Détail" within first line of the table # features/step_definitions/web_steps.rb:14
Then I should see "Arthur" # features/step_definitions/web_steps.rb:84
And I should see "Bernard" # features/step_definitions/web_steps.rb:84
@http://www.pivotaltracker.com/story/show/16179339 @contact-pages
Feature: Admins validate office ownership
In order to publish relevant data
As an Admin
I approve contact ownership
Background: As a logged in Admin # features/contact_pages/admins_validate_office_ownership.feature:7
Given I am a new, authenticated admin # features/step_definitions/authentication_steps.rb:9
Scenario: I approve user # features/contact_pages/admins_validate_office_ownership.feature:10
Given an unapproved professional exists # features/step_definitions/pickle_steps.rb:4
And I am on the user edit page in BO # features/step_definitions/web_steps.rb:23
And I check "Approuvé" # features/step_definitions/web_steps.rb:68
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then the user should be approved # features/step_definitions/pickle_steps.rb:64
Scenario: I see the user contact details once approved # features/contact_pages/admins_validate_office_ownership.feature:17
Given an approved professional exists # features/step_definitions/pickle_steps.rb:4
And the user contact name is "Arthur" # features/step_definitions/contact_pages_steps.rb:1
When I go to the user contact page # features/step_definitions/web_steps.rb:27
Then I should see "Arthur" # features/step_definitions/web_steps.rb:84
@http://www.pivotaltracker.com/story/show/16187947 @contact-pages
Feature: Practitioners submit a prescription
In order to validate my identity
As a Practitioner
I submit a prescription in my account
Background: I am a logged in, unapproved professional # features/contact_pages/practitioners_submit_a_prescription.feature:7
Given I am an unapproved, authenticated professional # features/step_definitions/authentication_steps.rb:9
Scenario: Practitioners are asked to submit a prescription # features/contact_pages/practitioners_submit_a_prescription.feature:10
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I follow "Ma Page Pro" # features/step_definitions/web_steps.rb:35
Then I should be on the new prescription page # features/step_definitions/web_steps.rb:166
Scenario: Practitioners submit a prescription # features/contact_pages/practitioners_submit_a_prescription.feature:15
Given I am on the new prescription page # features/step_definitions/web_steps.rb:23
When I attach the file "doc/sample/ordonnance.png" to "Ordonnance barrée" # features/step_definitions/web_steps.rb:80
And I press "Envoyer" # features/step_definitions/web_steps.rb:31
Then I should see "Votre ordonnance est en cours de validation" # features/step_definitions/web_steps.rb:84
@http://www.pivotaltracker.com/story/show/16179621 @op-pictures
Feature: Professionals add pictures to their office page
In order to give a better image of my office to clients
As a Professional
I add pictures (with legends) to my office page if my subscription plan allows it
Scenario: I add pictures to my office page # features/contact_pages/professionals_add_pictures_to_their_office_page.feature.feature:7
Given I am an approved, authenticated professional # features/step_definitions/authentication_steps.rb:9
And I have a subscription with plan: "Gold" # features/step_definitions/subscriptions_steps.rb:33
And I am on the home page # features/step_definitions/web_steps.rb:23
And I follow "Ma Page Pro" # features/step_definitions/web_steps.rb:35
When I attach the file "spec/support/assets/rails.jpg" to "Photo" # features/step_definitions/web_steps.rb:80
And I fill in "Légende" with "Ma petite salle d'attente" # features/step_definitions/web_steps.rb:39
And I press "Ajouter la photo" # features/step_definitions/web_steps.rb:31
Then I should see "La photo a été ajoutée avec succès à votre fiche professionnelle." # features/step_definitions/web_steps.rb:84
And I should see "Ma petite salle d'attente" within contact pictures table # features/step_definitions/web_steps.rb:14
Scenario: I cannot add pictures to my office page if I don't have the Gold plan # features/contact_pages/professionals_add_pictures_to_their_office_page.feature.feature:18
Given I am an approved, authenticated professional # features/step_definitions/authentication_steps.rb:9
And I am on the home page # features/step_definitions/web_steps.rb:23
And I follow "Ma Page Pro" # features/step_definitions/web_steps.rb:35
Then I should not see "Gérez les photos de votre fiche professionnelle" # features/step_definitions/web_steps.rb:102
@http://www.pivotaltracker.com/story/show/16172307 @contact-pages
Feature: Professionals create their office page
In order to have my office details
As a Professional
I create a office page linked to my user account
Background: Logged as a professional # features/contact_pages/professionals_create_their_office_page.feature:7
Given I am a new, authenticated professional # features/step_definitions/authentication_steps.rb:9
Scenario: I see create button when there is no results on search link page # features/contact_pages/professionals_create_their_office_page.feature:10
When I go to the contact linking page # features/step_definitions/web_steps.rb:27
And I do not find any contacts # features/step_definitions/contact_pages_steps.rb:7
Then I should see "Créez votre fiche" within create contact paragraph # features/step_definitions/web_steps.rb:14
Scenario: I go to the new contact page # features/contact_pages/professionals_create_their_office_page.feature:15
Given I am on the contact linking page # features/step_definitions/web_steps.rb:23
And I do not find any contacts # features/step_definitions/contact_pages_steps.rb:7
When I follow "Créez votre fiche" within create contact paragraph # features/step_definitions/web_steps.rb:14
Then I should be on the new contact page # features/step_definitions/web_steps.rb:166
@javascript
Scenario: I create a new contact # features/contact_pages/professionals_create_their_office_page.feature:22
Given a contact category exists with name: "Dentiste" # features/step_definitions/pickle_steps.rb:4
And a location exists with code: "75000" # features/step_definitions/pickle_steps.rb:4
And I am on the new contact page # features/step_definitions/web_steps.rb:23
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Nom | Pierre Dupont |
| Adresse | 21, rue de la gare |
| Code postal | 75000 |
| Ville | Paris |
And I choose "Professions" # features/step_definitions/web_steps.rb:76
And I select "Dentiste" from "Catégorie" # features/step_definitions/web_steps.rb:64
And I press "Créer la fiche" # features/step_definitions/web_steps.rb:31
Then I should be on the user validation page # features/step_definitions/web_steps.rb:166
And a contact should exist with full_name: "Pierre Dupont", postal_code: "75000" # features/step_definitions/pickle_steps.rb:19
@http://www.pivotaltracker.com/story/show/16172737 @contact-pages
Feature: Professionals edit office page details
In order to keep my office details up-to-date
As a Professional
I edit my office page details
Background: Logged as an approved professional # features/contact_pages/professionals_edit_office_page_details.feature:7
Given I am an approved, authenticated professional # features/step_definitions/authentication_steps.rb:9
Scenario: I go to the contact edit page # features/contact_pages/professionals_edit_office_page_details.feature:10
Given I am on the home page # features/step_definitions/web_steps.rb:23
And I follow "Ma Page Pro" # features/step_definitions/web_steps.rb:35
Then I should be on the contact edit page # features/step_definitions/web_steps.rb:166
Scenario: I update my professional information # features/contact_pages/professionals_edit_office_page_details.feature:15
Given a location exists with code: "75000" # features/step_definitions/pickle_steps.rb:4
And I am on the contact edit page # features/step_definitions/web_steps.rb:23
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Nom | Pierre Dupont |
| Adresse | 21, rue de la gare |
| Code postal | 75000 |
| Ville | Paris |
And I press "Mettre à jour" # features/step_definitions/web_steps.rb:31
Then I should be on contact edit page # features/step_definitions/web_steps.rb:166
And a contact should exist with full_name: "Pierre Dupont", postal_code: "75000" # features/step_definitions/pickle_steps.rb:19
@http://www.pivotaltracker.com/story/show/16172289 @contact-pages
Feature: Professionals link their user account to their office page
in order to manage my office details
As a Professional
I link my user account to my office page
Scenario: I link a contact to my user # features/contact_pages/professionals_link_their_user_account_to_their_office_page.feature:7
Given I am a new, authenticated professional # features/step_definitions/authentication_steps.rb:9
And I am on the contact linking page # features/step_definitions/web_steps.rb:23
When I find "Matthieu Gerard" with postal code "12345" # features/step_definitions/contact_pages_steps.rb:13
And I choose "Matthieu Gerard" within contact link results # features/step_definitions/web_steps.rb:14
And I press "Lier à mon compte" # features/step_definitions/web_steps.rb:31
Then I should be on the user validation page # features/step_definitions/web_steps.rb:166
And the contact should be my contact # features/step_definitions/contact_pages_steps.rb:20
@http://www.pivotaltracker.com/story/show/16172209 @contact-pages
Feature: Professionals search for their office details in the database
In order to manage my office page
As a Professional
I search for office page in the database before doing anything else in my account
Scenario: I go to the linking page when my profile is not linked with a contact page # features/contact_pages/professionals_search_for_their_office_details_in_the_database.feature:7
Given I am a new, authenticated professional # features/step_definitions/authentication_steps.rb:9
When I go to the home page # features/step_definitions/web_steps.rb:27
And I follow "Ma Page Pro" # features/step_definitions/web_steps.rb:35
Then I should be on contact linking page # features/step_definitions/web_steps.rb:166
Scenario: I search for my contact information # features/contact_pages/professionals_search_for_their_office_details_in_the_database.feature:13
Given I am a new, authenticated professional # features/step_definitions/authentication_steps.rb:9
And I am on the contact linking page # features/step_definitions/web_steps.rb:23
And a contact exists with full_name: "Matthieu Gerard", postal_code: "12345" # features/step_definitions/pickle_steps.rb:4
When I fill in "Nom" with "Gerard" # features/step_definitions/web_steps.rb:39
And I fill in "Code postal" with "12345" # features/step_definitions/web_steps.rb:39
And I press "Rechercher" within contact linking form # features/step_definitions/web_steps.rb:14
Then I should see "Matthieu Gerard" # features/step_definitions/web_steps.rb:84
@http://www.pivotaltracker.com/story/show/16117179 @directory
Feature: Admins automatically update professionals database
In order to keep professionals info up-to-date
As an Admin
I update database automatically
Background: Category "Psychologues" and location "Nantes" exists # features/directory/admins/admins_automatically_update_professionals_database.feature:7
Given a contact category exists with legacy_key: "PSYCHOLOGUES" # features/step_definitions/pickle_steps.rb:4
And a location exists with name: "Nantes", code: "44000" # features/step_definitions/pickle_steps.rb:4
@rake
Scenario: "rake update:contacts" updates contacts who changed of phone_no # features/directory/admins/admins_automatically_update_professionals_database.feature:12
Given a contact exists with full_name: "BOUVATTIER SABINE", address: "2 RUE DOUET GARNIER", postal_code: "44000", city: "NANTES", phone_no: "0663615606", batch: "true" # features/step_definitions/pickle_steps.rb:4
And I have a file named "database.tsv" with the following content: # features/step_definitions/update_steps.rb:3
"""
BOUVATTIER SABINE 2 RUE DOUET GARNIER 44000 NANTES 0663615606 PSYCHOLOGUES
"""
No such file or directory - /Users/aurels/Coding/clients/pagesmed/tmp/features/database.tsv (Errno::ENOENT)
./features/step_definitions/update_steps.rb:4:in `initialize'
./features/step_definitions/update_steps.rb:4:in `open'
./features/step_definitions/update_steps.rb:4:in `/^I have a file named "([^"]*)" with the following content:$/'
features/directory/admins/admins_automatically_update_professionals_database.feature:14:in `And I have a file named "database.tsv" with the following content:'
When I run "rake update:contacts" with FILE="database.tsv" # features/step_definitions/update_steps.rb:7
Then a contact should exist with phone_no: "0663615606" # features/step_definitions/pickle_steps.rb:19
@rake
Scenario: "rake update" updates contact with the same name and phone number # features/directory/admins/admins_automatically_update_professionals_database.feature:22
Given a contact: "test" exists with full_name: "BOUVATTIER SABINE", address: "2 RUE DU GRAND MORNE", postal_code: "45000", city: "Orléans", phone_no: "0663615606", batch: "true" # features/step_definitions/pickle_steps.rb:4
And I have a file named "database.tsv" with the following content: # features/step_definitions/update_steps.rb:3
"""
BOUVATTIER SABINE 2 RUE DOUET GARNIER 44000 NANTES 0663615606 PSYCHOLOGUES
"""
No such file or directory - /Users/aurels/Coding/clients/pagesmed/tmp/features/database.tsv (Errno::ENOENT)
./features/step_definitions/update_steps.rb:4:in `initialize'
./features/step_definitions/update_steps.rb:4:in `open'
./features/step_definitions/update_steps.rb:4:in `/^I have a file named "([^"]*)" with the following content:$/'
features/directory/admins/admins_automatically_update_professionals_database.feature:24:in `And I have a file named "database.tsv" with the following content:'
When I run "rake update:contacts" with FILE="database.tsv" # features/step_definitions/update_steps.rb:7
Then the contact's address should be "2 Rue Douet Garnier" # features/step_definitions/pickle_steps.rb:83
And the contact's postal_code should be "44000" # features/step_definitions/pickle_steps.rb:83
And the contact's city should be "Nantes" # features/step_definitions/pickle_steps.rb:83
@rake
Scenario: "rake update" does not update records marked as owned # features/directory/admins/admins_automatically_update_professionals_database.feature:34
Given a contact exists with full_name: "Bouvattier Sabine", phone_no: "0663615606", owner_id: "123", batch: "true" # features/step_definitions/pickle_steps.rb:4
And I have a file named "database.tsv" with the following content: # features/step_definitions/update_steps.rb:3
"""
BOUVATTIER SABINE 2 RUE DOUET GARNIER 44000 NANTES 0663615606 PSYCHOLOGUES
"""
No such file or directory - /Users/aurels/Coding/clients/pagesmed/tmp/features/database.tsv (Errno::ENOENT)
./features/step_definitions/update_steps.rb:4:in `initialize'
./features/step_definitions/update_steps.rb:4:in `open'
./features/step_definitions/update_steps.rb:4:in `/^I have a file named "([^"]*)" with the following content:$/'
features/directory/admins/admins_automatically_update_professionals_database.feature:36:in `And I have a file named "database.tsv" with the following content:'
When I run "rake update:contacts" with FILE="database.tsv" # features/step_definitions/update_steps.rb:7
Then the contact's address should not be "2 RUE DOUET GARNIER" # features/step_definitions/pickle_steps.rb:83
And the contact's postal_code should not be "44000" # features/step_definitions/pickle_steps.rb:83
And the contact's city should not be "NANTES" # features/step_definitions/pickle_steps.rb:83
@rake
Scenario: "rake update" creates records with unmatched "name + office" or "name + phone" # features/directory/admins/admins_automatically_update_professionals_database.feature:46
Given I have a file named "database.tsv" with the following content: # features/step_definitions/update_steps.rb:3
"""
BOUVATTIER SABINE 2 RUE DOUET GARNIER 44000 NANTES 0663615606 PSYCHOLOGUES
"""
No such file or directory - /Users/aurels/Coding/clients/pagesmed/tmp/features/database.tsv (Errno::ENOENT)
./features/step_definitions/update_steps.rb:4:in `initialize'
./features/step_definitions/update_steps.rb:4:in `open'
./features/step_definitions/update_steps.rb:4:in `/^I have a file named "([^"]*)" with the following content:$/'
features/directory/admins/admins_automatically_update_professionals_database.feature:47:in `Given I have a file named "database.tsv" with the following content:'
When I run "rake update:contacts" with FILE="database.tsv" # features/step_definitions/update_steps.rb:7
Then a contact should exist with full_name: "Bouvattier Sabine", phone_no: "0663615606" # features/step_definitions/pickle_steps.rb:19
Scenario: Admin makes contacts touched when it update them # features/directory/admins/admins_automatically_update_professionals_database.feature:54
Given a contact exists # features/step_definitions/pickle_steps.rb:4
And I am a new, authenticated admin # features/step_definitions/authentication_steps.rb:9
And I am on the contact edit page in BO # features/step_definitions/web_steps.rb:23
When press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then the contact should be marked as touched # features/step_definitions/directory_steps.rb:2
expected: not nil
got: nil (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/directory_steps.rb:3:in `/the contact should be marked as touched/'
features/directory/admins/admins_automatically_update_professionals_database.feature:59:in `Then the contact should be marked as touched'
@rake
Scenario: "rake update" do not update touched records # features/directory/admins/admins_automatically_update_professionals_database.feature:62
Given a contact exists with full_name: "Bouvattier Sabine", phone_no: "0663615606", owner_id: "123" # features/step_definitions/pickle_steps.rb:4
And I have a file named "database.tsv" with the following content: # features/step_definitions/update_steps.rb:3
"""
BOUVATTIER SABINE 2 RUE DOUET GARNIER 44000 NANTES 0663615606 PSYCHOLOGUES
"""
No such file or directory - /Users/aurels/Coding/clients/pagesmed/tmp/features/database.tsv (Errno::ENOENT)
./features/step_definitions/update_steps.rb:4:in `initialize'
./features/step_definitions/update_steps.rb:4:in `open'
./features/step_definitions/update_steps.rb:4:in `/^I have a file named "([^"]*)" with the following content:$/'
features/directory/admins/admins_automatically_update_professionals_database.feature:64:in `And I have a file named "database.tsv" with the following content:'
When I run "rake update:contacts" with FILE="database.tsv" # features/step_definitions/update_steps.rb:7
Then the contact's address should not be "2 RUE DOUET GARNIER" # features/step_definitions/pickle_steps.rb:83
And the contact's postal_code should not be "44000" # features/step_definitions/pickle_steps.rb:83
And the contact's city should not be "NANTES" # features/step_definitions/pickle_steps.rb:83
@http://www.pivotaltracker.com/story/show/15916163 @directory
Feature: Admins group contacts by category
In order to make contacts browsable
As an Admin
I group contacts by category
Background: Logged in # features/directory/admins/admins_group_contacts_by_category.feature:7
Given I am a new, authenticated admin # features/step_definitions/authentication_steps.rb:9
Scenario: Admins create category # features/directory/admins/admins_group_contacts_by_category.feature:10
Given I am on contact_category new page in BO # features/step_definitions/web_steps.rb:23
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Nom | Dentiste |
| Clef CD-ROM | test |
And I select "Profession" from "Type" # features/step_definitions/web_steps.rb:64
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then a contact category should exist with name: "Dentiste" # features/step_definitions/pickle_steps.rb:19
Scenario: Admins add a category to contacts # features/directory/admins/admins_group_contacts_by_category.feature:19
Given a contact: "jerome" exists # features/step_definitions/pickle_steps.rb:4
And a contact category: "dentist" exists with name: "Dentiste" # features/step_definitions/pickle_steps.rb:4
When I go to the contact edit page in BO # features/step_definitions/web_steps.rb:27
And I select "Dentiste" from "Catégorie" # features/step_definitions/web_steps.rb:64
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then contact category: "dentist" should be the contact: "jerome"'s category # features/step_definitions/pickle_steps.rb:54
Scenario: Admins cannot save a contact without category # features/directory/admins/admins_group_contacts_by_category.feature:27
Given a contact exists # features/step_definitions/pickle_steps.rb:4
When I go to the contact edit page in BO # features/step_definitions/web_steps.rb:27
And I select "" from "Catégorie" # features/step_definitions/web_steps.rb:64
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then I should see /n'a pas pu être modifié/ # features/step_definitions/web_steps.rb:92
Scenario: Admins add a parent category to categories # features/directory/admins/admins_group_contacts_by_category.feature:34
Given a contact category: "doctor" exists with name: "Médecin" # features/step_definitions/pickle_steps.rb:4
And a contact category: "cardiologist" exists # features/step_definitions/pickle_steps.rb:4
When I go to the contact category: "cardiologist" edit page in BO # features/step_definitions/web_steps.rb:27
And I select "Médecin" from "Parent" # features/step_definitions/web_steps.rb:64
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then contact category: "doctor" should be the contact category: "cardiologist" parent # features/step_definitions/pickle_steps.rb:54
@http://www.pivotaltracker.com/story/show/15916119 @directory
Feature: Admins group contacts by their locations
In order to make contacts browsable
As an Admin
I group contacts info by location
Background: Logged in # features/directory/admins/admins_group_contacts_by_location.feature:7
Given I am a new, authenticated admin # features/step_definitions/authentication_steps.rb:9
Scenario: Admins create locations # features/directory/admins/admins_group_contacts_by_location.feature:10
Given I am on location new page in BO # features/step_definitions/web_steps.rb:23
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Nom | Paris |
| Code | 75 |
And I select "Département" from "Type" # features/step_definitions/web_steps.rb:64
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then a location should exist with name: "Paris" # features/step_definitions/pickle_steps.rb:19
Scenario: Admins add a location to a contact # features/directory/admins/admins_group_contacts_by_location.feature:19
Given an contact exists # features/step_definitions/pickle_steps.rb:4
And a location: "paris" exists with name: "Paris" # features/step_definitions/pickle_steps.rb:4
When I go to the contact edit page in BO # features/step_definitions/web_steps.rb:27
And I select "Paris" from "Localisation" # features/step_definitions/web_steps.rb:64
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then location: "paris" should be the contact location # features/step_definitions/pickle_steps.rb:54
Scenario: Admins add a parent location to locations # features/directory/admins/admins_group_contacts_by_location.feature:27
Given a location: "ile_de_france" exists with name: "Île de France" # features/step_definitions/pickle_steps.rb:4
And a location: "paris" exists # features/step_definitions/pickle_steps.rb:4
When I go to the location: "paris" edit page in BO # features/step_definitions/web_steps.rb:27
And I select "Île de France" from "Parent" # features/step_definitions/web_steps.rb:64
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then location: "ile_de_france" should be the location: "paris" parent # features/step_definitions/pickle_steps.rb:54
Scenario: Admins select a location type # features/directory/admins/admins_group_contacts_by_location.feature:35
Given a location: "ile_de_france" exists with name: "Île de France" # features/step_definitions/pickle_steps.rb:4
When I go to the location edit page in BO # features/step_definitions/web_steps.rb:27
Then I should see /Région.*Département.*Ville/ within "select#location_location_type" # features/step_definitions/web_steps.rb:14
@http://www.pivotaltracker.com/story/show/15915859 @directory
Feature: Admins publish contacts
In order to give visibility to contacts
As an Admin
I publish information about them
Background: Admin is logged in # features/directory/admins/admins_publish_contacts_information.feature:7
Given I am a new, authenticated admin # features/step_definitions/authentication_steps.rb:9
Scenario: Admins create Contact # features/directory/admins/admins_publish_contacts_information.feature:10
Given a contact category exists with name: "Dentiste" # features/step_definitions/pickle_steps.rb:4
And a location: "paris" exists with name: "Paris" # features/step_definitions/pickle_steps.rb:4
And I am on contact's new page in BO # features/step_definitions/web_steps.rb:23
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Nom | Jean-Baptiste Escoyez |
| No de téléphone | 0486/37.75.93 |
| No de téléphone 2 | - |
| No de fax | - |
| Adresse | Rue de Rigenée, 90 |
| Adresse 2 | |
| Code postal | 1495 |
| Ville | Marbais |
And I select "Dentiste" from "Catégorie" # features/step_definitions/web_steps.rb:64
And I select "Paris" from "Localisation" # features/step_definitions/web_steps.rb:64
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then a contact should exist with full_name: "Jean-Baptiste Escoyez", phone_no: "0486/37.75.93", phone_no_2: "-", fax_no: "-" # features/step_definitions/pickle_steps.rb:19
And the contact's address should be "Rue de Rigenée, 90" # features/step_definitions/pickle_steps.rb:83
And the contact's postal_code should be "1495" # features/step_definitions/pickle_steps.rb:83
And the contact's city should be "Marbais" # features/step_definitions/pickle_steps.rb:83
Scenario Outline: Admins cannot save contacts with a mandatory field blank in BO # features/directory/admins/admins_publish_contacts_information.feature:31
Given a contact exists # features/step_definitions/pickle_steps.rb:4
And I am on the contact's edit page in BO # features/step_definitions/web_steps.rb:23
When I fill in "<attribute>" with "" # features/step_definitions/web_steps.rb:39
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then I should see /n'a pas pu être modifié/ # features/step_definitions/web_steps.rb:92
Scenarios:
| attribute |
| contact_full_name |
| contact_address |
| contact_postal_code |
| contact_city |
@http://www.pivotaltracker.com/story/show/16129053 @directory
Feature: Visitors see a link to see all search results at the bottom of results overview on browsing pages
In order to find professionals info
As a Visitor
I see a link to see all search results at the bottom of results overview on
Background: # features/directory/visitors/visitors_see_a_link_to_see_all_search_results_at_the_bottom_of_results_overview_on_browsing_pages.feature:7
Given a contact category: "medecins" exists # features/step_definitions/pickle_steps.rb:4
And a location: "paris" exists with name: "Paris" # features/step_definitions/pickle_steps.rb:4
And a contact exists with full_name: "Jean", category: contact category: "medecins", location: location: "paris" # features/step_definitions/pickle_steps.rb:4
And contacts are indexed # features/step_definitions/pagesmed_steps.rb:108
@javascript
Scenario: I see links to overview of results on the home page # features/directory/visitors/visitors_see_a_link_to_see_all_search_results_at_the_bottom_of_results_overview_on_browsing_pages.feature:14
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I wait for 1 second # features/step_definitions/pagesmed_steps.rb:95
Then I should see a link to search for any category in any location within more results section # features/step_definitions/web_steps.rb:14
@javascript
Scenario: I see links to overview of results on "/location" page # features/directory/visitors/visitors_see_a_link_to_see_all_search_results_at_the_bottom_of_results_overview_on_browsing_pages.feature:20
Given I am on the location: "paris" page # features/step_definitions/web_steps.rb:23
When I wait for 1 second # features/step_definitions/pagesmed_steps.rb:95
Then I should see a link to search for any category in the location within more results section # features/step_definitions/web_steps.rb:14
@javascript
Scenario: I see links to overview of results on "/category" page # features/directory/visitors/visitors_see_a_link_to_see_all_search_results_at_the_bottom_of_results_overview_on_browsing_pages.feature:26
Given I am on the contact category: "medecins" page # features/step_definitions/web_steps.rb:23
Unable to load URL: http://127.0.0.1:56453/provident1429765 (Capybara::Driver::Webkit::WebkitInvalidResponseError)
./features/step_definitions/web_steps.rb:24:in `/^(?:|I )am on (.+)$/'
features/directory/visitors/visitors_see_a_link_to_see_all_search_results_at_the_bottom_of_results_overview_on_browsing_pages.feature:27:in `Given I am on the contact category: "medecins" page'
When I wait for 1 second # features/step_definitions/pagesmed_steps.rb:95
Then I should see a link to search for the contact category in any location within more results section # features/step_definitions/web_steps.rb:14
Unable to load URL: http://127.0.0.1:56453/provident1429765 (Capybara::Driver::Webkit::WebkitInvalidResponseError)
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-webkit-0.6.1/lib/capybara/driver/webkit/browser.rb:164:in `check'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-webkit-0.6.1/lib/capybara/driver/webkit/browser.rb:72:in `command'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-webkit-0.6.1/lib/capybara/driver/webkit/browser.rb:32:in `reset!'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-webkit-0.6.1/lib/capybara/driver/webkit.rb:85:in `reset!'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-1.0.1/lib/capybara/session.rb:70:in `reset!'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-1.0.1/lib/capybara/dsl.rb:74:in `block in reset_sessions!'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-1.0.1/lib/capybara/dsl.rb:74:in `each'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-1.0.1/lib/capybara/dsl.rb:74:in `reset_sessions!'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-1.0.1/lib/capybara/cucumber.rb:10:in `After'
@javascript
Scenario: I see links to overview of results on "/category/location" page # features/directory/visitors/visitors_see_a_link_to_see_all_search_results_at_the_bottom_of_results_overview_on_browsing_pages.feature:32
Given I am on the contact category: "medecins" in location: "paris" page # features/step_definitions/web_steps.rb:23
Unable to load URL: http://127.0.0.1:56453/velit3827312/paris (Capybara::Driver::Webkit::WebkitInvalidResponseError)
./features/step_definitions/web_steps.rb:24:in `/^(?:|I )am on (.+)$/'
features/directory/visitors/visitors_see_a_link_to_see_all_search_results_at_the_bottom_of_results_overview_on_browsing_pages.feature:33:in `Given I am on the contact category: "medecins" in location: "paris" page'
When I wait for 1 second # features/step_definitions/pagesmed_steps.rb:95
Then I should see a link to search for the contact category in the location within more results section # features/step_definitions/web_steps.rb:14
Unable to load URL: http://127.0.0.1:56453/velit3827312/paris (Capybara::Driver::Webkit::WebkitInvalidResponseError)
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-webkit-0.6.1/lib/capybara/driver/webkit/browser.rb:164:in `check'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-webkit-0.6.1/lib/capybara/driver/webkit/browser.rb:72:in `command'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-webkit-0.6.1/lib/capybara/driver/webkit/browser.rb:32:in `reset!'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-webkit-0.6.1/lib/capybara/driver/webkit.rb:85:in `reset!'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-1.0.1/lib/capybara/session.rb:70:in `reset!'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-1.0.1/lib/capybara/dsl.rb:74:in `block in reset_sessions!'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-1.0.1/lib/capybara/dsl.rb:74:in `each'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-1.0.1/lib/capybara/dsl.rb:74:in `reset_sessions!'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-1.0.1/lib/capybara/cucumber.rb:10:in `After'
@http://www.pivotaltracker.com/story/show/15920101 @directory @sunspot
Feature: Visitors see a map on browsing pages
In order to have an exceptional experience
As a Visitor
I see a map on homepage, "/location" page, "/category" and "/category/location" page
Background: # features/directory/visitors/visitors_see_a_map_on_browsing_pages.feature:7
Given a contact category: "medecins" exists # features/step_definitions/pickle_steps.rb:4
And a location: "paris" exists # features/step_definitions/pickle_steps.rb:4
And a contact exists with category: contact category: "medecins", location: location: "paris" # features/step_definitions/pickle_steps.rb:4
And contacts are indexed # features/step_definitions/pagesmed_steps.rb:108
@javascript
Scenario: Visitors see a map on contact page # features/directory/visitors/visitors_see_a_map_on_browsing_pages.feature:14
Given I am on the contact category: "medecins" in location: "paris" page # features/step_definitions/web_steps.rb:23
Unable to load URL: http://127.0.0.1:56453/fugit4341775/north-lamarville7393166 (Capybara::Driver::Webkit::WebkitInvalidResponseError)
./features/step_definitions/web_steps.rb:24:in `/^(?:|I )am on (.+)$/'
features/directory/visitors/visitors_see_a_map_on_browsing_pages.feature:15:in `Given I am on the contact category: "medecins" in location: "paris" page'
When I wait for 1 seconds # features/step_definitions/pagesmed_steps.rb:95
Then I should see a map # features/step_definitions/pagesmed_steps.rb:61
Unable to load URL: http://127.0.0.1:56453/fugit4341775/north-lamarville7393166 (Capybara::Driver::Webkit::WebkitInvalidResponseError)
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-webkit-0.6.1/lib/capybara/driver/webkit/browser.rb:164:in `check'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-webkit-0.6.1/lib/capybara/driver/webkit/browser.rb:72:in `command'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-webkit-0.6.1/lib/capybara/driver/webkit/browser.rb:32:in `reset!'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-webkit-0.6.1/lib/capybara/driver/webkit.rb:85:in `reset!'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-1.0.1/lib/capybara/session.rb:70:in `reset!'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-1.0.1/lib/capybara/dsl.rb:74:in `block in reset_sessions!'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-1.0.1/lib/capybara/dsl.rb:74:in `each'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-1.0.1/lib/capybara/dsl.rb:74:in `reset_sessions!'
/Users/aurels/.rvm/gems/ruby-1.9.3-p0@pagesmed/gems/capybara-1.0.1/lib/capybara/cucumber.rb:10:in `After'
@http://www.pivotaltracker.com/story/show/15920429 @directory
Feature: Visitors see a map on professional page
In order to have an exception experience
As a Visitor
I see a map centered on professionals locations when I am on a professional's page
@javascript
Scenario: Visitors see a map on contact page # features/directory/visitors/visitors_see_a_map_on_professional_page.feature:8
Given the contact: "jean" exists # features/step_definitions/pickle_steps.rb:4
When I go to the contact: "jean" page # features/step_definitions/web_steps.rb:27
And I wait for 1 seconds # features/step_definitions/pagesmed_steps.rb:95
Then I should see a map # features/step_definitions/pagesmed_steps.rb:61
@http://www.pivotaltracker.com/story/show/16125101 @directory
Feature: Visitors see an overview of results for the selected category and the displayed area in a sidebar tab of the map on browsing pages
In order to have a quick overview of the results
As a Visitor
I see an overview of results for the selected category and the displayed area in a sidebar tab of the map on homepage, "/location" page, "/category" and "/category/location" page
Background: # features/directory/visitors/visitors_see_an_overview_of_results_for_the_selected_category_and_the_displayed_area_in_a_sidebar_tab_of_the_map_on_browsing_pages.feature:7
Given a contact category: "medecins" exists # features/step_definitions/pickle_steps.rb:4
And a location: "paris" exists # features/step_definitions/pickle_steps.rb:4
And a contact exists with full_name: "Jean", category: contact category: "medecins", location: location: "paris" # features/step_definitions/pickle_steps.rb:4
And contacts are indexed # features/step_definitions/pagesmed_steps.rb:108
Scenario: I see links to overview of results on the home page # features/directory/visitors/visitors_see_an_overview_of_results_for_the_selected_category_and_the_displayed_area_in_a_sidebar_tab_of_the_map_on_browsing_pages.feature:13
When I am on the home page # features/step_definitions/web_steps.rb:23
Then I should see "Jean" within result overview # features/step_definitions/web_steps.rb:14
Scenario: I see links to overview of results on "/location" page # features/directory/visitors/visitors_see_an_overview_of_results_for_the_selected_category_and_the_displayed_area_in_a_sidebar_tab_of_the_map_on_browsing_pages.feature:17
When I am on the location: "paris" page # features/step_definitions/web_steps.rb:23
Then I should see "Jean" within result overview # features/step_definitions/web_steps.rb:14
Scenario: I see links to overview of results on "/category" page # features/directory/visitors/visitors_see_an_overview_of_results_for_the_selected_category_and_the_displayed_area_in_a_sidebar_tab_of_the_map_on_browsing_pages.feature:21
When I am on the contact category: "medecins" page # features/step_definitions/web_steps.rb:23
Couldn't find ContactCategory with id=1 [WHERE "contact_categories"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:13:in `show'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:24:in `/^(?:|I )am on (.+)$/'
features/directory/visitors/visitors_see_an_overview_of_results_for_the_selected_category_and_the_displayed_area_in_a_sidebar_tab_of_the_map_on_browsing_pages.feature:22:in `When I am on the contact category: "medecins" page'
Then I should see "Jean" within result overview # features/step_definitions/web_steps.rb:14
Scenario: I see links to overview of results on "/category/location" page # features/directory/visitors/visitors_see_an_overview_of_results_for_the_selected_category_and_the_displayed_area_in_a_sidebar_tab_of_the_map_on_browsing_pages.feature:25
When I am on the contact category: "medecins" in location: "paris" page # features/step_definitions/web_steps.rb:23
Couldn't find Location with id=1 [WHERE "locations"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:31:in `init_browsing_locations'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:24:in `/^(?:|I )am on (.+)$/'
features/directory/visitors/visitors_see_an_overview_of_results_for_the_selected_category_and_the_displayed_area_in_a_sidebar_tab_of_the_map_on_browsing_pages.feature:26:in `When I am on the contact category: "medecins" in location: "paris" page'
Then I should see "Jean" within result overview # features/step_definitions/web_steps.rb:14
@http://www.pivotaltracker.com/story/show/16124249 @directory
Feature: Visitors see categories or sub-categories in a sidebar tab of the map
In order to find the right professional
As a Visitor
I see categories or sub-categories (if available) in sidebar tab of the map on the homepage, "/location" page, "/category" and "/category/location" page
Background: # features/directory/visitors/visitors_see_categories_or_sub-categories_in_a_sidebar_tab_of_the_map.feature:7
Given the following contact categories exists: # features/step_definitions/pickle_steps.rb:14
| contact category | name | parent | category_type |
| medecins | Médecins | | ProfessionalCategory |
| cardiologues | Cardiologues | contact category: "medecins" | ProfessionalCategory |
| dieteticiens | Diététiciens | | ProfessionalCategory |
| podologues | Podologues | contact category: "medecins" | ProfessionalCategory |
| hopitaux | Hopitaux | | FacilityCategory |
| centres | Centre Médicaux | | FacilityCategory |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | category |
| Jean | contact category: "cardiologues" |
| Bernard | contact category: "dieteticiens" |
| Eric | contact category: "podologues" |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | category |
| Hopital Notre Dame | contact category: "hopitaux" |
| Centre Medical St Jean | contact category: "centres" |
Scenario: I see categories in the map sidebar when I am on home page # features/directory/visitors/visitors_see_categories_or_sub-categories_in_a_sidebar_tab_of_the_map.feature:28
When I am on the home page # features/step_definitions/web_steps.rb:23
Then I should see "Médecins" within map sidebar # features/step_definitions/web_steps.rb:14
expected there to be content "Médecins" in "PraticiensEtablissementsRésultatsConsultez tous les résultats …FranceVoir toute la liste" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:86:in `/^(?:|I )should see "([^"]*)"$/'
features/directory/visitors/visitors_see_categories_or_sub-categories_in_a_sidebar_tab_of_the_map.feature:30:in `Then I should see "Médecins" within map sidebar'
And I should see "Diététiciens" within map sidebar # features/step_definitions/web_steps.rb:14
Scenario: I see sub-categories in the map sidebar when I am on Médecins page (category with children) # features/directory/visitors/visitors_see_categories_or_sub-categories_in_a_sidebar_tab_of_the_map.feature:33
When I am on the contact_category: "medecins" page # features/step_definitions/web_steps.rb:23
Couldn't find ContactCategory with id=1 [WHERE "contact_categories"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:13:in `show'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:24:in `/^(?:|I )am on (.+)$/'
features/directory/visitors/visitors_see_categories_or_sub-categories_in_a_sidebar_tab_of_the_map.feature:34:in `When I am on the contact_category: "medecins" page'
Then I should see "Cardiologues" within map sidebar # features/step_definitions/web_steps.rb:14
Scenario: I see siblings categories in the map sidebar when I am on Diététicien page (category without children) # features/directory/visitors/visitors_see_categories_or_sub-categories_in_a_sidebar_tab_of_the_map.feature:37
When I am on the contact_category: "cardiologues" page # features/step_definitions/web_steps.rb:23
Couldn't find ContactCategory with id=2 [WHERE "contact_categories"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:13:in `show'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:24:in `/^(?:|I )am on (.+)$/'
features/directory/visitors/visitors_see_categories_or_sub-categories_in_a_sidebar_tab_of_the_map.feature:38:in `When I am on the contact_category: "cardiologues" page'
Then I should see "Podologues" within map sidebar # features/step_definitions/web_steps.rb:14
@http://www.pivotaltracker.com/story/show/16117439 @directory
Feature: Visitors see links to categories and regions on the homepage
In order to find contact information
As a Visitor
I see links to categories on the home page
Background: # features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:7
Given the following contact categories exists: # features/step_definitions/pickle_steps.rb:14
| contact category | name | parent | category_type |
| medecins | Médecins | | ProfessionalCategory |
| cardiologues | Cardiologues | contact category: "medecins" | ProfessionalCategory |
| dieteticiens | Diététiciens | | ProfessionalCategory |
| podologues | Podologues | | ProfessionalCategory |
| hopitaux | Hopitaux | | FacilityCategory |
| centres | Centre Médicaux | | FacilityCategory |
And the following locations exists: # features/step_definitions/pickle_steps.rb:14
| location | name | parent |
| ile_de_france | Île de France | |
| paris | Paris | location: "ile de france" |
| lyon | Lyon | |
| bordeaux | Bordeaux | |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | address | postal_code | city | location | category |
| Jean | Place du Môle, 17 | 75002 | Paris | location: "paris" | contact category: "cardiologues" |
| Bernard | Rue de la couronne | 33100 | Bordeaux | location: "bordeaux" | contact category: "cardiologues" |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | category | address | postal_code | city | location |
| Eric | contact category: "dieteticiens" | Place du Môle, 17 | 75002 | Paris | location: "paris" |
| Hopital Notre Dame | contact category: "hopitaux" | Place du Môle, 17 | 75002 | Paris | location: "paris" |
| Centre Medical St Jean | contact category: "centres" | Place du Môle, 17 | 75002 | Paris | location: "paris" |
Scenario: Visitors see links to non-empty categories # features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:35
When I go to the homepage # features/step_definitions/web_steps.rb:27
Then I should see "Médecins" within navigation by professional category # features/step_definitions/web_steps.rb:14
expected there to be content "Médecins" in "Annuaire des praticiens" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:86:in `/^(?:|I )should see "([^"]*)"$/'
features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:37:in `Then I should see "Médecins" within navigation by professional category'
And I should see "Diététiciens" within navigation by professional category # features/step_definitions/web_steps.rb:14
And I should not see "Podologues" within navigation by professional category # features/step_definitions/web_steps.rb:14
Scenario: Visitors click on links to non-empty categories # features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:41
Given I am on the homepage # features/step_definitions/web_steps.rb:23
When follow "Diététiciens" within navigation by professional category # features/step_definitions/web_steps.rb:14
no link with title, id or text 'Diététiciens' found (Capybara::ElementNotFound)
(eval):2:in `click_link'
./features/step_definitions/web_steps.rb:36:in `/^(?:|I )follow "([^"]*)"$/'
features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:43:in `When follow "Diététiciens" within navigation by professional category'
Then I should be on the contact category: "dieteticiens" page # features/step_definitions/web_steps.rb:166
Scenario: Visitors see profession categories and facility categories # features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:46
When I go to the homepage # features/step_definitions/web_steps.rb:27
Then I should see "Annuaire des praticiens" # features/step_definitions/web_steps.rb:84
And I should see "Annuaire des établissements" # features/step_definitions/web_steps.rb:84
And I should see "Hopitaux" within navigation by facility category # features/step_definitions/web_steps.rb:14
expected there to be content "Hopitaux" in "Annuaire des établissements" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:86:in `/^(?:|I )should see "([^"]*)"$/'
features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:50:in `And I should see "Hopitaux" within navigation by facility category'
And I should not see "Hopitaux" within navigation by professional category # features/step_definitions/web_steps.rb:14
Scenario: Visitors see categories sorted by name # features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:53
When I go to the homepage # features/step_definitions/web_steps.rb:27
Then I should see "Diététiciens" before "Médecins" within navigation by professional category # features/step_definitions/web_steps.rb:14
expected xpath "//*" with text /Diététiciens.*Médecins/ to return something (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:96:in `/^(?:|I )should see \/([^\/]*)\/$/'
features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:55:in `Then I should see "Diététiciens" before "Médecins" within navigation by professional category'
And I should see "Centre Médicaux" before "Hopitaux" within navigation by facility category # features/step_definitions/web_steps.rb:14
Scenario: Visitors see categories in two columns # features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:58
When I go to the homepage # features/step_definitions/web_steps.rb:27
Then I should see "Centre Médicaux" within navigation by facility category first column # features/step_definitions/web_steps.rb:14
expected there to be content "Centre Médicaux" in "" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:86:in `/^(?:|I )should see "([^"]*)"$/'
features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:60:in `Then I should see "Centre Médicaux" within navigation by facility category first column'
Then I should see "Hopitaux" within navigation by facility category second column # features/step_definitions/web_steps.rb:14
Scenario: Visitors see links to non-empty root locations # features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:63
When I go to the homepage # features/step_definitions/web_steps.rb:27
Then I should see "Île de France" within navigation by location # features/step_definitions/web_steps.rb:14
expected there to be content "Île de France" in "Annuaire par régions" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:86:in `/^(?:|I )should see "([^"]*)"$/'
features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:65:in `Then I should see "Île de France" within navigation by location'
And I should not see "Lyon" within navigation by location # features/step_definitions/web_steps.rb:14
Scenario: Visitors click on links to non-empty locations # features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:68
Given I am on the homepage # features/step_definitions/web_steps.rb:23
When follow "Île de France" within navigation by location # features/step_definitions/web_steps.rb:14
no link with title, id or text 'Île de France' found (Capybara::ElementNotFound)
(eval):2:in `click_link'
./features/step_definitions/web_steps.rb:36:in `/^(?:|I )follow "([^"]*)"$/'
features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:70:in `When follow "Île de France" within navigation by location'
Then I should be on the location: "ile_de_france" page # features/step_definitions/web_steps.rb:166
Scenario: Visitors see locations sorted by name # features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:73
When I go to the homepage # features/step_definitions/web_steps.rb:27
Then I should see "Bordeaux" before "Île de France" within navigation by location # features/step_definitions/web_steps.rb:14
expected xpath "//*" with text /Bordeaux.*Île de France/ to return something (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:96:in `/^(?:|I )should see \/([^\/]*)\/$/'
features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:75:in `Then I should see "Bordeaux" before "Île de France" within navigation by location'
Scenario: Visitors see categories in two columns # features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:77
When I go to the homepage # features/step_definitions/web_steps.rb:27
Then I should see "Bordeaux" within navigation by location first column # features/step_definitions/web_steps.rb:14
expected there to be content "Bordeaux" in "" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:86:in `/^(?:|I )should see "([^"]*)"$/'
features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:79:in `Then I should see "Bordeaux" within navigation by location first column'
Then I should see "Île de France" within navigation by location second column # features/step_definitions/web_steps.rb:14
@http://www.pivotaltracker.com/story/show/16118113 @directory
Feature: Visitors see links to categories and sub areas on location page
In order to find contact information
As a Visitor
I see links to categories and sub locations on "/location" page
Background: # features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:7
Given the following contact categories exists: # features/step_definitions/pickle_steps.rb:14
| contact category | name | parent | category_type |
| medecins | Médecins | | ProfessionalCategory |
| cardiologues | Cardiologues | contact category: "medecins" | ProfessionalCategory |
| dieteticiens | Diététiciens | | ProfessionalCategory |
| podologues | Podologues | | ProfessionalCategory |
| hopitaux | Hopitaux | | FacilityCategory |
| centres | Centre Médicaux | | FacilityCategory |
And the following locations exists: # features/step_definitions/pickle_steps.rb:14
| location | name | parent |
| ile_de_france | Île de France | |
| paris | Paris | location: "ile de france" |
| yvelines | Yvelines | location: "ile de france" |
| lyon | Lyon | |
| bordeaux | Bordeaux | |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | address | postal_code | city | location | category |
| Jean | Place du Môle, 17 | 75002 | Paris | location: "paris" | contact category: "cardiologues" |
| Bernard | Rue de la couronne | 33100 | Bordeaux | location: "yvelines" | contact category: "cardiologues" |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | category |
| Eric | contact category: "dieteticiens" |
| Hopital Notre Dame | contact category: "hopitaux" |
| Centre Medical St Jean | contact category: "centres" |
Scenario: Visitors see links to sub-locations # features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:36
When I go to the location: "ile de france" page # features/step_definitions/web_steps.rb:27
Then I should see "Paris" within navigation by location # features/step_definitions/web_steps.rb:14
expected there to be content "Paris" in "Annuaire par régions" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:86:in `/^(?:|I )should see "([^"]*)"$/'
features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:38:in `Then I should see "Paris" within navigation by location'
Scenario: Visitors click on links to sub-locations # features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:40
Given I am on the location: "ile de france" page # features/step_definitions/web_steps.rb:23
When follow "Paris" within navigation by location # features/step_definitions/web_steps.rb:14
no link with title, id or text 'Paris' found (Capybara::ElementNotFound)
(eval):2:in `click_link'
./features/step_definitions/web_steps.rb:36:in `/^(?:|I )follow "([^"]*)"$/'
features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:42:in `When follow "Paris" within navigation by location'
Then I should be on the location: "paris" page # features/step_definitions/web_steps.rb:166
Scenario: Visitors see links to location siblings if there is no sub-locations # features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:45
When I go to the location: "paris" page # features/step_definitions/web_steps.rb:27
Then I should see "Yvelines" within navigation by location # features/step_definitions/web_steps.rb:14
expected there to be content "Yvelines" in "Annuaire par régions" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:86:in `/^(?:|I )should see "([^"]*)"$/'
features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:47:in `Then I should see "Yvelines" within navigation by location'
Scenario: Visitors see links to categories # features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:49
When I go to the location: "ile de france" page # features/step_definitions/web_steps.rb:27
Then I should see "Médecins Île de France" within navigation by professional category # features/step_definitions/web_steps.rb:14
expected there to be content "Médecins Île de France" in "Annuaire des praticiens" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:86:in `/^(?:|I )should see "([^"]*)"$/'
features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:51:in `Then I should see "Médecins Île de France" within navigation by professional category'
And I should see "Hopitaux Île de France" within navigation by facility category # features/step_definitions/web_steps.rb:14
Scenario: Visitors click on links to categories # features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:54
Given I am on the location: "ile de france" page # features/step_definitions/web_steps.rb:23
When follow "Médecins Île de France" within navigation by professional category # features/step_definitions/web_steps.rb:14
no link with title, id or text 'Médecins Île de France' found (Capybara::ElementNotFound)
(eval):2:in `click_link'
./features/step_definitions/web_steps.rb:36:in `/^(?:|I )follow "([^"]*)"$/'
features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:56:in `When follow "Médecins Île de France" within navigation by professional category'
Then I should be on the contact category: "medecins" in location: "ile de france" page # features/step_definitions/web_steps.rb:166
@http://www.pivotaltracker.com/story/show/16121809 @directory
Feature: Visitors see links to contact's page category/city page
In order to find contact's info
A a Visitor
I see links to contact's page when I'm on "/category/city" page
Background: # features/directory/visitors/visitors_see_links_to_practitioner_s_page_category_city_page.feature:7
Given the following contact categories exists: # features/step_definitions/pickle_steps.rb:14
| contact category | name | singular_name | parent | category_type |
| medecins | Médecins | Médecin | | ProfessionalCategory |
| cardiologues | Cardiologues | Cardiologue | contact category: "medecins" | ProfessionalCategory |
| dieteticiens | Diététiciens | Diététicien | contact category: "medecins" | ProfessionalCategory |
| podologues | Podologues | Podologue | | ProfessionalCategory |
| hopitaux | Hopitaux | Hopital | | FacilityCategory |
| centres | Centre Médicaux | Centre Médical | | FacilityCategory |
And the following locations exists: # features/step_definitions/pickle_steps.rb:14
| location | name | parent |
| ile de france | Île de France | |
| yvelines | Yvelines | location: "ile de france" |
| lyon | Lyon | |
| bordeaux | Bordeaux | |
And the following locations exists: # features/step_definitions/pickle_steps.rb:14
| location | name | parent | location_type |
| paris | Paris | location: "ile de france" | City |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| contact | full_name | address | postal_code | city | location | category | phone_no |
| jean | Jean | Place du Môle, 17 | 75002 | Paris | location: "paris" | contact category: "cardiologues" | 12 34 56 78 90 |
| brenard | Bernard | Rue de la couronne | 33100 | Bordeaux | location: "bordeaux" | contact category: "dieteticiens" | |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | category |
| Eric | contact category: "dieteticiens" |
| Hopital Notre Dame | contact category: "hopitaux" |
| Centre Medical St Jean | contact category: "centres" |
And contacts are indexed # features/step_definitions/pagesmed_steps.rb:108
Scenario: I see links to contacts when I am on category page with location which is a city # features/directory/visitors/visitors_see_links_to_practitioner_s_page_category_city_page.feature:41
When I go to the contact category: "cardiologues" in location: "paris" page # features/step_definitions/web_steps.rb:27
Couldn't find Location with id=5 [WHERE "locations"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:31:in `init_browsing_locations'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:28:in `/^(?:|I )go to (.+)$/'
features/directory/visitors/visitors_see_links_to_practitioner_s_page_category_city_page.feature:42:in `When I go to the contact category: "cardiologues" in location: "paris" page'
Then I should see "Jean" within results section # features/step_definitions/web_steps.rb:14
And I should see /Médecin.*Cardiologue/ within results section # features/step_definitions/web_steps.rb:14
And I should see "12 34 56 78 90" within results section # features/step_definitions/web_steps.rb:14
Scenario: I see links to contacts when I am on category page with location which is a city # features/directory/visitors/visitors_see_links_to_practitioner_s_page_category_city_page.feature:47
Given I am on the contact category: "cardiologues" in location: "paris" page # features/step_definitions/web_steps.rb:23
Couldn't find Location with id=5 [WHERE "locations"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:31:in `init_browsing_locations'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:24:in `/^(?:|I )am on (.+)$/'
features/directory/visitors/visitors_see_links_to_practitioner_s_page_category_city_page.feature:48:in `Given I am on the contact category: "cardiologues" in location: "paris" page'
And I follow "Jean" within results section # features/step_definitions/web_steps.rb:14
Then I should be on the contact: "jean" page # features/step_definitions/web_steps.rb:166
@http://www.pivotaltracker.com/story/show/16117943 @directory
Feature: Visitors see links to regions and other categories on category page
In order to find contact's info
As a Visitor
I see links to regions and other categories on "/category" page
Background: # features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:7
Given the following contact categories exists: # features/step_definitions/pickle_steps.rb:14
| contact category | name | parent | category_type |
| medecins | Médecins | | ProfessionalCategory |
| cardiologues | Cardiologues | contact category: "medecins" | ProfessionalCategory |
| dieteticiens | Diététiciens | contact category: "medecins" | ProfessionalCategory |
| podologues | Podologues | | ProfessionalCategory |
| hopitaux | Hopitaux | | FacilityCategory |
| centres | Centre Médicaux | | FacilityCategory |
And the following locations exists: # features/step_definitions/pickle_steps.rb:14
| location | name | parent |
| ile_de_france | Île de France | |
| paris | Paris | location: "ile de france" |
| yvelines | Yvelines | location: "ile de france" |
| lyon | Lyon | |
| bordeaux | Bordeaux | |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | address | postal_code | city | location | category |
| Jean | Place du Môle, 17 | 75002 | Paris | location: "paris" | contact category: "cardiologues" |
| Bernard | Rue de la couronne | 33100 | Bordeaux | location: "bordeaux" | contact category: "dieteticiens" |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | category |
| Eric | contact category: "dieteticiens" |
| Hopital Notre Dame | contact category: "hopitaux" |
| Centre Medical St Jean | contact category: "centres" |
Scenario: I see links to locations # features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:36
When I go to the contact category: "medecins" page # features/step_definitions/web_steps.rb:27
Couldn't find ContactCategory with id=1 [WHERE "contact_categories"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:13:in `show'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:28:in `/^(?:|I )go to (.+)$/'
features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:37:in `When I go to the contact category: "medecins" page'
Then I should see "Île de France" within navigation by location # features/step_definitions/web_steps.rb:14
And I should see "Bordeaux" within navigation by location # features/step_definitions/web_steps.rb:14
Scenario: I clicks links to locations # features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:41
Given I am on the contact category: "medecins" page # features/step_definitions/web_steps.rb:23
Couldn't find ContactCategory with id=1 [WHERE "contact_categories"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:13:in `show'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:24:in `/^(?:|I )am on (.+)$/'
features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:42:in `Given I am on the contact category: "medecins" page'
When I follow "Île de France" within navigation by location # features/step_definitions/web_steps.rb:14
Then I should be on the contact category: "medecins" in location: "ile de france" page # features/step_definitions/web_steps.rb:166
Scenario: I see links to sub-categories # features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:46
When I go to the contact category: "medecins" page # features/step_definitions/web_steps.rb:27
Couldn't find ContactCategory with id=1 [WHERE "contact_categories"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:13:in `show'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:28:in `/^(?:|I )go to (.+)$/'
features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:47:in `When I go to the contact category: "medecins" page'
Then I should see "Cardiologues" within navigation by professional category # features/step_definitions/web_steps.rb:14
Scenario: I click links to sub-categories # features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:50
Given I am on the contact category: "medecins" page # features/step_definitions/web_steps.rb:23
Couldn't find ContactCategory with id=1 [WHERE "contact_categories"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:13:in `show'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:24:in `/^(?:|I )am on (.+)$/'
features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:51:in `Given I am on the contact category: "medecins" page'
When I follow "Cardiologues" within navigation by professional category # features/step_definitions/web_steps.rb:14
Then I should be on the contact category: "cardiologues" page # features/step_definitions/web_steps.rb:166
Scenario: I see links to siblings categories if category has no children # features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:55
When I go to the contact category: "cardiologues" page # features/step_definitions/web_steps.rb:27
Couldn't find ContactCategory with id=2 [WHERE "contact_categories"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:13:in `show'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:28:in `/^(?:|I )go to (.+)$/'
features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:56:in `When I go to the contact category: "cardiologues" page'
Then I should see "Diététiciens" within navigation by professional category # features/step_definitions/web_steps.rb:14
@http://www.pivotaltracker.com/story/show/16118201 @directory
Feature: Visitors see links to sub-areas and sub-categories on category/location page
In order to find contact's info
As a Visitor
I see links to sub-areas and sub-categories on "/category/location" page
Background: # features/directory/visitors/visitors_see_links_to_sub-areas_and_sub-categories_on_category_location_page.feature:7
Given the following contact categories exists: # features/step_definitions/pickle_steps.rb:14
| contact category | name | parent | category_type |
| medecins | Médecins | | ProfessionalCategory |
| cardiologues | Cardiologues | contact category: "medecins" | ProfessionalCategory |
| dieteticiens | Diététiciens | contact category: "medecins" | ProfessionalCategory |
| podologues | Podologues | | ProfessionalCategory |
| hopitaux | Hopitaux | | FacilityCategory |
| centres | Centre Médicaux | | FacilityCategory |
And the following locations exists: # features/step_definitions/pickle_steps.rb:14
| location | name | parent |
| ile de france | Île de France | |
| paris | Paris | location: "ile de france" |
| yvelines | Yvelines | location: "ile de france" |
| lyon | Lyon | |
| bordeaux | Bordeaux | |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | address | postal_code | city | location | category |
| Jean | Place du Môle, 17 | 75002 | Paris | location: "paris" | contact category: "cardiologues" |
| Bernard | Rue de la couronne | 33100 | Bordeaux | location: "bordeaux" | contact category: "dieteticiens" |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | category |
| Eric | contact category: "dieteticiens" |
| Hopital Notre Dame | contact category: "hopitaux" |
| Centre Medical St Jean | contact category: "centres" |
Scenario: I see links to sub-categories and sub-locations # features/directory/visitors/visitors_see_links_to_sub-areas_and_sub-categories_on_category_location_page.feature:36
When I go to the contact category: "medecins" in location: "ile de france" page # features/step_definitions/web_steps.rb:27
Couldn't find Location with id=1 [WHERE "locations"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:31:in `init_browsing_locations'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:28:in `/^(?:|I )go to (.+)$/'
features/directory/visitors/visitors_see_links_to_sub-areas_and_sub-categories_on_category_location_page.feature:37:in `When I go to the contact category: "medecins" in location: "ile de france" page'
Then I should see "Médecins Paris" within navigation by location # features/step_definitions/web_steps.rb:14
And I should see "Cardiologues Île de France" within navigation by professional category # features/step_definitions/web_steps.rb:14
Scenario: I click link to sub-location # features/directory/visitors/visitors_see_links_to_sub-areas_and_sub-categories_on_category_location_page.feature:41
Given I am on the contact category: "medecins" in location: "ile de france" page # features/step_definitions/web_steps.rb:23
Couldn't find Location with id=1 [WHERE "locations"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:31:in `init_browsing_locations'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:24:in `/^(?:|I )am on (.+)$/'
features/directory/visitors/visitors_see_links_to_sub-areas_and_sub-categories_on_category_location_page.feature:42:in `Given I am on the contact category: "medecins" in location: "ile de france" page'
When I follow "Médecins Paris" within navigation by location # features/step_definitions/web_steps.rb:14
Then I should be on the contact category: "medecins" in location: "paris" page # features/step_definitions/web_steps.rb:166
Scenario: I click links to sub-category # features/directory/visitors/visitors_see_links_to_sub-areas_and_sub-categories_on_category_location_page.feature:46
Given I am on the contact category: "medecins" in location: "ile de france" page # features/step_definitions/web_steps.rb:23
Couldn't find Location with id=1 [WHERE "locations"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:31:in `init_browsing_locations'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:24:in `/^(?:|I )am on (.+)$/'
features/directory/visitors/visitors_see_links_to_sub-areas_and_sub-categories_on_category_location_page.feature:47:in `Given I am on the contact category: "medecins" in location: "ile de france" page'
When I follow "Cardiologues Île de France" within navigation by professional category # features/step_definitions/web_steps.rb:14
Then I should be on the contact category: "cardiologues" in location: "ile de france" page # features/step_definitions/web_steps.rb:166
@http://www.pivotaltracker.com/story/show/16122511 @directory
Feature: Visitors see pagination between contact's listing page on category/location page
In order to find contact's info
As a Visitor
I see pagination between contact's listing page when I'm on "/category/location" page
Background: # features/directory/visitors/visitors_see_pagination_between_practitioner_s_listing_page_on_category_location_page.feature:7
Given the contact category: "medecins" exists with name: "Médecins", singular_name: "Médecin" # features/step_definitions/pickle_steps.rb:4
And the location: "paris" exists with name: "Paris" # features/step_definitions/pickle_steps.rb:4
And 10 contacts exist with full_name: "Contact page 1", location: location: "paris", category: contact_category: "medecins" # features/step_definitions/pickle_steps.rb:9
And 10 contacts exist with full_name: "Contact page 2", location: location: "paris", category: contact_category: "medecins" # features/step_definitions/pickle_steps.rb:9
And contacts are indexed # features/step_definitions/pagesmed_steps.rb:108
Scenario: I see max 10 results on category/location pages # features/directory/visitors/visitors_see_pagination_between_practitioner_s_listing_page_on_category_location_page.feature:14
When I go to the contact category: "medecins" in location: "paris" page # features/step_definitions/web_steps.rb:27
Couldn't find Location with id=1 [WHERE "locations"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:31:in `init_browsing_locations'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:28:in `/^(?:|I )go to (.+)$/'
features/directory/visitors/visitors_see_pagination_between_practitioner_s_listing_page_on_category_location_page.feature:15:in `When I go to the contact category: "medecins" in location: "paris" page'
Then I should see /(Contact page 1.*){10}/ within ".results" # features/step_definitions/web_steps.rb:14
Scenario: I see pagination links on category/location pages when there is more than 10 results # features/directory/visitors/visitors_see_pagination_between_practitioner_s_listing_page_on_category_location_page.feature:18
When I go to the contact category: "medecins" in location: "paris" page # features/step_definitions/web_steps.rb:27
Couldn't find Location with id=1 [WHERE "locations"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:31:in `init_browsing_locations'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:28:in `/^(?:|I )go to (.+)$/'
features/directory/visitors/visitors_see_pagination_between_practitioner_s_listing_page_on_category_location_page.feature:19:in `When I go to the contact category: "medecins" in location: "paris" page'
Then I should see /(1.*2.*Suivante)/ within ".results .paging-a" # features/step_definitions/web_steps.rb:14
Scenario: I see more results when I follow pagination links # features/directory/visitors/visitors_see_pagination_between_practitioner_s_listing_page_on_category_location_page.feature:22
Given I am on the contact category: "medecins" in location: "paris" page # features/step_definitions/web_steps.rb:23
Couldn't find Location with id=1 [WHERE "locations"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:31:in `init_browsing_locations'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:24:in `/^(?:|I )am on (.+)$/'
features/directory/visitors/visitors_see_pagination_between_practitioner_s_listing_page_on_category_location_page.feature:23:in `Given I am on the contact category: "medecins" in location: "paris" page'
When I follow "2" within "div.paging-a" # features/step_definitions/web_steps.rb:14
Then I should see /(Contact page 2.*){10}/ within ".results" # features/step_definitions/web_steps.rb:14
@http://www.pivotaltracker.com/story/show/16121765 @directory
Feature: Visitors see contact's info on contact's page
In order to contact a specific contact
As a Visitor
I see contact's info on contact's page
Scenario: I see contact name, address and phone numbers on contact page # features/directory/visitors/visitors_see_practitioner_s_info_on_practitioner_s_page.feature:7
Given the contact category: "medecins" exists with name: "Médecins", singular_name: "Médecin" # features/step_definitions/pickle_steps.rb:4
And the location: "paris" exists with name: "Paris" # features/step_definitions/pickle_steps.rb:4
And a contact "jean" exists with full_name: "Jean", address: "Place du Môle, 17", postal_code: "75002", city: "Paris", phone_no: "12 34 56 78 90", fax_no: "09 87 65 43 21", category: contact_category "medecins", location: location: "paris" # features/step_definitions/pickle_steps.rb:4
When I go to the contact: "jean" page # features/step_definitions/web_steps.rb:27
Then I should see "Jean" within "#content header h1" # features/step_definitions/web_steps.rb:14
And I should see "Médecin - Place du Môle, 17, 75002 Paris" within "#content header h2" # features/step_definitions/web_steps.rb:14
And I should see /Jean.*Place du Môle, 17.*75002.*Paris.*12 34 56 78 90.*09 87 65 43 21/ within ".aside table" # features/step_definitions/web_steps.rb:14
And I should see "Médecin" within ".aside ul.listing-a" # features/step_definitions/web_steps.rb:14
@http://www.pivotaltracker.com/story/show/16172681 @search
Feature: Visitors search categories via related-words from a thesaurus
In order to find a professional even if I do not know the precise name of his category
As a Visitor
I search categories via related-words from a thesaurus
Background: # features/search/visitors_search_categories_via_related-words_from_a_thesaurus.feature:7
Given the following contact categories exists: # features/step_definitions/pickle_steps.rb:14
| contact category | name | thesaurus |
| cardiologues | Cardiologues | coeur, arrêt cardiaque |
| dieteticiens | Diététiciens | |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | category |
| Jean | contact category: "cardiologues" |
| Bernard | contact category: "dieteticiens" |
@javascript
Scenario: Visitors see propositions when I start typing a category # features/search/visitors_search_categories_via_related-words_from_a_thesaurus.feature:19
Given I am on the homepage # features/step_definitions/web_steps.rb:23
And I fill in autocomplete "keywords" with "coeur" # features/step_definitions/pagesmed_steps.rb:113
Then I should see "Cardiologue" within keyword propositions # features/step_definitions/web_steps.rb:14
expected there to be content "Cardiologue" in "" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:86:in `/^(?:|I )should see "([^"]*)"$/'
features/search/visitors_search_categories_via_related-words_from_a_thesaurus.feature:22:in `Then I should see "Cardiologue" within keyword propositions'
@http://www.pivotaltracker.com/story/show/15913637 @search @sunspot
Feature: Visitors search professionals by categories and place
In order to find professional info
As a Visitor
I search professionals by categories and place
Background: # features/search/visitors_search_professionals_by_categories_and_place.feature:7
Given the following contact categories exists: # features/step_definitions/pickle_steps.rb:14
| contact category | name |
| cardiologues | Cardiologues |
| dieteticiens | Diététiciens |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | city | latitude | longitude | category |
| Jean | Paris | 48.856614 | 2.3522219000000177 | contact category: "cardiologues" |
| Bernard | Bordeaux | 50 | 4 | contact category: "dieteticiens" |
Scenario: Visitors search for category and place # features/search/visitors_search_professionals_by_categories_and_place.feature:18
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I search for "Cardiologue" in "Paris" # features/step_definitions/pagesmed_steps.rb:80
Then I should be on search results page # features/step_definitions/web_steps.rb:166
And I should see "Jean" within search results # features/step_definitions/web_steps.rb:14
But I should not see "Bernard" within search results # features/step_definitions/web_steps.rb:14
Scenario: Visitors search for category with typo and place # features/search/visitors_search_professionals_by_categories_and_place.feature:25
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I search for "Cardiaulog" in "Paris" # features/step_definitions/pagesmed_steps.rb:80
Then I should be on search results page # features/step_definitions/web_steps.rb:166
And I should see "Jean" within search results # features/step_definitions/web_steps.rb:14
But I should not see "Bernard" within search results # features/step_definitions/web_steps.rb:14
Scenario: Visitors search for category with typo and place # features/search/visitors_search_professionals_by_categories_and_place.feature:32
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I search for "Cardiologue" in "Paris" # features/step_definitions/pagesmed_steps.rb:80
Then I should see "Jean" within search results # features/step_definitions/web_steps.rb:14
@http://www.pivotaltracker.com/story/show/16172447 @search @sunspot
Feature: Visitors search professionals by name and place
In order to find the professional details of a professional I know
As a Visitor
I search professionals by name and place
Background: # features/search/visitors_search_professionals_by_name_and_place.feature:7
Given the following contact categories exists: # features/step_definitions/pickle_steps.rb:14
| contact category | name |
| cardiologues | Cardiologues |
| dieteticiens | Diététiciens |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | city | latitude | longitude | category |
| Jean | Paris | 48.856614 | 2.3522219000000177 | contact category: "cardiologues" |
| Bernard | Bordeaux | 50 | 4 | contact category: "dieteticiens" |
Scenario: Visitors search for category and place # features/search/visitors_search_professionals_by_name_and_place.feature:18
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I search for "Jean" in "Paris" # features/step_definitions/pagesmed_steps.rb:80
Then I should be on search results page # features/step_definitions/web_steps.rb:166
And I should see "Jean" within search results # features/step_definitions/web_steps.rb:14
But I should not see "Bernard" within search results # features/step_definitions/web_steps.rb:14
Scenario: Visitors search for category with typo and place # features/search/visitors_search_professionals_by_name_and_place.feature:25
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I search for "Jan" in "Paris" # features/step_definitions/pagesmed_steps.rb:80
Then I should be on search results page # features/step_definitions/web_steps.rb:166
And I should see "Jean" within search results # features/step_definitions/web_steps.rb:14
But I should not see "Bernard" within search results # features/step_definitions/web_steps.rb:14
Scenario: Visitors search for category with additional terms and place # features/search/visitors_search_professionals_by_name_and_place.feature:32
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I search for "Jean Docteur" in "Paris" # features/step_definitions/pagesmed_steps.rb:80
Then I should be on search results page # features/step_definitions/web_steps.rb:166
And I should see "Jean" within search results # features/step_definitions/web_steps.rb:14
But I should not see "Bernard" within search results # features/step_definitions/web_steps.rb:14
@http://www.pivotaltracker.com/story/show/16122957 @search @sunspot
Feature: Visitors see location field in global search pre-filled with the last location criteria provided
I order to spare time and type
As a Visitor
I see location field in global search pre-filled with the last location criteria provided
Scenario: Visitors see keywords field pre-filled with the last keywords provided # features/search/visitors_see_place_field_in_global_search_pre-filled_with_the_last_location_criteria_provided_.feature:7
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I search for "Cardiologue" in "Paris" # features/step_definitions/pagesmed_steps.rb:80
Then I should be on the search results page # features/step_definitions/web_steps.rb:166
And the "Vous cherchez" field should contain "Cardiologue" # features/step_definitions/web_steps.rb:120
Scenario: Visitors see location field pre-filled with the last location provided # features/search/visitors_see_place_field_in_global_search_pre-filled_with_the_last_location_criteria_provided_.feature:13
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I search for "Cardiologue" in "Paris" # features/step_definitions/pagesmed_steps.rb:80
Then I should be on the search results page # features/step_definitions/web_steps.rb:166
And the "Où?" field should contain "Paris" # features/step_definitions/web_steps.rb:120
@http://www.pivotaltracker.com/story/show/15948289 @search
Feature: Visitors see place field in global search pre-filled with their geo-located place
In order to spare time
As a Visitor
I see place field in global search pre-filled with my geo-located place if there is not location criteria provided
@javascript
Scenario: Map is centered on my current location when I am on the home page # features/search/visitors_see_place_field_in_global_search_pre-filled_with_their_geo-located_place.feature:8
Given I am on the home page # features/step_definitions/web_steps.rb:23
And I am located in Lyon # features/step_definitions/pagesmed_steps.rb:65
When I wait for 2 seconds # features/step_definitions/pagesmed_steps.rb:95
Then the map should be centered on Lyon # features/step_definitions/pagesmed_steps.rb:69
@http://www.pivotaltracker.com/story/show/15913797 @search
Feature: Visitors see propositions when they start typing a category
In order to avoid typos
As a Visitor
I see propositions when I start typing a category
Background: # features/search/visitors_see_propositions_when_they_start_typing_a_category.feature:7
Given the following contact categories exists: # features/step_definitions/pickle_steps.rb:14
| contact category | name |
| cardiologues | Cardiologues |
| dieteticiens | Diététiciens |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | city | category |
| Jean | Paris | contact category: "cardiologues" |
| Bernard | Bordeaux | contact category: "dieteticiens" |
@javascript
Scenario: I see propositions when I start typing a category # features/search/visitors_see_propositions_when_they_start_typing_a_category.feature:19
Given I am on the homepage # features/step_definitions/web_steps.rb:23
And I fill in autocomplete "keywords" with "Cardio" # features/step_definitions/pagesmed_steps.rb:113
Then I should see "Cardiologue" within keyword propositions # features/step_definitions/web_steps.rb:14
expected there to be content "Cardiologue" in "" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:86:in `/^(?:|I )should see "([^"]*)"$/'
features/search/visitors_see_propositions_when_they_start_typing_a_category.feature:22:in `Then I should see "Cardiologue" within keyword propositions'
@javascript
Scenario: I see proposition as query search when I select a proposition # features/search/visitors_see_propositions_when_they_start_typing_a_category.feature:25
Given I am on the homepage # features/step_definitions/web_steps.rb:23
And I fill in autocomplete "keywords" with "Cardio" # features/step_definitions/pagesmed_steps.rb:113
When I click on the "Cardiologues" autocomplete option # features/step_definitions/pagesmed_steps.rb:99
expected there to be content "Cardiologues" in "" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:86:in `/^(?:|I )should see "([^"]*)"$/'
features/search/visitors_see_propositions_when_they_start_typing_a_category.feature:28:in `When I click on the "Cardiologues" autocomplete option'
Then the "Vous cherchez" field should contain "Cardiologues" # features/step_definitions/web_steps.rb:120
@http://www.pivotaltracker.com/story/show/15913843 @search
Feature: Visitors see propositions when they start typing a place
In order to avoid typos
As a Visitor
I see propositions when I start typing a place
@javascript
Scenario: Visitors see propositions when they start typing a location # features/search/visitors_see_propositions_when_they_start_typing_a_place.feature:8
Given I am on the homepage # features/step_definitions/web_steps.rb:23
And I fill in autocomplete "location" with "Paris" # features/step_definitions/pagesmed_steps.rb:113
Then I should see "Paris, France" within location propositions # features/step_definitions/web_steps.rb:14
@http://www.pivotaltracker.com/story/show/15929733 @search @sunspot
Feature: Visitors sort results by name or city or distance
In order to find the right professional
As a Visitor
I sort results by name, city or category on search result page
Background: # features/search/visitors_sort_results_by_name_or_city_or_category.feature:7
Given the following contact categories exists: # features/step_definitions/pickle_steps.rb:14
| contact category | name | singular_name |
| podologues | Podologues | Podologue |
| cardiologues | Cardiologues | Cardiologue |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | city | category |
| Jean Dupont | Paris | contact category: "podologues" |
| Jean Dupuis | Lille | contact category: "cardiologues" |
| Bernard | Bordeaux | contact category: "cardiologues" |
And contacts are indexed # features/step_definitions/pagesmed_steps.rb:108
Scenario: Search results are sorted by name by default # features/search/visitors_sort_results_by_name_or_city_or_category.feature:21
Given I have searched for "Cardiologue" in "France" # features/step_definitions/pagesmed_steps.rb:57
Then I should see "Bernard" before "Jean" within search results # features/step_definitions/web_steps.rb:14
Scenario: I sort results by location # features/search/visitors_sort_results_by_name_or_city_or_category.feature:25
Given I have searched for "Jean" in "France" # features/step_definitions/pagesmed_steps.rb:57
When I follow "Spécialité" within filter # features/step_definitions/web_steps.rb:14
Then I should see "Cardiologue" before "Podologue" within search results # features/step_definitions/web_steps.rb:14
Scenario: I sort results by city # features/search/visitors_sort_results_by_name_or_city_or_category.feature:30
Given I have searched for "Jean" in "France" # features/step_definitions/pagesmed_steps.rb:57
When I follow "Ville" within filter # features/step_definitions/web_steps.rb:14
Then I should see "Lille" before "Paris" within search results # features/step_definitions/web_steps.rb:14
Scenario: I filter results alphabetically # features/search/visitors_sort_results_by_name_or_city_or_category.feature:35
Given I have searched for "Cardiologue" in "France" # features/step_definitions/pagesmed_steps.rb:57
When I follow "b" within alphabetical filter # features/step_definitions/web_steps.rb:14
Then I should see "Bernard" within search results # features/step_definitions/web_steps.rb:14
Then I should not see "Jean" within search results # features/step_definitions/web_steps.rb:14
@http://www.pivotaltracker.com/story/show/16129675 @seo @sunspot
Feature: Owners see seo-friendly urls on browsing pages and professionals pages
In order to rank higher in Google
As an Owner of PageMed
I see seo-friendly urls on homepage, "/location" page, "/category" , "/category/location" page and professionals pages
Background: # features/seo/owners_see_seo-friendly_urls_on_browsing_pages_and_professionals_pages.feature:7
Given the following contact categories exists: # features/step_definitions/pickle_steps.rb:14
| contact category | name | category_type |
| medecins | Médecins | ProfessionalCategory |
And the following locations exists: # features/step_definitions/pickle_steps.rb:14
| location | name |
| ile_de_france | Île de France |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| full_name | location | category |
| Jean | location: "ile_de_france" | contact category: "medecins" |
Scenario: I see seo-friendly url when I go to "location" page # features/seo/owners_see_seo-friendly_urls_on_browsing_pages_and_professionals_pages.feature:21
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I follow "Île de France" # features/step_definitions/web_steps.rb:35
no link with title, id or text 'Île de France' found (Capybara::ElementNotFound)
(eval):2:in `click_link'
./features/step_definitions/web_steps.rb:36:in `/^(?:|I )follow "([^"]*)"$/'
features/seo/owners_see_seo-friendly_urls_on_browsing_pages_and_professionals_pages.feature:23:in `When I follow "Île de France"'
Then I should see "/annuaire-medical/ile-de-france" as page path # features/step_definitions/pagesmed_steps.rb:52
Scenario: I see seo-friendly url when I go to "category" page # features/seo/owners_see_seo-friendly_urls_on_browsing_pages_and_professionals_pages.feature:26
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I follow "Médecins" # features/step_definitions/web_steps.rb:35
no link with title, id or text 'Médecins' found (Capybara::ElementNotFound)
(eval):2:in `click_link'
./features/step_definitions/web_steps.rb:36:in `/^(?:|I )follow "([^"]*)"$/'
features/seo/owners_see_seo-friendly_urls_on_browsing_pages_and_professionals_pages.feature:28:in `When I follow "Médecins"'
Then I should see "/medecins" as page path # features/step_definitions/pagesmed_steps.rb:52
Scenario: I see seo-friendly url when I go to "location/category" page # features/seo/owners_see_seo-friendly_urls_on_browsing_pages_and_professionals_pages.feature:31
Given I am on the home page # features/step_definitions/web_steps.rb:23
When I follow "Île de France" # features/step_definitions/web_steps.rb:35
no link with title, id or text 'Île de France' found (Capybara::ElementNotFound)
(eval):2:in `click_link'
./features/step_definitions/web_steps.rb:36:in `/^(?:|I )follow "([^"]*)"$/'
features/seo/owners_see_seo-friendly_urls_on_browsing_pages_and_professionals_pages.feature:33:in `When I follow "Île de France"'
And I follow "Médecins" # features/step_definitions/web_steps.rb:35
Then I should see "/medecins/ile-de-france" as page path # features/step_definitions/pagesmed_steps.rb:52
@http://www.pivotaltracker.com/story/show/16129869 @seo @sunspot
Feature: Visitors see original titles and meta-descriptions
In order to choose a page to visit in Google results
As a Visitor
I see original and descriptive titles and meta-descriptions in result list
Background: # features/seo/visitors_see_original_titles_and_meta-descriptions.feature:7
Given the following contact categories exists: # features/step_definitions/pickle_steps.rb:14
| contact category | name | singular_name | category_type |
| medecins | Médecins | Médecin | ProfessionalCategory |
And the following locations exists: # features/step_definitions/pickle_steps.rb:14
| location | name |
| paris | Paris |
And the following contacts exists: # features/step_definitions/pickle_steps.rb:14
| contact | full_name | location | postal_code | city | category |
| jean | Jean | location: "paris" | 75000 | Paris | contact category: "medecins" |
Scenario: I see original title and description for home page # features/seo/visitors_see_original_titles_and_meta-descriptions.feature:20
Given I am on the home page # features/step_definitions/web_steps.rb:23
Then I should see "L'annuaire dentaire, médical et des professionnels de la santé | PagesMed" within page title # features/step_definitions/web_steps.rb:14
And I should see "Trouvez les numéros de téléphones et les adresses des praticiens près de chez vous. Annuaire des praticiens en France." as page description # features/step_definitions/pagesmed_steps.rb:48
Scenario: I see original title and description for "/category" page # features/seo/visitors_see_original_titles_and_meta-descriptions.feature:25
Given I am on the contact category: "medecins" page # features/step_definitions/web_steps.rb:23
Couldn't find ContactCategory with id=1 [WHERE "contact_categories"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:13:in `show'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:24:in `/^(?:|I )am on (.+)$/'
features/seo/visitors_see_original_titles_and_meta-descriptions.feature:26:in `Given I am on the contact category: "medecins" page'
Then I should see "Adresse et Téléphone des Médecins en France | PagesMed" within page title # features/step_definitions/web_steps.rb:14
And I should see "Trouvez les numéros de téléphones et les adresses des Médecins près de chez vous. Annuaire des Médecins en France." as page description # features/step_definitions/pagesmed_steps.rb:48
Scenario: I see original title and description for "/location" page # features/seo/visitors_see_original_titles_and_meta-descriptions.feature:30
Given I am on the location: "paris" page # features/step_definitions/web_steps.rb:23
Then I should see "Annuaire des praticiens Paris | PagesMed" within page title # features/step_definitions/web_steps.rb:14
And I should see "Trouvez les numéros de téléphones et les adresses des praticiens Paris. Annuaire des praticiens Paris." as page description # features/step_definitions/pagesmed_steps.rb:48
Scenario: I see original title and description for "/category/location" page # features/seo/visitors_see_original_titles_and_meta-descriptions.feature:35
Given I am on the contact category: "medecins" in location: "paris" page # features/step_definitions/web_steps.rb:23
Couldn't find Location with id=1 [WHERE "locations"."contacts_count" > 0] (ActiveRecord::RecordNotFound)
./app/controllers/categories_controller.rb:31:in `init_browsing_locations'
./lib/rack/geo/javascript_injector.rb:9:in `call'
./features/step_definitions/web_steps.rb:24:in `/^(?:|I )am on (.+)$/'
features/seo/visitors_see_original_titles_and_meta-descriptions.feature:36:in `Given I am on the contact category: "medecins" in location: "paris" page'
Then I should see "Médecin Paris: Adresse et Téléphone | PagesMed" within page title # features/step_definitions/web_steps.rb:14
And I should see "Trouvez les numéros de téléphones et les adresses des Médecins Paris. Annuaire des Médecins Paris." as page description # features/step_definitions/pagesmed_steps.rb:48
Scenario: I see original title and description for contact's page # features/seo/visitors_see_original_titles_and_meta-descriptions.feature:40
Given I am on the contact: "jean" page # features/step_definitions/web_steps.rb:23
Then I should see "Jean, Médecin à Paris (75000): Adresse, Téléphone | PagesMed" within page title # features/step_definitions/web_steps.rb:14
And I should see "Page du Médecin Jean dans l'annuaire PagesMed. Adresse, Téléphone et informations pratiques du Médecin Jean situé à Paris (75000)." as page description # features/step_definitions/pagesmed_steps.rb:48
@http://www.pivotaltracker.com/story/show/16172825 @subscriptions
Feature: Admin create subscription plans
In order to propose paying plans
As an Admin
I create subscription plans at a given price, vat rate and duration and for a given category
Background: As an admin # features/subscriptions/admin_create_subscription_plans.feature:7
Given I am a new, authenticated admin # features/step_definitions/authentication_steps.rb:9
And a contact category exists with name: "Dentiste" # features/step_definitions/pickle_steps.rb:4
Scenario: I create new terms for a given plan and a given contact category # features/subscriptions/admin_create_subscription_plans.feature:11
Given I am on terms new page in BO # features/step_definitions/web_steps.rb:23
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Prix | 300 |
| Durée | 12 |
And I select "Dentiste" from "Catégorie" # features/step_definitions/web_steps.rb:64
And I select "Gold" from "Plan" # features/step_definitions/web_steps.rb:64
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then terms should exist with price: "300", duration: "12", plan: "gold" # features/step_definitions/pickle_steps.rb:19
And the contact category should be the terms category # features/step_definitions/pickle_steps.rb:54
Scenario Outline: I cannot create new terms without plan, price, duration or category # features/subscriptions/admin_create_subscription_plans.feature:22
Given I am on terms new page in BO # features/step_definitions/web_steps.rb:23
When I fill all terms fields with valid data # features/step_definitions/subscriptions_steps.rb:12
And I clear terms "<attribute>" # features/step_definitions/subscriptions_steps.rb:19
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then terms should not exist with price: "300", duration: "12", plan: "gold" # features/step_definitions/pickle_steps.rb:24
Scenarios:
| attribute |
| Prix |
| Durée |
| Plan |
| Catégorie |
Scenario: I update terms price, duration and category # features/subscriptions/admin_create_subscription_plans.feature:36
Given terms exists # features/step_definitions/pickle_steps.rb:4
When I go to terms edit page in BO # features/step_definitions/web_steps.rb:27
When I fill in the following: # features/step_definitions/web_steps.rb:58
| Prix | 300 |
| Durée | 12 |
And I select "Dentiste" from "Catégorie" # features/step_definitions/web_steps.rb:64
And I select "Gold" from "Plan" # features/step_definitions/web_steps.rb:64
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then terms should exist with price: "300", duration: "12", plan: "gold" # features/step_definitions/pickle_steps.rb:19
And the contact category should be the terms category # features/step_definitions/pickle_steps.rb:54
Scenario: I cannot update terms if a user have already subscribed to the matching plan # features/subscriptions/admin_create_subscription_plans.feature:48
Given terms exists # features/step_definitions/pickle_steps.rb:4
And a subscription exists with terms: terms # features/step_definitions/pickle_steps.rb:4
When I go to terms edit page in BO # features/step_definitions/web_steps.rb:27
And I fill in the following: # features/step_definitions/web_steps.rb:58
| Prix | 300 |
And I press "Enregistrer" # features/step_definitions/web_steps.rb:31
Then I should see "Un plan ne peut être modifié ou supprimé si certains utilisateurs y sont abonnés." # features/step_definitions/web_steps.rb:84
@http://www.pivotaltracker.com/story/show/16178877 @subscriptions
Feature: Users choose a subscription plan
In order to benefits to premium features
As a User
I choose a subscription plan
Background: As an approved professional # features/subscriptions/users_choose_a_subscription_plan.feature:7
Given I am an approved, authenticated professional # features/step_definitions/authentication_steps.rb:9
And terms exists for my category # features/step_definitions/subscriptions_steps.rb:3
And I am on the home page # features/step_definitions/web_steps.rb:23
Scenario: I go to subscription page # features/subscriptions/users_choose_a_subscription_plan.feature:12
When I follow "Avantages Pro" # features/step_definitions/web_steps.rb:35
Then I should be on the new subscription page # features/step_definitions/web_steps.rb:166
Scenario: I choose a subscription plan # features/subscriptions/users_choose_a_subscription_plan.feature:16
Given I am on the new subscription page # features/step_definitions/web_steps.rb:23
When I choose to try the "Platinium" plan # features/step_definitions/subscriptions_steps.rb:8
Then I should have a subscription with plan: "Platinium" # features/step_definitions/subscriptions_steps.rb:27
And I should see "Votre abonnement 'platinium' est dès à présent actif. Rendez-vous sur la page 'Mon compte' pour profiter de vos avantages." # features/step_definitions/web_steps.rb:84
Failing Scenarios:
cucumber features/directory/admins/admins_automatically_update_professionals_database.feature:12 # Scenario: "rake update:contacts" updates contacts who changed of phone_no
cucumber features/directory/admins/admins_automatically_update_professionals_database.feature:22 # Scenario: "rake update" updates contact with the same name and phone number
cucumber features/directory/admins/admins_automatically_update_professionals_database.feature:34 # Scenario: "rake update" does not update records marked as owned
cucumber features/directory/admins/admins_automatically_update_professionals_database.feature:46 # Scenario: "rake update" creates records with unmatched "name + office" or "name + phone"
cucumber features/directory/admins/admins_automatically_update_professionals_database.feature:54 # Scenario: Admin makes contacts touched when it update them
cucumber features/directory/admins/admins_automatically_update_professionals_database.feature:62 # Scenario: "rake update" do not update touched records
cucumber features/directory/visitors/visitors_see_a_link_to_see_all_search_results_at_the_bottom_of_results_overview_on_browsing_pages.feature:26 # Scenario: I see links to overview of results on "/category" page
cucumber features/directory/visitors/visitors_see_a_link_to_see_all_search_results_at_the_bottom_of_results_overview_on_browsing_pages.feature:32 # Scenario: I see links to overview of results on "/category/location" page
cucumber features/directory/visitors/visitors_see_a_map_on_browsing_pages.feature:14 # Scenario: Visitors see a map on contact page
cucumber features/directory/visitors/visitors_see_an_overview_of_results_for_the_selected_category_and_the_displayed_area_in_a_sidebar_tab_of_the_map_on_browsing_pages.feature:21 # Scenario: I see links to overview of results on "/category" page
cucumber features/directory/visitors/visitors_see_an_overview_of_results_for_the_selected_category_and_the_displayed_area_in_a_sidebar_tab_of_the_map_on_browsing_pages.feature:25 # Scenario: I see links to overview of results on "/category/location" page
cucumber features/directory/visitors/visitors_see_categories_or_sub-categories_in_a_sidebar_tab_of_the_map.feature:28 # Scenario: I see categories in the map sidebar when I am on home page
cucumber features/directory/visitors/visitors_see_categories_or_sub-categories_in_a_sidebar_tab_of_the_map.feature:33 # Scenario: I see sub-categories in the map sidebar when I am on Médecins page (category with children)
cucumber features/directory/visitors/visitors_see_categories_or_sub-categories_in_a_sidebar_tab_of_the_map.feature:37 # Scenario: I see siblings categories in the map sidebar when I am on Diététicien page (category without children)
cucumber features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:35 # Scenario: Visitors see links to non-empty categories
cucumber features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:41 # Scenario: Visitors click on links to non-empty categories
cucumber features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:46 # Scenario: Visitors see profession categories and facility categories
cucumber features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:53 # Scenario: Visitors see categories sorted by name
cucumber features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:58 # Scenario: Visitors see categories in two columns
cucumber features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:63 # Scenario: Visitors see links to non-empty root locations
cucumber features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:68 # Scenario: Visitors click on links to non-empty locations
cucumber features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:73 # Scenario: Visitors see locations sorted by name
cucumber features/directory/visitors/visitors_see_links_to_categories_and_regions_on_the_homepage.feature:77 # Scenario: Visitors see categories in two columns
cucumber features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:36 # Scenario: Visitors see links to sub-locations
cucumber features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:40 # Scenario: Visitors click on links to sub-locations
cucumber features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:45 # Scenario: Visitors see links to location siblings if there is no sub-locations
cucumber features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:49 # Scenario: Visitors see links to categories
cucumber features/directory/visitors/visitors_see_links_to_categories_and_sub_areas_on_location_page.feature:54 # Scenario: Visitors click on links to categories
cucumber features/directory/visitors/visitors_see_links_to_practitioner_s_page_category_city_page.feature:41 # Scenario: I see links to contacts when I am on category page with location which is a city
cucumber features/directory/visitors/visitors_see_links_to_practitioner_s_page_category_city_page.feature:47 # Scenario: I see links to contacts when I am on category page with location which is a city
cucumber features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:36 # Scenario: I see links to locations
cucumber features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:41 # Scenario: I clicks links to locations
cucumber features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:46 # Scenario: I see links to sub-categories
cucumber features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:50 # Scenario: I click links to sub-categories
cucumber features/directory/visitors/visitors_see_links_to_regions_and_other_categories_on_category_page.feature:55 # Scenario: I see links to siblings categories if category has no children
cucumber features/directory/visitors/visitors_see_links_to_sub-areas_and_sub-categories_on_category_location_page.feature:36 # Scenario: I see links to sub-categories and sub-locations
cucumber features/directory/visitors/visitors_see_links_to_sub-areas_and_sub-categories_on_category_location_page.feature:41 # Scenario: I click link to sub-location
cucumber features/directory/visitors/visitors_see_links_to_sub-areas_and_sub-categories_on_category_location_page.feature:46 # Scenario: I click links to sub-category
cucumber features/directory/visitors/visitors_see_pagination_between_practitioner_s_listing_page_on_category_location_page.feature:14 # Scenario: I see max 10 results on category/location pages
cucumber features/directory/visitors/visitors_see_pagination_between_practitioner_s_listing_page_on_category_location_page.feature:18 # Scenario: I see pagination links on category/location pages when there is more than 10 results
cucumber features/directory/visitors/visitors_see_pagination_between_practitioner_s_listing_page_on_category_location_page.feature:22 # Scenario: I see more results when I follow pagination links
cucumber features/search/visitors_search_categories_via_related-words_from_a_thesaurus.feature:19 # Scenario: Visitors see propositions when I start typing a category
cucumber features/search/visitors_see_propositions_when_they_start_typing_a_category.feature:19 # Scenario: I see propositions when I start typing a category
cucumber features/search/visitors_see_propositions_when_they_start_typing_a_category.feature:25 # Scenario: I see proposition as query search when I select a proposition
cucumber features/seo/owners_see_seo-friendly_urls_on_browsing_pages_and_professionals_pages.feature:21 # Scenario: I see seo-friendly url when I go to "location" page
cucumber features/seo/owners_see_seo-friendly_urls_on_browsing_pages_and_professionals_pages.feature:26 # Scenario: I see seo-friendly url when I go to "category" page
cucumber features/seo/owners_see_seo-friendly_urls_on_browsing_pages_and_professionals_pages.feature:31 # Scenario: I see seo-friendly url when I go to "location/category" page
cucumber features/seo/visitors_see_original_titles_and_meta-descriptions.feature:25 # Scenario: I see original title and description for "/category" page
cucumber features/seo/visitors_see_original_titles_and_meta-descriptions.feature:35 # Scenario: I see original title and description for "/category/location" page
147 scenarios (49 failed, 98 passed)
910 steps (49 failed, 71 skipped, 790 passed)
3m59.677s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment