layout.js
3.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
module.exports = function(){
'use strict';
describe('The common layout', function () {
var page = require('./layout.po.js');
describe('Accessibility (a11y) top bar', function(){
it('should have a "skip-to-content" anchor', function() {
expect(page.skipToContent.getText()).toEqual('Ir para o conteúdo 1');
});
it('should have a "skip-to-navigation" anchor', function() {
expect(page.skipToNavigation.getText()).toEqual('Ir para o menu 2');
});
it('should have a "skip-to-search" anchor', function() {
expect(page.skipToSearch.getText()).toEqual('Ir para a busca 3');
});
// it('should have a "skip-to-footer" anchor', function() {
// expect(page.skipToFooter.getText()).toEqual('Ir para o rodapé 4');
// });
it('should have a accessibility anchor', function() {
expect(page.actionAccessibility.getText()).toEqual('ACESSIBILIDADE');
});
it('should have a adjust contrast anchor', function() {
expect(page.actionContrast.getText()).toEqual('ALTO CONTRASTE');
});
it('should have a sitemap anchor', function() {
expect(page.actionSitemap.getText()).toEqual('MAPA DO SITE');
});
});
describe('Header', function(){
it('should have a logo', function() {});
it('should have a navigation', function() {});
it('should have a social share area', function() {});
it('should have a "CADASTRAR" anchor', function() {});
it('should have a "ENTRAR" anchor', function() {});
it('should have a "Veja mais" area', function() {});
it('should have a valid ARIA', function() {});
describe('Header / Navigation', function(){
it('should have a "SOBRE" anchor', function() {});
it('should have a "PROGRAMAS" anchor', function() {});
it('should have a "PROPOSTAS" anchor', function() {});
it('should have a "DÚVIDAS" anchor', function() {});
it('should be condensed on mobile', function() {});
it('should have a valid ARIA', function() {});
// it('should have a "ENTRAR?" anchor on MOBILE?', function() {});
// it('should have a "RANKING?" anchor on MOBILE?', function() {});
// it('should have a "RESPOSTAS?" anchor on MOBILE?', function() {});
// it('should have a "PARTICIPE?" anchor on MOBILE?', function() {});
});
describe('Header / Social Share', function(){
it('should have a facebook share button', function() {});
it('should have a twitter share button', function() {});
it('should have a gplus share button', function() {});
it('should have a whatsapp share button', function() {});
it('should be condensed on mobile', function() {});
it('should have a email share button', function() {});
it('should have a valid ARIA', function() {});
// what to do when on mobile?
// too small on mobile? point issues
});
describe('Header / "Veja mais"', function(){
it('should have a youtube link', function() {});
// it('should have a flicker? link', function() {});
it('should have a valid ARIA', function() {});
// what to do when on mobile?
});
});
describe('Footer', function(){
it('should have a ?', function() {});
it('should have a valid ARIA', function() {});
});
});
};