Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mock_data.js « accessibility « extentions « vue_mr_widget « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 06dc93d101fe65136b6927d45788ab9c868c5438 (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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
export const accessibilityReportResponseErrors = {
  status: 'failed',
  new_errors: [
    {
      code: 'WCAG2AA.Principle2.Guideline2_4.2_4_1.H64.1',
      type: 'error',
      type_code: 1,
      message: 'Iframe element requires a non-empty title attribute that identifies the frame.',
      context:
        '<iframe height="0" width="0" style="display: none; visibility: hidden;" src="//10421980.fls.doubleclick.net/activityi;src=10421980;type=count0;cat=globa0;ord=6271888671448;gtm=2wg1c0;auiddc=40010797.1642181125;u1=undefined;u2=undefined;u3=undefined;u...',
      selector: 'html > body > iframe:nth-child(42)',
      runner: 'htmlcs',
      runner_extras: {},
    },
    {
      code: 'WCAG2AA.Principle3.Guideline3_2.3_2_2.H32.2',
      type: 'error',
      type_code: 1,
      message:
        'This form does not contain a submit button, which creates issues for those who cannot submit the form using the keyboard. Submit buttons are INPUT elements with type attribute "submit" or "image", or BUTTON elements with type "submit" or omitted/invalid.',
      context:
        '<form class="challenge-form" id="challenge-form" action="/users/sign_in?__cf_chl_jschl_tk__=xoagAHj9DXTTDveypAmMkakkNQgeWc6LmZA53YyDeSg-1642181129-0-gaNycGzNB1E" method="POST" enctype="application/x-www-form-urlencoded">\n    <input type="hidden" name...',
      selector: '#challenge-form',
      runner: 'htmlcs',
      runner_extras: {},
    },
    {
      code: 'WCAG2AA.Principle2.Guideline2_4.2_4_1.H64.1',
      type: 'error',
      type_code: 1,
      message: 'Iframe element requires a non-empty title attribute that identifies the frame.',
      context: '<iframe style="display: none;"></iframe>',
      selector: 'html > body > iframe',
      runner: 'htmlcs',
      runner_extras: {},
    },
  ],
  resolved_errors: [
    {
      code: 'WCAG2AA.Principle2.Guideline2_4.2_4_1.H64.1',
      type: 'error',
      type_code: 1,
      message: 'Iframe element requires a non-empty title attribute that identifies the frame.',
      context:
        '<iframe height="0" width="0" style="display: none; visibility: hidden;" src="//10421980.fls.doubleclick.net/activityi;src=10421980;type=count0;cat=globa0;ord=6722452746146;gtm=2wg1a0;auiddc=716711306.1642082367;u1=undefined;u2=undefined;u3=undefined;...',
      selector: 'html > body > iframe:nth-child(42)',
      runner: 'htmlcs',
      runner_extras: {},
    },
    {
      code: 'WCAG2AA.Principle3.Guideline3_2.3_2_2.H32.2',
      type: 'error',
      type_code: 1,
      message:
        'This form does not contain a submit button, which creates issues for those who cannot submit the form using the keyboard. Submit buttons are INPUT elements with type attribute "submit" or "image", or BUTTON elements with type "submit" or omitted/invalid.',
      context:
        '<form class="challenge-form" id="challenge-form" action="/users/sign_in?__cf_chl_jschl_tk__=vDKZT2hjxWCstlWz2wtxsLdqLF79rM4IsoxzMgY6Lfw-1642082370-0-gaNycGzNB2U" method="POST" enctype="application/x-www-form-urlencoded">\n    <input type="hidden" name...',
      selector: '#challenge-form',
      runner: 'htmlcs',
      runner_extras: {},
    },
  ],
  existing_errors: [
    {
      code: 'WCAG2AA.Principle1.Guideline1_1.1_1_1.H30.2',
      type: 'error',
      type_code: 1,
      message:
        'Img element is the only content of the link, but is missing alt text. The alt text should describe the purpose of the link.',
      context: '<a href="/" data-nav="logo">\n<img src="/images/icons/logos/...</a>',
      selector: '#navigation-mobile > header > a',
      runner: 'htmlcs',
      runner_extras: {},
    },
    {
      code: 'WCAG2AA.Principle1.Guideline1_1.1_1_1.H37',
      type: 'error',
      type_code: 1,
      message:
        'Img element missing an alt attribute. Use the alt attribute to specify a short text alternative.',
      context: '<img src="/images/icons/slp-hamburger.svg" class="slp-inline-block slp-mr-8">',
      selector: '#slpMobileNavActive > img',
      runner: 'htmlcs',
      runner_extras: {},
    },
    {
      code: 'WCAG2AA.Principle1.Guideline1_1.1_1_1.H37',
      type: 'error',
      type_code: 1,
      message:
        'Img element missing an alt attribute. Use the alt attribute to specify a short text alternative.',
      context: '<img src="/images/icons/slp-caret-down.svg">',
      selector: '#navigation-mobile > div:nth-child(2) > div:nth-child(2) > button > div > img',
      runner: 'htmlcs',
      runner_extras: {},
    },
    {
      code: 'WCAG2AA.Principle1.Guideline1_1.1_1_1.H37',
      type: 'error',
      type_code: 1,
      message:
        'Img element missing an alt attribute. Use the alt attribute to specify a short text alternative.',
      context: '<img src="/images/icons/slp-caret-down.svg">',
      selector: '#navigation-mobile > div:nth-child(2) > div:nth-child(3) > button > div > img',
      runner: 'htmlcs',
      runner_extras: {},
    },
    {
      code: 'WCAG2AA.Principle1.Guideline1_1.1_1_1.H37',
      type: 'error',
      type_code: 1,
      message:
        'Img element missing an alt attribute. Use the alt attribute to specify a short text alternative.',
      context: '<img src="/images/icons/slp-caret-down.svg">',
      selector: '#navigation-mobile > div:nth-child(2) > div:nth-child(4) > button > div > img',
      runner: 'htmlcs',
      runner_extras: {},
    },
  ],
  summary: {
    total: 8,
    resolved: 2,
    errored: 8,
  },
};

export const accessibilityReportResponseSuccess = {
  status: 'success',
  new_errors: [],
  resolved_errors: [],
  existing_errors: [],
  summary: {
    total: 0,
    resolved: 0,
    errored: 0,
  },
};