summaryrefslogtreecommitdiff
path: root/spec/frontend/reports/accessibility_report/mock_data.js
blob: f8e832c1ce5639df00b0de69d0f50c4d0533976a (plain)
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
export const mockReport = {
  status: 'failed',
  summary: {
    total: 2,
    resolved: 0,
    errored: 2,
  },
  new_errors: [
    {
      code: 'WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail',
      type: 'error',
      typeCode: 1,
      message:
        'This element has insufficient contrast at this conformance level. Expected a contrast ratio of at least 4.5:1, but text in this element has a contrast ratio of 3.84:1. Recommendation:  change text colour to #767676.',
      context: '<a href="/stages-devops-lifecycle/" class="main-nav-link">Product</a>',
      selector: '#main-nav > div:nth-child(2) > ul > li:nth-child(1) > a',
      runner: 'htmlcs',
      runnerExtras: {},
    },
  ],
  new_notes: [],
  new_warnings: [],
  resolved_errors: [
    {
      code: 'WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.A.NoContent',
      type: 'error',
      typeCode: 1,
      message:
        'Anchor element found with a valid href attribute, but no link content has been supplied.',
      context: '<a href="/" class="navbar-brand animated"><svg height="36" viewBox="0 0 1...</a>',
      selector: '#main-nav > div:nth-child(1) > a',
      runner: 'htmlcs',
      runnerExtras: {},
    },
  ],
  resolved_notes: [],
  resolved_warnings: [],
  existing_errors: [
    {
      code: 'WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.A.NoContent',
      type: 'error',
      typeCode: 1,
      message:
        'Anchor element found with a valid href attribute, but no link content has been supplied.',
      context: '<a href="/" class="navbar-brand animated"><svg height="36" viewBox="0 0 1...</a>',
      selector: '#main-nav > div:nth-child(1) > a',
      runner: 'htmlcs',
      runnerExtras: {},
    },
  ],
  existing_notes: [],
  existing_warnings: [],
};

export default () => {};