summaryrefslogtreecommitdiffstats
path: root/tests/acceptance/features/step_definitions/create_new_steps.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tests/acceptance/features/step_definitions/create_new_steps.rb')
-rw-r--r--tests/acceptance/features/step_definitions/create_new_steps.rb7
1 files changed, 7 insertions, 0 deletions
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