Commit 3f349878 authored by flothoni's avatar flothoni

Watir, add a param to keep browser open after a test

Link to #4466
parent 26ee05b8
Pipeline #166043 passed with stages
in 16 minutes and 48 seconds
......@@ -8,7 +8,7 @@ headless:
HEADLESS=1 $(MAKE) external
functional: ../../doc/analysis-example1.vidjil ../../tools/tests/data/fused_multiple.vidjil
sh launch_functional_tests $(BROWSERS) functional/test_*rb functional/issues/test_*rb
KEEPOPEN=0 sh launch_functional_tests $(BROWSERS) functional/test_*rb functional/issues/test_*rb
external: ../../doc/analysis-example1.vidjil
sh launch_functional_tests $(BROWSERS) functional/external_test_*rb
......
......@@ -99,11 +99,13 @@ class BrowserTest < MiniTest::Test
def close_everything
if defined? $b
if ENV['HEADLESS']
$headless.destroy
else
$b.close
end
if ENV['HEADLESS']
$headless.destroy
else
if ENV['KEEPOPEN'] == "0"
$b.close
end
end
end
end
......
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