fix and test toggling of new-project-form

This commit is contained in:
Reinier Balt 2010-10-15 12:39:29 +02:00
parent 9028a00767
commit 36e63a4ad9
3 changed files with 20 additions and 4 deletions

View file

@ -50,4 +50,12 @@ end
Then /^the project list badge for "([^"]*)" projects should show (\d+)$/ do |state_name, count|
selenium.get_text("xpath=//span[@id='#{state_name}-projects-count']").should == count
end
end
Then /^the new project form should be visible$/ do
selenium.is_visible("project_new").should == true
end
Then /^the new project form should not be visible$/ do
selenium.is_visible("project_new").should == false
end