Fixed UI tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@12287 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
67aa2cb34e
commit
0a5632013f
|
@ -34,7 +34,7 @@ Capybara.register_driver :selenium do |app|
|
||||||
end
|
end
|
||||||
|
|
||||||
# default: 2
|
# default: 2
|
||||||
Capybara.default_wait_time = 20
|
Capybara.default_wait_time = 2
|
||||||
|
|
||||||
DatabaseCleaner.strategy = :truncation
|
DatabaseCleaner.strategy = :truncation
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,6 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
|
||||||
fill_in 'Description', :with => 'new issue'
|
fill_in 'Description', :with => 'new issue'
|
||||||
select '0 %', :from => 'Done'
|
select '0 %', :from => 'Done'
|
||||||
fill_in 'Due date', :with => ''
|
fill_in 'Due date', :with => ''
|
||||||
select '', :from => 'Assignee'
|
|
||||||
fill_in 'Searchable field', :with => 'Value for field 2'
|
fill_in 'Searchable field', :with => 'Value for field 2'
|
||||||
# click_button 'Create' would match both 'Create' and 'Create and continue' buttons
|
# click_button 'Create' would match both 'Create' and 'Create and continue' buttons
|
||||||
find('input[name=commit]').click
|
find('input[name=commit]').click
|
||||||
|
@ -200,7 +199,7 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
|
||||||
visit '/issues/1'
|
visit '/issues/1'
|
||||||
assert page.has_no_content?('Form update CF')
|
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
|
# the custom field should show up when changing tracker
|
||||||
select 'Feature request', :from => 'Tracker'
|
select 'Feature request', :from => 'Tracker'
|
||||||
assert page.has_content?('Form update CF')
|
assert page.has_content?('Form update CF')
|
||||||
|
|
Loading…
Reference in New Issue