]> source.dussan.org Git - redmine.git/commitdiff
Use CSS selector to find move left/right buttons.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 23 Jul 2017 12:41:31 +0000 (12:41 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 23 Jul 2017 12:41:31 +0000 (12:41 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16865 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/queries/_columns.html.erb
test/system/timelog_test.rb

index 1458131a9b1eaef4b71904700a67f1967015025a..c5d14190e095635f5d0b0be508bff4af249f4d35 100644 (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>
index e1acd0f51a155202fe11fe1af0c170ff3b10b36b..8624fffed16d3789938c8462e471419b956faa30 100644 (file)
@@ -87,10 +87,10 @@ class TimelogTest < ApplicationSystemTestCase
     visit '/settings?tab=timelog'
     # Remove a column
     select 'Comment', :from => 'Selected Columns'
-    click_on "←\90"
+    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