1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-24 01:11:12 +00:00

Use CSS selector to find move left/right buttons.

git-svn-id: http://svn.redmine.org/redmine/trunk@16865 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2017-07-23 12:41:31 +00:00
parent 530eef9603
commit 8a1e09d17b
2 changed files with 4 additions and 4 deletions

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>

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