Skip to content

Instantly share code, notes, and snippets.

@SebSept
Created November 4, 2013 17:52
Show Gist options
  • Save SebSept/7306543 to your computer and use it in GitHub Desktop.
Save SebSept/7306543 to your computer and use it in GitHub Desktop.
just a test with behat / mink / selenium
# features/login.feature
Feature: login
Vérification que user peut se logger
Scenario: accueil du site -> click sur s'identifier -> saisir données et vérifier que loggé
Given I am on homepage
Then I should see "Bienvenue, identifiez-vous" in the "p#header_user_info" element
When I follow "identifiez-vous"
Then I should see "Déjà enregistré ?"
And fill in "email" with "user@localhost.fr"
And fill in "passwd" with "passpass"
Then press "SubmitLogin"
Then I should see "Bienvenue, Pipa Pipo (déconnexion)" in the "p#header_user_info" element
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment