Commit 943a57a4 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

test_003_sample.rb fix jstree selection

jstree keeps its state so we only need to open the root folder if it is
closed
parent 01ac1d4e
......@@ -54,8 +54,10 @@ class TestSampleSet < BrowserTest
for i in 0..num_additional_files
$b.div(:id => "jstree_field_%d" % i).span(:text => "browse").click
assert(jstree.visible?)
jstree.a(:id => "/_anchor").double_click
jstree_file = jstree.a(:id => "//Demo-X5.fasta_anchor")
unless jstree_file.present? and jstree_file.present?
jstree.a(:id => "/_anchor").double_click
end
jstree_file.wait_until_present
jstree_file.click
......
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