-
Notifications
You must be signed in to change notification settings - Fork 1
/
protractor-ios.conf.js
42 lines (37 loc) · 1.2 KB
/
protractor-ios.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
35
36
37
38
39
40
41
42
exports.config = {
seleniumAddress: 'http://localhost:4723/wd/hub',
framework: 'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
cucumberOpts: {
require: ['./e2e/features/step_definitions/*.step.js', './e2e/features/support/*.js'],
format: "pretty"
},
specs: ['./e2e/features/*.feature'],
capabilities: {
browserName: '',
'appium-version': '1.7.1',
platformName: 'iOS',
platformVersion: '11.2',
deviceName: 'iPhone 8',
app: '/Users/user/Documents/code/clicker/platforms/ios/build/emulator/Clicker.app',
automationName: 'XCUITest',
autoWebview: true,
fullReset: true
},
baseUrl: '',
onPrepare: function() {
var wd = require('wd'),
protractor = require('protractor'),
wdBridge = require('wd-bridge')(protractor, wd);
wdBridge.initFromProtractor(exports.config);
var defer = protractor.promise.defer();
browser.ignoreSynchronization = true;
browser.executeScript('return window.location;').then( function(location){
browser.resetUrl = 'file://';
browser.baseUrl = location.origin + location.pathname;
defer.fulfill();
});
return defer.promise;
},
useAllAngular2AppRoots: true
};