testilo 39.0.2 → 39.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testilo",
3
- "version": "39.0.2",
3
+ "version": "39.1.0",
4
4
  "description": "Prepares Testaro jobs and processes Testaro reports",
5
5
  "main": "call.js",
6
6
  "scripts": {
@@ -1146,6 +1146,13 @@ exports.issues = {
1146
1146
  what: 'Language specified in the lang attribute of the element does not appear to be well-formed'
1147
1147
  }
1148
1148
  },
1149
+ ibm: {
1150
+ element_lang_valid: {
1151
+ variable: false,
1152
+ quality: 1,
1153
+ what: 'Element lang attribute does not include a valid primary language'
1154
+ }
1155
+ },
1149
1156
  nuVal: {
1150
1157
  'When the attribute xml:lang in no namespace is specified, the element must also have the attribute lang present with the same value.': {
1151
1158
  variable: false,
@@ -1240,6 +1247,13 @@ exports.issues = {
1240
1247
  what: 'object element contains no text alternative'
1241
1248
  }
1242
1249
  },
1250
+ ibm: {
1251
+ object_text_exists: {
1252
+ variable: false,
1253
+ quality: 1,
1254
+ what: 'object element has no text alternative'
1255
+ }
1256
+ },
1243
1257
  qualWeb: {
1244
1258
  'QW-ACT-R42': {
1245
1259
  variable: false,
@@ -8683,7 +8697,7 @@ exports.issues = {
8683
8697
  }
8684
8698
  },
8685
8699
  encodingMisdeclared: {
8686
- summary: 'text not Unicode-compliant',
8700
+ summary: 'text encoding wrongly declared',
8687
8701
  why: 'User cannot read all of the text',
8688
8702
  wcag: '3.1.3',
8689
8703
  weight: 4,
@@ -324,7 +324,7 @@ exports.scorer = report => {
324
324
  (total, current, index) => total + severityWeights[index] * current, 0
325
325
  );
326
326
  // Get the minimum count of violating elements.
327
- const actRuleIDs = testActs.map(
327
+ const actRuleIDs = testActs.filter(act => act.standardResult).map(
328
328
  act => act.standardResult.instances.map(instance => `${act.which}:${instance.ruleID}`)
329
329
  );
330
330
  const allRuleIDs = actRuleIDs.flat();
package/script.js CHANGED
@@ -224,7 +224,7 @@ exports.script = (id, what, deviceID, options = {}) => {
224
224
  }
225
225
  else if (toolID === 'ibm') {
226
226
  toolAct.withItems = true;
227
- toolAct.withNewContent = false;
227
+ toolAct.withNewContent = true;
228
228
  }
229
229
  else if (toolID === 'qualWeb') {
230
230
  toolAct.withNewContent = false;