Fix test case looking for library id
authorDiane Trout <diane@ghic.org>
Thu, 15 Sep 2016 00:02:51 +0000 (17:02 -0700)
committerDiane Trout <diane@ghic.org>
Thu, 15 Sep 2016 00:02:51 +0000 (17:02 -0700)
Looking at the text for the strong node didn't work when the actual html was
<strong><a>text</a></strong>

experiments/test_experiments.py

index 7ba61dcf1ef9b09d4077b343ce943d249440d9a2..9dc193324f29d2ac1825b855ba94abc39f7dc318 100644 (file)
@@ -206,7 +206,7 @@ class ExperimentsTestCases(TestCase):
         for i in range(0, 8):
             xpath_expression = '//input[@id="id_lane_set-%d-library"]'
             input_field = tree.xpath(xpath_expression % (i,))[0]
-            library_field = input_field.find('../strong')
+            library_field = input_field.find('../strong/a')
             library_id, library_name = library_field.text.split(':')
             # strip leading '#' sign from name
             library_id = library_id[1:]