Commit b48518da authored by Mathieu Giraud's avatar Mathieu Giraud

tests watir: shortcuts, numeric keypad

parent d5462759
......@@ -238,6 +238,12 @@ class Browser < MiniTest::Test
$b.unselect
end
def test_0a_shortcuts_numpad
assert ($b.preset_selector.selected? "V/J (genes)"), ">> preset selector badly set"
$b.send_keys :numpad2
assert ($b.preset_selector.selected? "V/N length"), ">> preset selector not properly changed"
end
def test_10_imgt
begin
$b.clone_in_scatterplot('25').wait_until_present
......
......@@ -150,6 +150,11 @@ class VidjilBrowser < Watir::Browser
edit: ts.li(:index => id.to_i).span(:class => 'edit_button')}
end
# Return the select containing the preset selector in the graph
def preset_selector
return select_list(:class => 'axis_select_preset_select')
end
# Return the div containing the tag selector
def tag_selector
return div(:class => 'tagSelector')
......
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