Commit 1cc8da1c8625ef4ba27e905b7662be208da5e125
1 parent
b14ab1e6
Exists in
master
and in
8 other branches
Update e2e
Showing
2 changed files
with
19 additions
and
6 deletions
Show diff stats
e2e/pages/layout.js
| ... | ... | @@ -3,7 +3,7 @@ module.exports = function(){ |
| 3 | 3 | |
| 4 | 4 | describe('The common layout', function () { |
| 5 | 5 | |
| 6 | - var page = require('./layout.js'); | |
| 6 | + var page = require('./layout.po.js'); | |
| 7 | 7 | |
| 8 | 8 | describe('Accessibility (a11y) top bar', function(){ |
| 9 | 9 | it('should have a "skip-to-content" anchor', function() { | ... | ... |
protractor.conf.js
| ... | ... | @@ -7,17 +7,21 @@ |
| 7 | 7 | // An example configuration file. |
| 8 | 8 | exports.config = { |
| 9 | 9 | // The address of a running selenium server. |
| 10 | - //seleniumAddress: 'http://localhost:4444/wd/hub', | |
| 10 | + //seleniumAddress: 'http://0.0.0.0:4444/wd/hub', | |
| 11 | 11 | //seleniumServerJar: deprecated, this should be set on node_modules/protractor/config.json |
| 12 | 12 | |
| 13 | 13 | // Capabilities to be passed to the webdriver instance. |
| 14 | 14 | capabilities: { |
| 15 | - 'browserName': 'firefox' | |
| 15 | + 'browserName': 'chrome' | |
| 16 | 16 | }, |
| 17 | 17 | |
| 18 | - // chromeOnly: true, | |
| 18 | + chromeOnly: true, | |
| 19 | 19 | |
| 20 | - baseUrl: 'http://localhost:3000', | |
| 20 | + // onPrepare: function() { | |
| 21 | + // browser.driver.manage().window().setSize(1600, 800); | |
| 22 | + // }, | |
| 23 | + | |
| 24 | + baseUrl: 'http://0.0.0.0:3000', | |
| 21 | 25 | |
| 22 | 26 | rootElement: '[ng-app]', |
| 23 | 27 | |
| ... | ... | @@ -38,6 +42,15 @@ |
| 38 | 42 | jasmineNodeOpts: { |
| 39 | 43 | showColors: true, |
| 40 | 44 | defaultTimeoutInterval: 30000 |
| 41 | - } | |
| 45 | + }, | |
| 46 | + | |
| 47 | + plugins: [{ | |
| 48 | + path: 'node_modules/gulp-protractor/node_modules/protractor/plugins/accessibility', | |
| 49 | + chromeA11YDevTools: { | |
| 50 | + treatWarningsAsFailures: true | |
| 51 | + } | |
| 52 | + }, { | |
| 53 | + path: 'node_modules/gulp-protractor/node_modules/protractor/plugins/ngHint' | |
| 54 | + }] | |
| 42 | 55 | }; |
| 43 | 56 | })(); | ... | ... |