Skip to content
Permalink
Browse files

Merge branch 'feature-sc/fix-external-tests-for-chrome' into 'dev'

Browser tests for chrome

Closes #3695

See merge request vidjil/vidjil!437
  • Loading branch information...
magiraud committed Mar 13, 2019
2 parents 73672da + 2562c3e commit 15729d578e31443dbdd679e4dd8a608891adca81
@@ -253,6 +253,7 @@ function imgtPostForSegmenter(species, data, system, segmenter, override_imgt_op
var input = document.createElement('input');
input.type = 'checkbox';
input.id = 'imgt_cdr3_input_check';
input.checked = false;
$(input).on("click", function() {
if(this.checked) {
segmenter.highlight[1].field = "CDR3-IMGT";
@@ -264,7 +265,6 @@ function imgtPostForSegmenter(species, data, system, segmenter, override_imgt_op
segmenter.update();

});
input.click();
var label = document.createElement('label');
label.setAttribute("for", 'imgt_cdr3_input_check');
label.innerHTML = 'CDR3-IMGT';
@@ -278,6 +278,7 @@ function imgtPostForSegmenter(species, data, system, segmenter, override_imgt_op
input = document.createElement('input');
input.type = 'checkbox';
input.id = 'imgt_vdj_input_check';
input.checked = false;
$(input).on("click", function() {
if(this.checked) {
segmenter.highlight[2].field = "V-REGION";
@@ -295,7 +296,6 @@ function imgtPostForSegmenter(species, data, system, segmenter, override_imgt_op
segmenter.update();

});
input.click();
label = document.createElement('label');
label.setAttribute("for", 'imgt_vdj_input_check');
label.innerHTML = "V/D/J-IMGT";
@@ -53,7 +53,7 @@ def test_10bis_imgt_post
begin
$b.clone_in_scatterplot('25').click
$b.span(:id => "toIMGTSeg" ).click
$b.segmenter_checkbox_imgt_vdj.wait_until(&:present?)
$b.until { $b.segmenter_checkbox_imgt_vdj.present? }

clone_info = $b.clone_info_segmenter('25')
productive_title = clone_info[:axis].element(:class => 'productivity-IMGT').title
@@ -219,7 +219,7 @@ def test_13_export_fasta

def test_14_export_sample_report

if ENV['WATIR_CHROME']
if $b.driver.capabilities.browser_name == 'chrome'
skip "Issue #3699 must be solved first"
end

@@ -10,7 +10,7 @@ def initialize
Selenium::WebDriver::Chrome.path = ENV['WATIR_BROWSER_PATH']
end
# :chrome or :safari
if ENV['WATIR_CHROME']
if ENV['WATIR_CHROME'] or ENV['WATIR_BROWSER_PATH'].include? "chrom"
super :chrome
elsif ENV['WATIR_MARIONETTE']
super :firefox
@@ -1,2 +1,3 @@
firefox/v32/firefox
firefox/v45/firefox
chrome/default/chrome

0 comments on commit 15729d5

Please sign in to comment.
You can’t perform that action at this time.