Skip to content
This repository was archived by the owner on Oct 26, 2025. It is now read-only.

Commit 18f4a2b

Browse files
committed
fix protractor testing
1 parent 821248f commit 18f4a2b

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

gulp/tasks/protractor.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
'use strict';
22

3-
var gulp = require('gulp');
4-
var protractor = require('gulp-protractor').protractor;
5-
var webdriver = require('gulp-protractor').webdriver;
6-
var webdriverUpdate = require('gulp-protractor').webdriver_update;
7-
var config = require('../config');
3+
import config from '../config';
4+
import gulp from 'gulp';
5+
import {
6+
protractor,
7+
webdriver,
8+
webdriver_update
9+
} from 'gulp-protractor';
810

9-
gulp.task('webdriver-update', webdriverUpdate);
11+
gulp.task('webdriver-update', webdriver_update);
1012
gulp.task('webdriver', webdriver);
1113

1214
gulp.task('protractor', ['webdriver-update', 'webdriver', 'browserSync'], function(cb = function() {}) {

test/protractor.conf.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
'use strict';
22

3+
require('babel-core/register');
4+
35
var gulpConfig = require('../gulp/config');
46

57
exports.config = {
68

79
allScriptsTimeout: 11000,
810

9-
baseUrl: 'http://localhost:' + gulpConfig.browserPort + '/',
11+
baseUrl: 'http://localhost:' + gulpConfig.UIPort + '/',
1012

1113
directConnect: true,
1214

0 commit comments

Comments
 (0)