Browse Source

Use CSS selector to find move left/right buttons.

git-svn-id: http://svn.redmine.org/redmine/trunk@16865 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.0.0
Jean-Philippe Lang 6 years ago
parent
commit
8a1e09d17b
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      app/views/queries/_columns.html.erb
  2. 2
    2
      test/system/timelog_test.rb

+ 2
- 2
app/views/queries/_columns.html.erb View File

@@ -12,9 +12,9 @@
:ondblclick => "moveOptions(this.form.#{available_tag_id}, this.form.#{selected_tag_id});" %>
</span>
<span class="buttons">
<input type="button" value="&#8594;"
<input type="button" value="&#8594;" class="move-right"
onclick="moveOptions(this.form.<%= available_tag_id %>, this.form.<%= selected_tag_id %>);" />
<input type="button" value="&#8592;"
<input type="button" value="&#8592;" class="move-left"
onclick="moveOptions(this.form.<%= selected_tag_id %>, this.form.<%= available_tag_id %>);" />
</span>
<span>

+ 2
- 2
test/system/timelog_test.rb View File

@@ -87,10 +87,10 @@ class TimelogTest < ApplicationSystemTestCase
visit '/settings?tab=timelog'
# Remove a column
select 'Comment', :from => 'Selected Columns'
click_on "←"
page.first('input[type=button].move-left').click
# Add a column
select 'Tracker', :from => 'Available Columns'
click_on "→"
page.first('input[type=button].move-right').click
click_on 'Save'

# Display the list with updated settings

Loading…
Cancel
Save