testilo 31.0.0 → 31.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/merge.js CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  // Module to keep secrets.
9
9
  require('dotenv').config();
10
- // Module to perform common actions.
10
+ // Utility module.
11
11
  const {alphaNumOf, dateOf, getRandomString, getNowStamp} = require('./procs/util');
12
12
 
13
13
  // ########## CONSTANTS
@@ -119,12 +119,13 @@ exports.merge = (script, batch, standard, observe, requester, timeStamp) => {
119
119
  // Add other properties to the job.
120
120
  job.mergeID = mergeID;
121
121
  job.sendReportTo = process.env.SEND_REPORT_TO || '';
122
- // Add data to the sources property of the job.
123
- job.sources.target.id = targetID;
122
+ // If the target is the last one:
124
123
  if (index === targets.length - 1) {
125
- // Add that fact to the job.
124
+ // Add that fact to the sources property of the job.
126
125
  job.sources.lastTarget = true;
127
126
  }
127
+ // Add other data to the sources property of the job.
128
+ job.sources.target.id = targetID;
128
129
  job.sources.target.what = target.what;
129
130
  job.sources.target.which = target.which;
130
131
  // Replace each placeholder object in the job with the named replacer array of the target.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testilo",
3
- "version": "31.0.0",
3
+ "version": "31.0.2",
4
4
  "description": "Prepares and processes Testaro reports",
5
5
  "main": "call.js",
6
6
  "scripts": {
@@ -88,49 +88,49 @@ exports.issues = {
88
88
  },
89
89
  'frame-tested': {
90
90
  variable: false,
91
- quality: 0.2,
91
+ quality: 0,
92
92
  what: 'Some content is in an iframe and so may not be testable for accessibility [speculative]'
93
93
  },
94
94
  'hidden-content': {
95
95
  variable: false,
96
- quality: 1,
96
+ quality: 0,
97
97
  what: 'Some content is hidden and so may not be testable for accessibility [speculative]'
98
98
  }
99
99
  },
100
100
  ed11y: {
101
101
  altNull: {
102
102
  variable: false,
103
- quality: 1,
103
+ quality: 0,
104
104
  what: 'img element not inside a link has an empty alt attribute [speculative]'
105
105
  },
106
106
  altPartOfLinkWithText: {
107
107
  variable: false,
108
- quality: 1,
108
+ quality: 0,
109
109
  what: 'Name of the link enclosing the img element includes its alt attribute, so may be unclear [speculative]'
110
110
  },
111
111
  embedAudio: {
112
112
  variable: false,
113
- quality: 1,
113
+ quality: 0,
114
114
  what: 'Element is audio, so may lack an accurate transcript [speculative]'
115
115
  },
116
116
  embedCustom: {
117
117
  variable: false,
118
- quality: 1,
118
+ quality: 0,
119
119
  what: 'Embedded custom element may fail to be accessible [speculative]'
120
120
  },
121
121
  embedTwitter: {
122
122
  variable: false,
123
- quality: 1,
123
+ quality: 0,
124
124
  what: 'Element is a Twitter feed, so may add many items on scroll and thus be impractical to exit by keyboard [speculative]'
125
125
  },
126
126
  embedVideo: {
127
127
  variable: false,
128
- quality: 1,
128
+ quality: 0,
129
129
  what: 'Element is video, so may lack captions [speculative]'
130
130
  },
131
131
  embedVisualization: {
132
132
  variable: false,
133
- quality: 1,
133
+ quality: 0,
134
134
  what: 'Element is a visualization, so may lack a nonvisual equivalent [speculative]'
135
135
  }
136
136
  },
@@ -164,29 +164,34 @@ exports.issues = {
164
164
  },
165
165
  'QW-ACT-R64': {
166
166
  variable: false,
167
- quality: 1,
167
+ quality: 0,
168
168
  what: 'Document has no heading for non-repeated content'
169
169
  },
170
170
  'QW-ACT-R73': {
171
171
  variable: false,
172
- quality: 1,
172
+ quality: 0,
173
173
  what: 'Block of repeated content is not collapsible [invalid]'
174
174
  },
175
175
  'QW-ACT-R74': {
176
176
  variable: false,
177
- quality: 1,
177
+ quality: 0,
178
178
  what: 'Document has no instrument to move focus to non-repeated content [invalid]'
179
179
  },
180
180
  'QW-ACT-R75': {
181
181
  variable: false,
182
- quality: 1,
182
+ quality: 0,
183
183
  what: 'Blocks of repeated content cannot be bypassed [invalid]'
184
184
  },
185
185
  'QW-BP1': {
186
186
  variable: false,
187
- quality: 1,
187
+ quality: 0,
188
188
  what: 'h1-h6 not used to identify headings [invalid]'
189
189
  },
190
+ 'QW-BP29': {
191
+ variable: false,
192
+ quality: 0,
193
+ what: 'lang and xml:lang attribute of html element differ [invalid]'
194
+ },
190
195
  'QW-WCAG-T4': {
191
196
  variable: false,
192
197
  quality: 0,
@@ -209,7 +214,7 @@ exports.issues = {
209
214
  },
210
215
  'QW-WCAG-T23': {
211
216
  variable: false,
212
- quality: 1,
217
+ quality: 0,
213
218
  what: 'No link at the top of the page goes directly to the main content area [invalid]'
214
219
  }
215
220
  }
@@ -2473,11 +2478,12 @@ exports.issues = {
2473
2478
  }
2474
2479
  }
2475
2480
  },
2476
- cssBansRotate: {
2477
- summary: 'CSS bans rotation',
2481
+ cssBansPageRotate: {
2482
+ summary: 'CSS bans page rotation',
2478
2483
  why: 'User must read sideways after rotating a device',
2479
2484
  wcag: '1.3.4',
2480
2485
  weight: 4,
2486
+ max: 1,
2481
2487
  tools: {
2482
2488
  aslint: {
2483
2489
  orientation: {
@@ -2495,6 +2501,21 @@ exports.issues = {
2495
2501
  }
2496
2502
  }
2497
2503
  },
2504
+ cssBansElementRotate: {
2505
+ summary: 'CSS bans element rotation',
2506
+ why: 'User must read sideways after rotating a device',
2507
+ wcag: '1.3.4',
2508
+ weight: 4,
2509
+ tools: {
2510
+ ibm: {
2511
+ element_orientation_unlocked: {
2512
+ variable: false,
2513
+ quality: 1,
2514
+ what: 'Element orientation is restricted by a CSS transform'
2515
+ }
2516
+ }
2517
+ }
2518
+ },
2498
2519
  orientationRisk: {
2499
2520
  summary: 'orientation issues not testable',
2500
2521
  why: 'User may need to read sideways after rotating a device',
@@ -4780,7 +4801,7 @@ exports.issues = {
4780
4801
  }
4781
4802
  },
4782
4803
  ed11y: {
4783
- testPossibleHeading: {
4804
+ textPossibleHeading: {
4784
4805
  variable: false,
4785
4806
  quality: 1,
4786
4807
  what: 'Styled p element may be misused as a heading'