From 4d8777bff90335ccd41f26480f9ea46cf1c6d134 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Tue, 3 Mar 2015 10:22:41 -0700 Subject: [PATCH] Allow Jasmine failures to fail test There was a selector bug that caused the Jasmine helper to not find failures in Jasmine tests. The selectors are now fixed. Change-Id: I2f66f4b04cd6e9fc1f7259bdac351ac0fe87e23c Closes-Bug: 1421788 --- horizon/test/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/horizon/test/helpers.py b/horizon/test/helpers.py index 1ae4d99c97..b6f9118bc1 100644 --- a/horizon/test/helpers.py +++ b/horizon/test/helpers.py @@ -284,14 +284,14 @@ class JasmineTests(SeleniumTestCase): wait.until(jasmine_done) failures = \ - self.selenium.find_elements_by_css_selector(".specDetail.failed") + self.selenium.find_elements_by_css_selector(".spec-detail.failed") results = [] for failure in failures: results.append( failure.find_element_by_class_name("description").text) results.append( - failure.find_element_by_class_name("stackTrace").text) + failure.find_element_by_class_name("stack-trace").text) self.assertEqual(results, [], '\n\n' + '\n\n'.join(results) + '\n\n')