Skip to content

Commit 3216176

Browse files
committed
fix(test): mocha pre + sauce fix
1 parent e111ad5 commit 3216176

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"presaucelabs-test-standalone": "npm run test:simple-doc",
2424
"saucelabs-test-standalone": "node ./test/saucelabs/teststandalone.js",
2525
"saucelabs-test-webdriver": "node ./test/saucelabs/test-webdriver.js",
26+
"presaucelabs-test-mocha": "npm run test:simple-doc",
2627
"saucelabs-test-mocha": "cross-env TS_NODE_PROJECT=test/tsconfig.json TS_NODE_DISABLE_WARNINGS=1 nyc mocha --opts test/mocha-e2e.opts"
2728
},
2829
"watch": {
@@ -98,7 +99,7 @@
9899
"rollup": "^0.41.4",
99100
"rollup-plugin-typescript": "^0.8.1",
100101
"rollup-watch": "^3.2.2",
101-
"selenium-webdriver": "^3.3.0",
102+
"selenium-webdriver": "^3.3.0",
102103
"ts-node": "^2.1.0",
103104
"tslint": "^4.5.1",
104105
"wdio-mocha-framework": "^0.5.9",

test/saucelabs/mocha.spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ test.describe('Google Search', function() {
1212
'platform': 'Windows XP',
1313
'version': '43.0',
1414
'username': username,
15-
'accessKey': accessKey
15+
'accessKey': accessKey,
16+
'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER,
17+
name: 'Compodoc test',
18+
'public': true,
19+
build: process.env.TRAVIS_BUILD_NUMBER
1620
})
1721
.usingServer("http://" + username + ":" + accessKey + "@ondemand.saucelabs.com:80/wd/hub")
1822
.build();
19-
driver.get('http://www.google.com');
23+
driver.get('http://127.0.0.1:8383');
2024

2125
var searchBox = driver.findElement(webdriver.By.name('q'));
2226

0 commit comments

Comments
 (0)