aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-07-25 14:16:59 +1000
committerYuchen Pei <hi@ypei.me>2022-07-25 14:17:18 +1000
commitb1c24afb18fd461d4abb1de52de9051f4a49aa32 (patch)
tree7008ba696b8b023106ea45ed3a3a3b38f89e0849
parent6b0e27a5afc3ca8ca1fefbfd2326b104232d5f0e (diff)
update test script to include errors in output
-rw-r--r--test.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/test.js b/test.js
index 7c4b5ba..b2b0aec 100644
--- a/test.js
+++ b/test.js
@@ -46,7 +46,10 @@
.then(_ => driver.wait(_ =>
driver.findElement(webdriver.By.css('.jasmine-alert'))
.then(e => e.getText()), 10000))
- .then(_ => driver.findElement(webdriver.By.css('.jasmine-alert')))
+ .then(_ => driver.findElement(webdriver.By.css('.jasmine-overall-result')))
+ .then(e => e.getText())
+ .then(console.log)
+ .then(_ => driver.findElement(webdriver.By.css('.jasmine-results')))
.then(e => e.getText())
.then(console.log)
.then(_ => driver.quit())