diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-05-07 13:06:39 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-05-07 13:06:39 +0200 |
commit | e52e9332df64319b4e892b32e9cfcd4d243e18ef (patch) | |
tree | b7cb411805c0f307fdba7ce4b2d585167631d27d /tests/acceptance | |
parent | 0d56e6e7e449eff5e75acb378a01de1949ac7286 (diff) |
added first cucumber steps and definitions
Diffstat (limited to 'tests/acceptance')
-rw-r--r-- | tests/acceptance/features/create_new.feature | 13 | ||||
-rw-r--r-- | tests/acceptance/features/step_definitions/create_new_steps.rb | 7 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/acceptance/features/create_new.feature b/tests/acceptance/features/create_new.feature new file mode 100644 index 000000000..c07220059 --- /dev/null +++ b/tests/acceptance/features/create_new.feature @@ -0,0 +1,13 @@ +# encoding: utf-8 +Feature: create_new + In order to start using the news rss reader + As a user + I want to be able to add feeds and folders + + Background: + Given I am logged in + And I am in the "news" app + + Scenario Outline: show caption on hover + When I hover over the add new button + Then I should see a "Add Website" caption on the add new button
\ No newline at end of file diff --git a/tests/acceptance/features/step_definitions/create_new_steps.rb b/tests/acceptance/features/step_definitions/create_new_steps.rb new file mode 100644 index 000000000..337779d54 --- /dev/null +++ b/tests/acceptance/features/step_definitions/create_new_steps.rb @@ -0,0 +1,7 @@ +When (/^I hover over the add new button$/) do |selector| + page.execute_script("$('.add-new').trigger('mouseover')") +end + +Then (/^I should see a "([^"]*)" caption on the add new button"$/) do |caption| + page.find(:xpath, "//*[@class='add-new']/a/span").should have_content(caption) +end
\ No newline at end of file |