diff options
Diffstat (limited to 'tests')
-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 |