forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotractor.conf.js
34 lines (27 loc) · 993 Bytes
/
protractor.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var buildConfig = require('./build.config');
var path = require('canonical-path');
var projectRoot = path.resolve(__dirname, '..');
exports.config = {
// Spec patterns are relative to the location of the spec file. They may
// include glob patterns.
specs: [
path.resolve(projectRoot, 'test/css/**/*.scenario.js'),
path.resolve(projectRoot, 'dist/ionic-demo/**/*.scenario.js'),
],
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true, // Use colors in the command line report.
defaultTimeoutInterval: 120000,
isVerbose: true
},
baseUrl: 'http://localhost:' + buildConfig.protractorPort,
onPrepare: function() {
var ionicSnapshot = require('./lib/ionic-snapshot.js');
ionicSnapshot({
groupId: 'ionic',
appId: 'kitchen-sink',
accessKey: process.env.IONIC_SNAPSHOT_KEY
});
}
};
// protractor config/protractor.conf.js --browser chrome --params.width 400 --params.height 800 --params.test_id 123