mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
chore(): begin adding ionic components to mono-repo.
This commit is contained in:
40
packages/ionic-angular/scripts/snapshot/protractor.config.js
Normal file
40
packages/ionic-angular/scripts/snapshot/protractor.config.js
Normal file
@ -0,0 +1,40 @@
|
||||
|
||||
var buildConfig = require('../build/config');
|
||||
var path = require('canonical-path');
|
||||
var snapshotConfig = require('./snapshot.config').config;
|
||||
|
||||
exports.config = {
|
||||
|
||||
// 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() {
|
||||
beforeEach(function() {
|
||||
patchProtractorWait(global.browser);
|
||||
});
|
||||
|
||||
var ionicSnapshot = require('./ionic.snapshot');
|
||||
ionicSnapshot(snapshotConfig);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// From https://github.com/angular/angular/blob/master/protractor-shared.js
|
||||
// Disable waiting for Angular as we don't have an integration layer yet...
|
||||
// TODO remove this once protractor supports angular2
|
||||
function patchProtractorWait(browser) {
|
||||
browser.ignoreSynchronization = true;
|
||||
var _get = browser.get;
|
||||
var sleepInterval = process.env.TRAVIS || process.env.JENKINS_URL ? 7000 : 3000;
|
||||
browser.get = function() {
|
||||
var result = _get.apply(this, arguments);
|
||||
//browser.sleep(sleepInterval);
|
||||
return result;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user