fix failing cucumber tests

fix data export view
fix mentions of tag on tag page 
fix autocomplete for tags
This commit is contained in:
Reinier Balt 2012-07-11 15:35:21 +02:00
parent 4227aede6c
commit d6e66fa517
13 changed files with 28 additions and 21 deletions

View file

@ -248,7 +248,6 @@ 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

View file

@ -50,7 +50,7 @@ Feature: Existing user logging in
| "top secret" project for user "testuser" | "top secret" project for user "testuser" | Logout (Test User) |
| context page for "@secret location" for user "testuser" | context page for "@secret location" for user "testuser" | Logout (Test User) |
@javascript @wip
@javascript
Scenario: When session expires, you should be logged out
When I go to the login page
And I submit the login form as user "testuser" with password "secret"

View file

@ -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 @wip
@javascript
Scenario: Long notes in a project are shown cut off
Given I have a project called "test"
When I go to the "test" project

View file

@ -198,7 +198,11 @@ When /^I add a note "([^"]*)" to the project$/ do |note_body|
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"
submit_button = "div.widgets button#submit_note"
elem = find(submit_button)
elem.should_not be_nil # form is hidden
elem.should_not be_visible
end
When /^I click on the first note icon$/ do

View file

@ -173,7 +173,9 @@ When /^I edit the tags of "([^"]*)" to "([^"]*)"$/ do |action_description, tags|
todo.should_not be_nil
open_edit_form_for(todo)
fill_in "todo_tag_list", :with => tags
within "form#form_todo_#{todo.id}" do
fill_in "tag_list", :with => tags
end
submit_edit_todo_form(todo)
end

View file

@ -181,7 +181,6 @@ Feature: Show done
When I go to the projects page
Then I should see "completed project"
@wip
Scenario Outline: All pages are internationalized
Given I set the locale to "<locale>"
When I go to the <page>