Skip to content

Commit

Permalink
fix some behat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulandrieux committed Sep 16, 2015
1 parent e483598 commit 82ac755
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Tests/Features/BusinessEntityPage/create.feature
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ Feature: Create business entity pages
Then I should see "Créer une représentation métier"
When I fill in "Nom" with "Fiche Jedi Dark - {{item.name}}"
And I fill in "Url" with "fiche-jedi-dark-{{item.slug}}"
And I fill in "Query" with "WHERE item.side='dark'"
And I fill in "victoire_business_template_type[query]" with "WHERE item.side='dark'"
And I follow "Créer"
Then I should see "La représentation métier a bien été créé"
And I wait 5 seconds
And I should be on "/fr/fiche-jedi-dark-%7B%7Bitem.slug%7D%7D"
And I should be on "/fr/victoire-dcms/business-template/show/5"
Then I switch to "layout" mode
When I select "Force" from the "1" select of "content" slot
Then I should see "Créer"
Expand All @@ -74,11 +74,11 @@ Feature: Create business entity pages
Then I should see "Créer une représentation métier"
When I fill in "Nom" with "Fiche Jedi Bright - {{item.name}}"
And I fill in "Url" with "fiche-jedi-bright-{{item.slug}}"
And I fill in "Query" with "WHERE item.side='bright'"
And I fill in "victoire_business_template_type[query]" with "WHERE item.side='bright'"
And I follow "Créer"
Then I should see "La représentation métier a bien été créé"
And I wait 5 seconds
And I should be on "/fr/fiche-jedi-bright-%7B%7Bitem.slug%7D%7D"
And I should be on "/fr/victoire-dcms/business-template/show/6"
Then I switch to "layout" mode
When I select "Force" from the "1" select of "content" slot
Then I should see "Créer"
Expand Down
6 changes: 3 additions & 3 deletions Tests/Features/Widget/edit.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Feature: Edit a widget
Scenario: I can create a new Business entity page pattern, create a widget and edit this widget
When I select "Force" from the "1" select of "content" slot
Then I should see "Créer"
When I follow "Jedi"
When I follow the tab "Jedi"
And I follow "Objet courant"
And I select "side" from "jedi_businessEntity_victoire_widget_form_force[fields][side]"
When I submit the widget
Expand All @@ -51,7 +51,7 @@ Feature: Edit a widget
When I switch to "edit" mode
And I edit the "Force" widget
Then I should see "Widget #1 - Force"
When I follow "Jedi"
When I follow the tab "Jedi"
And I follow "Requête"
When I select "side" from "jedi_query_victoire_widget_form_force[fields][side]"
And I submit the widget
Expand All @@ -64,6 +64,6 @@ Feature: Edit a widget
When I follow "Vaisseaux"
And I follow "Choix"
Then I should not see "Côté de la force"
When I follow "Jedi"
When I follow the tab "Jedi"
And I follow "Choix"
Then I should see "Côté de la force"

0 comments on commit 82ac755

Please sign in to comment.