Skip to content

Commit c06fb25

Browse files
committed
add baseUrl to protractor conf
avoids to write browser.get('http://localhost:3000/mypage') all the time see https://github.com/angular/protractor/blob/2.1.0/docs/referenceConf.js#L160
1 parent b1a5baf commit c06fb25

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/templates/e2e/main.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ describe('The main view', function () {
44
var page;
55

66
beforeEach(function () {
7-
browser.get('http://localhost:3000/index.html');
7+
browser.get('/index.html');
88
page = require('./main.po');
99
});
1010

app/templates/protractor.conf.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ exports.config = {
1212
capabilities: {
1313
'browserName': 'chrome'
1414
},
15+
16+
baseUrl: 'http://localhost:3000',
1517

1618
// Spec patterns are relative to the current working directly when
1719
// protractor is called.

0 commit comments

Comments
 (0)