Fixed UI tests.

git-svn-id: http://svn.redmine.org/redmine/trunk@12287 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-11-16 08:46:22 +00:00
parent 67aa2cb34e
commit 0a5632013f
2 changed files with 2 additions and 3 deletions

View File

@ -34,7 +34,7 @@ Capybara.register_driver :selenium do |app|
end
# default: 2
Capybara.default_wait_time = 20
Capybara.default_wait_time = 2
DatabaseCleaner.strategy = :truncation

View File

@ -33,7 +33,6 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
fill_in 'Description', :with => 'new issue'
select '0 %', :from => 'Done'
fill_in 'Due date', :with => ''
select '', :from => 'Assignee'
fill_in 'Searchable field', :with => 'Value for field 2'
# click_button 'Create' would match both 'Create' and 'Create and continue' buttons
find('input[name=commit]').click
@ -200,7 +199,7 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
visit '/issues/1'
assert page.has_no_content?('Form update CF')
page.first(:link, 'Update').click
page.first(:link, 'Edit').click
# the custom field should show up when changing tracker
select 'Feature request', :from => 'Tracker'
assert page.has_content?('Form update CF')