Skip to content
This repository was archived by the owner on Jan 28, 2020. It is now read-only.

Commit b3cfa05

Browse files
committed
Update init tests and config
- Set default find timeout in functional test - Enable functional tests in generated intern.js
1 parent 8b217ec commit b3cfa05

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

bin/intern.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ program
175175
var data = fs.readFileSync(path.join(internDir, 'tests', 'example.intern.js'), { encoding: 'utf8' });
176176
data = data.replace(/myPackage/g, 'app');
177177
data = data.replace(/suites: \[.*?],/, 'suites: [ \'app/tests/unit/*\' ],');
178+
data = data.replace(/functionalSuites: \[.*?],/, 'suites: [ \'app/tests/functional/*\' ],');
178179
data = data.replace(/'BrowserStackTunnel'/, '\'NullTunnel\'');
179180
data = data.replace(/capabilities: {[\s\S]*?}/, 'capabilities: {}');
180181

init/functional/hello.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ define([
1313
'check contents': function () {
1414
// Functional tests should return a command chain based on the remote object
1515
return this.remote
16+
// Initialize the find timeout (the default is driver-specific, and may be 0)
17+
.setFindTimeout(5000)
1618
// Use require.toUrl to get a relative URL to a resource
1719
.get(require.toUrl('./page.html'))
1820
.findByClassName('bar')

0 commit comments

Comments
 (0)