Commit 624337a1 authored by Thonier Florian's avatar Thonier Florian

test_cluste.rb; use visible? to test display none

Link to #3951
parent baf16cde
Pipeline #88350 failed with stages
in 5 minutes
......@@ -20,8 +20,8 @@ class TestCluster < BrowserTest
end
def test_00_list_clones
assert ($b.div(:id => 'cluster1').exists? ), '>> cluster1 exist'
assert ($b.div(:id => 'cluster1').style.display == 'none' ), '>> cluster1 is not display'
assert ($b.div(:id => 'cluster1').present? ), '>> cluster1 exist'
assert (not $b.div(:id => 'cluster1').visible? ), '>> cluster1 is not display'
end
......@@ -33,7 +33,7 @@ class TestCluster < BrowserTest
def test_02_cluster_hide
$b.div(:id => 'clusterBox_1').click
$b.clone_info('1')[:cluster].click
assert ($b.div(:id => 'cluster1').style.display == 'none' ), '>> cluster1 is display'
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