diff options
author | Go MAEDA <maeda@farend.jp> | 2021-04-23 03:53:53 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-04-23 03:53:53 +0000 |
commit | d67ed93f39d692e8806f079a78dcc13eaf4d705e (patch) | |
tree | d5d4a48530fc650e42b567d3667f64dde45f7098 /test/functional | |
parent | 137b41cf385348da84649b31577e8e818f0500d1 (diff) | |
download | redmine-d67ed93f39d692e8806f079a78dcc13eaf4d705e.tar.gz redmine-d67ed93f39d692e8806f079a78dcc13eaf4d705e.zip |
Allow Unique ID and relation fields to be auto mapped (#35131).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@20968 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/imports_controller_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/imports_controller_test.rb b/test/functional/imports_controller_test.rb index 7097d8185..fa1229791 100644 --- a/test/functional/imports_controller_test.rb +++ b/test/functional/imports_controller_test.rb @@ -244,6 +244,18 @@ class ImportsControllerTest < Redmine::ControllerTest assert_select 'select[name=?]', 'import_settings[mapping][cf_1]' do assert_select 'option[value="13"][selected="selected"]', :text => 'database' end + + # 'unique_id' should be auto selected because + # - 'unique_id' exists in the import file + assert_select 'select[name=?]', 'import_settings[mapping][unique_id]' do + assert_select 'option[value="15"][selected="selected"]', :text => 'unique_id' + end + + # 'relation_duplicates' should be auto selected because + # - 'Is duplicate of' exists in the import file + assert_select 'select[name=?]', 'import_settings[mapping][relation_duplicates]' do + assert_select 'option[value="16"][selected="selected"]', :text => 'Is duplicate of' + end end def test_post_mapping_should_update_mapping |