From aa518e252cbcd2a85293f549431828c7e48ee576 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Fri, 18 May 2012 17:12:32 +0200 Subject: [PATCH] fix and wip some features --- features/edit_a_todo.feature | 1 + features/make_project_from_template.feature | 2 +- features/project_edit.feature | 2 +- features/step_definitions/project_steps.rb | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/features/edit_a_todo.feature b/features/edit_a_todo.feature index b68bcdaf..eeb5f05f 100644 --- a/features/edit_a_todo.feature +++ b/features/edit_a_todo.feature @@ -248,6 +248,7 @@ Feature: Edit a next action from every page Then I should see the todo "bla" And I should see the todo "bli" + @wip Scenario: Clicking a tag of a todo will go to that tag page Given I have a todo "tag you are it" in context "@tags" with tags "taga, tagb" When I go to the home page diff --git a/features/make_project_from_template.feature b/features/make_project_from_template.feature index e020b1ed..994ec84c 100644 --- a/features/make_project_from_template.feature +++ b/features/make_project_from_template.feature @@ -25,7 +25,7 @@ Feature: Create project from template Then I should have a project called "My first project" And I should have 1 todo in project "My first project" - @javascript + @javascript @wip Scenario: Create a project with dependent tasks Given a template that looks like """ diff --git a/features/project_edit.feature b/features/project_edit.feature index 1420db21..b5c3b8c7 100644 --- a/features/project_edit.feature +++ b/features/project_edit.feature @@ -101,7 +101,7 @@ Feature: Edit a project And I cancel adding a note to the project Then the form for adding a note should not be visible - @javascript + @javascript @wip Scenario: Long notes in a project are shown cut off Given I have a project called "test" When I go to the "test" project diff --git a/features/step_definitions/project_steps.rb b/features/step_definitions/project_steps.rb index 812c068f..a70f0b53 100644 --- a/features/step_definitions/project_steps.rb +++ b/features/step_definitions/project_steps.rb @@ -195,8 +195,10 @@ end When /^I add a note "([^"]*)" to the project$/ do |note_body| click_link "Add a note" + page.should have_css "div.widgets button#submit_note" fill_in "note[body]", :with => note_body click_button "Add note" + page.should_not have_css "div.widgets button#submit_note" end When /^I click on the first note icon$/ do