Commit b299de1c authored by Mikaël Salson's avatar Mikaël Salson

Merge branch 'doc/4595-tests-tutorial-et-ff32' into 'dev'

Resolve "Tests tutorial et ff32, sauter quelques tests et enlever le allow:failure"

Closes #4595

See merge request !867
parents a6ef6d3a a765bf24
Pipeline #199631 failed with stages
in 12 minutes and 22 seconds
......@@ -322,7 +322,6 @@ old-chrome-browser-functional-external-chrome:
ff32-browser-tutorial:
extends: .browser-tutorial
allow_failure: true
variables:
FIREFOX_VERSION: 32
......
......@@ -26,6 +26,17 @@ class BrowserTest < MiniTest::Test
end
end
# Skip a test on a given browser version
def skip_on_browser(name, version, message)
if $b.driver.capabilities.browser_name == name
if $b.driver.capabilities.version == version
nameversion = "(" + $b.driver.capabilities.browser_name + "/" + $b.driver.capabilities.version + ")"
print nameversion
skip message + " " + nameversion
end
end
end
def set_browser(vidjil_file, analysis_file=nil, local_storage=nil, close_tooltip=true)
folder_path = File.expand_path(File.dirname(__FILE__))
folder_path.sub! '/browser/test/functional', ''
......
......@@ -702,6 +702,9 @@ and the $y$ axis selects the order of the boxes sharing a same $x$).
In the bar plot mode, pass the mouse over the bars: What happens?}
\begin{verbatim}
def test_B_clones_28_switch_scatterplot_mode
skip_on_browser('firefox', '32.0', 'See issue #4595')
$b.send_keys 0
$b.update_icon.wait_while(&:present?)
assert ( $b.scatterplot_x_label.text == "V/5' gene" ), "Correct legend for axe X for preset 0"
......@@ -734,6 +737,9 @@ In the bar plot mode, pass the mouse over the bars: What happens?}
\question{Press the keys \texttt{0} to \texttt{9} on the numeric keypad. What happens ?}
\begin{verbatim}
def test_B_clones_29_shortcut_preset
skip_on_browser('firefox', '32.0', 'See issue #4595')
$b.send_keys 0
$b.update_icon.wait_while(&:present?)
......
......@@ -29,6 +29,9 @@ Bear in mind that to ensure readability at most 50 curves are displayed in this
# XXX don't know why, but class_name and class don't work. Use outer_html.include instead XXX
assert ( $b.circle(:id => "visu_circle1").outer_html.include? "circle_focus" ), "focus given to the clone in scatterplot"
assert ( $b.li(:class => ["list", "list_focus"]).id == "1"), "focus given to the clone in list"
skip_on_browser('firefox', '32.0', 'See issue #4595')
assert ( $b.path(:id => "polyline1").outer_html.include? 'graph_focus'), "focus given to the clone in timeline graph"
assert ( $b.div(:class => ["focus", "cloneName"]).text == "interesting clone (IGHV3-9*01 7/CCCGGA/17 IGHJ6*02)"), "clone name is set in focus"
end
......@@ -73,6 +76,8 @@ We will look now at how the V gene distribution evolves along the time.
$b.update_icon.wait_while(&:present?)
assert ($b.info_name.text == "LIL-L3-0"), "Correct name of sample before play lunched"
skip_on_browser('firefox', '32.0', 'See issue #4595')
## launch "play" function
$b.div(:class => ["play_button", "button"]).click
$b.wait_while{ $b.info_name.text == "LIL-L3-0" }
......
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