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

Commit 3f4f2cc

Browse files
committed
test(e2e): use relative URLs
1 parent cbd85af commit 3f4f2cc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

hint_test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ describe('angularHint', function() {
1818
// });
1919

2020
it('should have an inclusive mode', function() {
21-
browser.get('http://localhost:8080/e2e/inclusiveHint/');
21+
browser.get('inclusiveHint/');
2222
expect(element(by.id('title')).getText()).toBe('Inclusive Hint Example');
2323
expect(element(by.id('console')).getText()).toContain('Angular best practices are to manipulate the DOM in the view.');
2424
expect(element(by.id('console')).getText()).not.toContain('Directive');
2525
});
2626

2727
it('should have an exclusive mode', function() {
28-
browser.get('http://localhost:8080/e2e/exclusiveHint/');
28+
browser.get('exclusiveHint/');
2929
expect(element(by.id('title')).getText()).toBe('Exclusive Hint Example');
3030
expect(element(by.id('console')).getText()).not.toContain('Angular best practices are to manipulate the DOM in the view.');
3131
expect(element(by.id('console')).getText()).toContain('Directive');
3232
});
3333

3434
it('should not add modules if ng-hint is not included', function() {
35-
browser.get('http://localhost:8080/e2e/noHint/');
35+
browser.get('noHint/');
3636
expect(element(by.id('title')).getText()).toBe('No Hint Example');
3737
expect(element(by.id('console')).getText()).not.toContain('Angular best practices are to manipulate the DOM in the view.');
3838
expect(element(by.id('console')).getText()).not.toContain('Directives');

protractor-conf.js

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

33
exports.config = {
4+
baseUrl: 'http://localhost:8080/e2e/',
5+
46
seleniumServerJar: './node_modules/protractor/selenium/selenium-server-standalone-2.42.2.jar',
57

68
capabilities: {

0 commit comments

Comments
 (0)