Skip to content

Commit 8bc320d

Browse files
committed
Use 'group title' in system test names and comments
1 parent 5f2b99f commit 8bc320d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/system/fieldset_test.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class FieldsetTest < ApplicationSystemTestCase
1313
Setting.clear_cache
1414
end
1515

16-
test 'click group label should collapse/expand fieldset with default state all_expended' do
16+
test 'click group title should collapse/expand fieldset with default state all_expended' do
1717
Setting.plugin_redmine_custom_fields_groups = {
1818
'custom_fields_group_tag' => 'fieldset',
1919
'fieldset_default_state' => 'all_expended'
@@ -28,12 +28,12 @@ class FieldsetTest < ApplicationSystemTestCase
2828
# default expanded
2929
assert page.has_content?('Searchable field')
3030
assert page.has_content?('Database')
31-
# click group label
31+
# click group title
3232
find('fieldset.custom-fields-groups > legend.icon', :text => 'Group 1').click
3333
# collapsed fields
3434
assert page.has_no_content?('Searchable field')
3535
assert page.has_no_content?('Database')
36-
# click group label, again
36+
# click group title, again
3737
find('fieldset.custom-fields-groups > legend.icon', :text => 'Group 1').click
3838
# expanded fields
3939
assert page.has_content?('Searchable field')
@@ -49,20 +49,20 @@ class FieldsetTest < ApplicationSystemTestCase
4949
# default expanded
5050
assert page.has_content?('Searchable field')
5151
assert page.has_content?('Database')
52-
# click label
52+
# click group title
5353
find('fieldset.custom-fields-groups > legend.icon', :text => 'Group 1').click
5454
# collapsed fields
5555
assert page.has_no_content?('Searchable field')
5656
assert page.has_no_content?('Database')
57-
# click label, again
57+
# click group title, again
5858
find('fieldset.custom-fields-groups > legend.icon', :text => 'Group 1').click
5959
# expanded fields
6060
assert page.has_content?('Searchable field')
6161
assert page.has_content?('Database')
6262
end
6363
end
6464

65-
test 'click group label should expand/collapse fieldset with default state all_collapsed' do
65+
test 'click group title should expand/collapse fieldset with default state all_collapsed' do
6666
Setting.plugin_redmine_custom_fields_groups = {
6767
'custom_fields_group_tag' => 'fieldset',
6868
'fieldset_default_state' => 'all_collapsed'
@@ -77,12 +77,12 @@ class FieldsetTest < ApplicationSystemTestCase
7777
# default collapsed
7878
assert page.has_no_content?('Searchable field')
7979
assert page.has_no_content?('Database')
80-
# click group label
80+
# click group title
8181
find('fieldset.custom-fields-groups > legend.icon', :text => 'Group 1').click
8282
# expanded fields
8383
assert page.has_content?('Searchable field')
8484
assert page.has_content?('Database')
85-
# click group label, again
85+
# click group title, again
8686
find('fieldset.custom-fields-groups > legend.icon', :text => 'Group 1').click
8787
# collapsed fields
8888
assert page.has_no_content?('Searchable field')
@@ -98,12 +98,12 @@ class FieldsetTest < ApplicationSystemTestCase
9898
# default collapsed
9999
assert page.has_no_content?('Searchable field')
100100
assert page.has_no_content?('Database')
101-
# click label
101+
# click group title
102102
find('fieldset.custom-fields-groups > legend.icon', :text => 'Group 1').click
103103
# expanded fields
104104
assert page.has_content?('Searchable field')
105105
assert page.has_content?('Database')
106-
# click label, again
106+
# click group title, again
107107
find('fieldset.custom-fields-groups > legend.icon', :text => 'Group 1').click
108108
# collapsed fields
109109
assert page.has_no_content?('Searchable field')

0 commit comments

Comments
 (0)