Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from lexith/master
Basic E2E Test Setup using Protractor
- Loading branch information
Showing
4 changed files
with
70 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
describe('App', () => { | ||
|
||
beforeEach( () => { | ||
browser.get('/'); | ||
}); | ||
|
||
it('should have a title', () => { | ||
expect(browser.getTitle()).toEqual('Angular 2 Seed [using RC3] - Minimalistic TypeScript starter project'); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
exports.config = { | ||
|
||
baseUrl: 'http://localhost:8080/', | ||
|
||
/* | ||
* Set to direct connect if tests are run locally (only Chrome / Firefox) | ||
*/ | ||
// directConnect: true, | ||
|
||
/* | ||
* Set seleniumAddress to phantomJS Ghost instance | ||
* Usage: node node_modules/phantomjs/bin/phantomjs --webdriver=4444 | ||
*/ | ||
seleniumAddress: 'http://localhost:4444', | ||
|
||
/* | ||
* Set seleniumAddress to webdriver-manager default when using other browsers | ||
* Usage: webdriver-manager start | ||
*/ | ||
// seleniumAddress: 'http://localhost:4444/wd/hub', | ||
|
||
specs: [ | ||
'./app/src/**/*.spec.e2e.js' | ||
], | ||
|
||
framework: 'jasmine', | ||
|
||
jasmineNodeOpts: { | ||
showColors: true | ||
}, | ||
|
||
capabilities: { | ||
// browserName: 'chrome' | ||
|
||
'browserName': 'phantomjs', | ||
'phantomjs.binary.path': './node_modules/phantomjs/bin/phantomjs', | ||
'phantomjs.cli.args': ['--logfile=PATH', '--loglevel=DEBUG'] | ||
}, | ||
|
||
onPrepare: function() { | ||
const SpecReporter = require('jasmine-spec-reporter'); | ||
jasmine.getEnv().addReporter(new SpecReporter({ displayStacktrace: 'all' })); | ||
|
||
browser.ignoreSynchronization = false; | ||
}, | ||
|
||
useAllAngular2AppRoots: true | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters