Mise à jour terminée. Pour connaître les apports de la version 13.8.4 par rapport à notre ancienne version vous pouvez lire les "Release Notes" suivantes :
https://about.gitlab.com/releases/2021/02/11/security-release-gitlab-13-8-4-released/
https://about.gitlab.com/releases/2021/02/05/gitlab-13-8-3-released/

Commit 8efc36f4 authored by Ryan Herbert's avatar Ryan Herbert

server functional use destructor to close_everything

Instead of having a test that needs to be run after everything, use
Ruby finalizer to close browser.
This means we can then run tests in a random order and ensure we don't
have any order dependant tests
parent c7328403
Pipeline #35767 failed with stages
in 16 seconds
......@@ -15,8 +15,12 @@ MiniTest.autorun
#browser test suite
class BrowserTest < MiniTest::Test
def initialize
ObjectSpace.define_finalizer(self, proc { close_everything })
end
def self.test_order
:alpha
:random
end
def setup
......
......@@ -28,7 +28,7 @@ class TestLogin < BrowserTest
login_form.wait_until_present
end
def test_01_failed_login
def test_failed_login
login_form = $b.form(:id => 'login_form')
assert(login_form.present?)
login_form.text_field(:id => "auth_user_email").set('foo@bar.com')
......@@ -40,7 +40,7 @@ class TestLogin < BrowserTest
assert(login_form.present?)
end
def test_02_successful_login
def test_successful_login
login_form = $b.form(:id => 'login_form')
assert(login_form.present?)
login_form.text_field(:id => "auth_user_email").set('plop@plop.com')
......@@ -49,9 +49,5 @@ class TestLogin < BrowserTest
Watir::Wait.until(30) {$b.execute_script("return jQuery.active") == 0}
assert(!login_form.present?)
end
def test_zz_close
close_everything
end
end
......@@ -31,7 +31,7 @@ class TestPreProcess < BrowserTest
assert(table.tbody.present?)
end
def test_pre_process_002_add
def test_pre_process_add
table = go_to_list
count = table.tbody.rows.count
......@@ -51,8 +51,4 @@ class TestPreProcess < BrowserTest
lines = table.tbody.rows
assert(lines.count == count+1)
end
def test_zz_close
close_everything
end
end
......@@ -38,7 +38,7 @@ class TestSample < BrowserTest
table
end
def test_001_add
def test_add
table = go_to_first_set
count = table.tbody.rows.count
......@@ -83,7 +83,7 @@ class TestSample < BrowserTest
assert(lines.count == count + $num_additional_files + 1)
end
def test_002_edit
def test_edit
table = go_to_first_set
lines = table.tbody.rows
......@@ -106,7 +106,7 @@ class TestSample < BrowserTest
assert($b.link(:text => "#edited").present?)
end
def test_003_delete
def test_delete
table = go_to_set 3
count = table.tbody.rows.count
......@@ -134,7 +134,7 @@ class TestSample < BrowserTest
assert(table.tbody.rows.count == count-1)
end
def test_004_run
def test_run
table = go_to_first_set
$b.select_list(:id => "choose_config").select_value(2)
......@@ -151,8 +151,4 @@ class TestSample < BrowserTest
lines[0].wait_until_present
assert(lines[0].td(:text => "QUEUED").present?)
end
def test_zz_close
close_everything
end
end
......@@ -30,7 +30,7 @@ class TestSampleSet < BrowserTest
assert(table.tbody.present?)
end
def test_patient_002_add
def test_patient_add
table = go_to_list
count = table.tbody.rows.count
......@@ -69,7 +69,7 @@ class TestSampleSet < BrowserTest
end
end
def test_patient_003_edit
def test_patient_edit
table = go_to_list
# click edit button for first line in table
......@@ -97,7 +97,7 @@ class TestSampleSet < BrowserTest
assert(lines[0].cell(:index => 3).text == "#edited")
end
def test_patient_004_delete
def test_patient_delete
table = go_to_list
count = table.tbody.rows.count
......@@ -113,7 +113,7 @@ class TestSampleSet < BrowserTest
assert(lines.count == count-1)
end
def test_patient_005_search
def test_patient_search
table = go_to_list
filter = $b.text_field(:id => "db_filter_input")
......@@ -128,7 +128,7 @@ class TestSampleSet < BrowserTest
end
=begin
def test_patient_006_autocomplete
def test_patient_autocomplete
table = go_to_list
$b.execute_script("new VidjilAutoComplete().clearCache()")
......@@ -143,8 +143,4 @@ class TestSampleSet < BrowserTest
assert(autocomplete.ul.count == 5)
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