diff --git a/e2e/pages/layout.js b/e2e/pages/layout.js index 6dae2af..9bd7de4 100644 --- a/e2e/pages/layout.js +++ b/e2e/pages/layout.js @@ -3,7 +3,7 @@ module.exports = function(){ describe('The common layout', function () { - var page = require('./layout.js'); + var page = require('./layout.po.js'); describe('Accessibility (a11y) top bar', function(){ it('should have a "skip-to-content" anchor', function() { diff --git a/protractor.conf.js b/protractor.conf.js index ce4894f..ec1f3ed 100644 --- a/protractor.conf.js +++ b/protractor.conf.js @@ -7,17 +7,21 @@ // An example configuration file. exports.config = { // The address of a running selenium server. - //seleniumAddress: 'http://localhost:4444/wd/hub', + //seleniumAddress: 'http://0.0.0.0:4444/wd/hub', //seleniumServerJar: deprecated, this should be set on node_modules/protractor/config.json // Capabilities to be passed to the webdriver instance. capabilities: { - 'browserName': 'firefox' + 'browserName': 'chrome' }, - // chromeOnly: true, + chromeOnly: true, - baseUrl: 'http://localhost:3000', + // onPrepare: function() { + // browser.driver.manage().window().setSize(1600, 800); + // }, + + baseUrl: 'http://0.0.0.0:3000', rootElement: '[ng-app]', @@ -38,6 +42,15 @@ jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 30000 - } + }, + + plugins: [{ + path: 'node_modules/gulp-protractor/node_modules/protractor/plugins/accessibility', + chromeA11YDevTools: { + treatWarningsAsFailures: true + } + }, { + path: 'node_modules/gulp-protractor/node_modules/protractor/plugins/ngHint' + }] }; })(); -- libgit2 0.21.2