Commit fed797f3 authored by jplang's avatar jplang

Use CSS selector to find move left/right buttons.

git-svn-id: https://svn.redmine.org/redmine/trunk@16865 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent ff422575
......@@ -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>
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment