@@ -34,7 +34,7 Capybara.register_driver :selenium do |app| | |||||
34 | end |
|
34 | end | |
35 |
|
35 | |||
36 | # default: 2 |
|
36 | # default: 2 | |
37 |
Capybara.default_wait_time = 2 |
|
37 | Capybara.default_wait_time = 2 | |
38 |
|
38 | |||
39 | DatabaseCleaner.strategy = :truncation |
|
39 | DatabaseCleaner.strategy = :truncation | |
40 |
|
40 |
@@ -33,7 +33,6 class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base | |||||
33 | fill_in 'Description', :with => 'new issue' |
|
33 | fill_in 'Description', :with => 'new issue' | |
34 | select '0 %', :from => 'Done' |
|
34 | select '0 %', :from => 'Done' | |
35 | fill_in 'Due date', :with => '' |
|
35 | fill_in 'Due date', :with => '' | |
36 | select '', :from => 'Assignee' |
|
|||
37 | fill_in 'Searchable field', :with => 'Value for field 2' |
|
36 | fill_in 'Searchable field', :with => 'Value for field 2' | |
38 | # click_button 'Create' would match both 'Create' and 'Create and continue' buttons |
|
37 | # click_button 'Create' would match both 'Create' and 'Create and continue' buttons | |
39 | find('input[name=commit]').click |
|
38 | find('input[name=commit]').click | |
@@ -200,7 +199,7 class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base | |||||
200 | visit '/issues/1' |
|
199 | visit '/issues/1' | |
201 | assert page.has_no_content?('Form update CF') |
|
200 | assert page.has_no_content?('Form update CF') | |
202 |
|
201 | |||
203 |
page.first(:link, ' |
|
202 | page.first(:link, 'Edit').click | |
204 | # the custom field should show up when changing tracker |
|
203 | # the custom field should show up when changing tracker | |
205 | select 'Feature request', :from => 'Tracker' |
|
204 | select 'Feature request', :from => 'Tracker' | |
206 | assert page.has_content?('Form update CF') |
|
205 | assert page.has_content?('Form update CF') |
General Comments 0
You need to be logged in to leave comments.
Login now