@surea11y/webdriverio 1.0.2 → 1.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": "@surea11y/webdriverio",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "WebdriverIO binding for surea11y -- scan real, live-rendered pages for accessibility issues.",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -41,7 +41,7 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "@surea11y/binding-base": "^1.1.0",
44
- "@surea11y/core": "^1.1.0"
44
+ "@surea11y/core": "^1.5.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "webdriverio": ">=8.0.0"
@@ -54,7 +54,7 @@
54
54
  "webdriverio": "^9.0.0"
55
55
  },
56
56
  "scripts": {
57
- "test": "node --test tests/*.test.js",
57
+ "test": "node --test --test-concurrency=1 tests/*.test.js",
58
58
  "example": "node examples/basic-scan.js",
59
59
  "example:e2e": "wdio run examples/wdio.conf.js"
60
60
  }
@@ -15,9 +15,26 @@ export type Confidence = 'high' | 'medium' | 'low';
15
15
  export type RuleType = 'automatic' | 'manual';
16
16
  export type Category = 'perceivable' | 'operable' | 'understandable' | 'robust' | null;
17
17
 
18
+ // The reason set is open: core can add a value in a minor release, so the
19
+ // union stays assignable from any string rather than going stale.
20
+ export type LocaleResolutionReason =
21
+ | 'ok'
22
+ | 'primary-subtag'
23
+ | 'dictionary-not-loaded'
24
+ | 'unknown-locale'
25
+ | 'partial-dictionary'
26
+ | (string & {});
27
+
28
+ export interface LocaleResolution {
29
+ requested: string;
30
+ resolved: string;
31
+ reason: LocaleResolutionReason;
32
+ }
33
+
18
34
  export interface EngineInfo {
19
35
  tag: string;
20
36
  schemaVersion: string;
37
+ locale: LocaleResolution;
21
38
  }
22
39
 
23
40
  export interface NormativeMapping {