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

server/web2py/applications/vidjil/tests/functional/: add close_everything

Unfortunately Ryan did a nice job not to prevent this. But our test
architecture is probably slightly underoptimal and the close_everything
was called many times with ObjectSpace.define_finalizer (once by test)
which is not possible anymore when printing the console
parent d13033b0
Pipeline #127530 failed with stages
in 4841 minutes and 8 seconds
# coding: utf-8
load 'vidjil_browser.rb'
load 'browser_test.rb'
load 'client_browser_test.rb'
#browser test suite
class ExternalTest < BrowserTest
class ExternalTest < ClientBrowserTest
def setup
super
......
......@@ -56,5 +56,9 @@ class TestLogin < ServerTest
Watir::Wait.until(timeout: 30) {$b.execute_script("return jQuery.active") == 0}
assert(!login_form.present?)
end
def test_zz_close
close_everything
end
end
......@@ -115,4 +115,8 @@ class TestPreProcess < ServerTest
checkbox = line.checkbox
assert(checkbox.set?)
end
def test_zz_close
close_everything
end
end
......@@ -282,4 +282,8 @@ class TestSample < ServerTest
l = lines[0]
assert(l.td(:text => "QUEUED").present? || l.td(:text => "ASSIGNED").present? || l.td(:text => "COMPLETED").present?)
end
def test_zz_close
close_everything
end
end
......@@ -141,6 +141,9 @@ class TestSampleSet < ServerTest
assert(lines.count == 1)
end
def test_zz_close
close_everything
end
=begin
def test_patient_autocomplete
table = go_to_list
......
......@@ -81,4 +81,8 @@ class TestTag < ServerTest
assert(row.a(:text => /#test2/).present?)
end
end
def test_zz_close
close_everything
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