Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(e2e): add protractor scaffold to bangular
- Loading branch information
Showing
10 changed files
with
103 additions
and
5 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
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,23 @@ | ||
exports.config = { | ||
|
||
// The version is susceptible to change | ||
seleniumServerJar: '../node_modules/gulp-protractor/node_modules/protractor/selenium/selenium-server-standalone-2.45.0.jar', | ||
//chromeDriver: '../node_modules/gulp-protractor/node_modules/protractor/selenium/chromedriver', | ||
|
||
baseUrl: 'http://localhost:9000', | ||
|
||
capabilities: { | ||
'browserName': 'chrome' | ||
//'chromeOptions': { | ||
// 'binary': '/usr/bin/google-chrome-unstable' | ||
//} | ||
}, | ||
|
||
framework: 'jasmine', | ||
|
||
jasmineNodeOpts: { | ||
showColors: true, | ||
defaultTimeoutInterval: 30000 | ||
} | ||
|
||
}; |
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('home page', function () { | ||
|
||
describe('basic', function () { | ||
browser.get('/'); | ||
|
||
it('should have a basic content', function () { | ||
expect(element.all(by.css('div')).first().getText()).toBe('HomeCtrl'); | ||
}); | ||
}); | ||
|
||
}); |
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,14 @@ | ||
describe('login page', function () { | ||
|
||
describe('basic', function () { | ||
browser.get('/login'); | ||
|
||
it('should have two login inputs', function (done) { | ||
element.all(by.css('input')).then(function (inputs) { | ||
expect(inputs.length).toBe(2); | ||
done(); | ||
}); | ||
}); | ||
}); | ||
|
||
}); |
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,14 @@ | ||
describe('signup page', function () { | ||
|
||
describe('basic', function () { | ||
browser.get('/signup'); | ||
|
||
it('should have two signup inputs', function (done) { | ||
element.all(by.css('input')).then(function (inputs) { | ||
expect(inputs.length).toBe(2); | ||
done(); | ||
}); | ||
}); | ||
}); | ||
|
||
}); |
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
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.