example/spec/features/hello.feature in gnawrnip-0.0.4 vs example/spec/features/hello.feature in gnawrnip-0.1.0

- old
+ new

@@ -1,27 +1,61 @@ Feature: Access - Scenario: / (Success) + Scenario: / (SUCCESS) When I am on the "/" Then I should see "Hello World" - Scenario: / (Failed...) + Scenario: / (FAILED) When I am on the "/" Then I should see "Hoge World" - Scenario: /form (Success) + Scenario: /form (SUCCESS) When I am on the "/form" And type "Gongo" to "name" And click "Go!" Then I should see "Gongo" - Scenario: /form (Failed...) + Scenario: /form (FAILED) When I am on the "/form" And type "Gongo" to "name" And click "Go!" Then I should see "Gengo" - Scenario: /form (Failed...) + Scenario: /form (FAILED) When I am on the "/form" And type "Gongo" to "name" And click "Push" Then I should see "Gongo" + + @javascript + Scenario: /confirm (SUCCESS) (confirm 'ok' using selenium) + When I am on the "/confirm" + And type "Gongo" to "name" + And click "Go!" + And "submit?" confirm is "ok" + Then I should see "Gongo" + + @javascript + Scenario: /confirm (SUCCESS) (confirm 'cancel' using selenium) + When I am on the "/confirm" + And type "Gongo" to "name" + And click "Go!" + And "submit?" confirm is "cancel" + Then I should not see "Gongo" + And typed "name" with "Gongo" + + @javascript + Scenario: /confirm (FAILED) (confirm 'ok' using selenium) + When I am on the "/confirm" + And type "Gongo" to "name" + And click "Go!" + And "submit?" confirm is "ok" + Then I should see "Gengo" + + @javascript + Scenario: /confirm (FAILED) (confirm 'cancel' using selenium) + When I am on the "/confirm" + And type "Gongo" to "name" + And click "Go!" + And "submit?" confirm is "cancel" + Then I should not see "Gongo" + And typed "name" with "Gengo"