From 1fab30ff22a24f9aa3cbd3bc798568a43184a5b6 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Wed, 13 Jan 2010 21:41:21 +0100 Subject: [PATCH] create cucumber profile for stories requiring selenium and stories not requiring selenium (=default) --- config/cucumber.yml | 3 ++- features/notes_manage.feature | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config/cucumber.yml b/config/cucumber.yml index b7acd380..c4d32843 100644 --- a/config/cucumber.yml +++ b/config/cucumber.yml @@ -3,5 +3,6 @@ rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : "" rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" std_opts = "#{rerun_opts} --format rerun --out rerun.txt --strict --tags ~@wip" %> -default: <%= std_opts %> +default: <%= std_opts %> --tags ~@selenium +selenium: <%= std_opts %> --tags @selenium wip: --tags @wip:3 --wip features diff --git a/features/notes_manage.feature b/features/notes_manage.feature index 62282d0c..bf4be120 100644 --- a/features/notes_manage.feature +++ b/features/notes_manage.feature @@ -24,7 +24,7 @@ Feature: View, add, remove notes And I should see note "My Note A" on the notes page Then the badge should show 1 - @needsjs + @selenium Scenario: Delete note from notes page Given I have logged in as "testuser" with password "secret" And I have a project "Pass Final Exam" with 2 notes @@ -33,7 +33,7 @@ Feature: View, add, remove notes Then the first note should disappear Then the badge should show 1 - @needsjs + @selenium Scenario: Link to note Given I have logged in as "testuser" with password "secret" And I have a project "Pass Final Exam" with 1 note @@ -41,7 +41,7 @@ Feature: View, add, remove notes And I click the icon next to the note Then I should see the note text - @needsjs + @selenium Scenario: Toggle notes Given I have logged in as "testuser" with password "secret" And I have two projects with one note each