diff --git a/e2e/pages/layout.js b/e2e/pages/layout.js index 625737c..6a6a21c 100644 --- a/e2e/pages/layout.js +++ b/e2e/pages/layout.js @@ -4,14 +4,28 @@ module.exports = function(){ describe('The common layout', function () { describe('Accessibility (a11y) top bar', function(){ - it('should have a "go-to-content" anchor', function() {}); - it('should have a "go-to-menu" anchor', function() {}); - it('should have a "go-to-search" anchor', function() {}); - it('should have a "go-to-footer" anchor', function() {}); + it('should have a "skip-to-content" anchor', function() { + expect(element(by.id('skip-to-content')).getText()).toEqual('Ir para o conteúdo 1'); + }); + it('should have a "skip-to-navigation" anchor', function() { + expect(element(by.id('skip-to-navigation')).getText()).toEqual('Ir para o menu 2'); + }); + it('should have a "skip-to-search" anchor', function() { + expect(element(by.id('skip-to-search')).getText()).toEqual('Ir para a busca 3'); + }); + it('should have a "skip-to-footer" anchor', function() { + expect(element(by.id('skip-to-footer')).getText()).toEqual('Ir para o rodapé 4'); + }); - it('should have a accessibility anchor', function() {}); - it('should have a adjust contrast anchor', function() {}); - it('should have a sitemap anchor', function() {}); + it('should have a accessibility anchor', function() { + expect(element(by.id('siteaction-accessibility')).getText()).toEqual('Acessibilidade'); + }); + it('should have a adjust contrast anchor', function() { + expect(element(by.id('siteaction-contraste')).getText()).toEqual('Alto Contraste'); + }); + it('should have a sitemap anchor', function() { + expect(element(by.id('siteaction-mapadosite')).getText()).toEqual('Mapa do Site'); + }); }); describe('Header', function(){ diff --git a/protractor.conf.js b/protractor.conf.js index 6b09380..ce4894f 100644 --- a/protractor.conf.js +++ b/protractor.conf.js @@ -19,11 +19,22 @@ baseUrl: 'http://localhost:3000', + rootElement: '[ng-app]', + + // The timeout in milliseconds for each script run on the browser. This should + // be longer than the maximum time your application needs to stabilize between + // tasks. + allScriptsTimeout: 11000, + + // How long to wait for a page to load. + getPageTimeout: 10000, + // Spec patterns are relative to the current working directly when // protractor is called. specs: [paths.e2e + '/**/*.js'], // Options to be passed to Jasmine-node. + 'framework': 'jasmine2', jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 30000 diff --git a/src/app/components/a11y-bar/a11y-bar.html b/src/app/components/a11y-bar/a11y-bar.html index 3cc550a..0d94be6 100644 --- a/src/app/components/a11y-bar/a11y-bar.html +++ b/src/app/components/a11y-bar/a11y-bar.html @@ -21,7 +21,7 @@ 3 -
  • +
  • Ir para o rodapé 4 @@ -32,14 +32,14 @@
    -- libgit2 0.21.2