suitest-js-api 4.0.12 → 4.2.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/README.md CHANGED
@@ -57,6 +57,7 @@ Suitest supports automating end-to-end testing of:
57
57
  - PlayStation 4 / 5 apps
58
58
  - Roku apps
59
59
  - Sky apps
60
+ - Vega OS apps
60
61
  - VIDAA apps
61
62
  - Vizio SmartCast apps
62
63
  - Xfinity / XClass TV / Xumo TV apps
package/index.d.ts CHANGED
@@ -348,6 +348,45 @@ declare namespace suitest {
348
348
  isHtmlBased: boolean;
349
349
  }
350
350
 
351
+ type DeviceId = string;
352
+ type PresetDevice = DeviceId | {
353
+ deviceId: DeviceId;
354
+ };
355
+
356
+ type ConfigId = string;
357
+ type PresetConfig = ConfigId | (ConfigOverride & {
358
+ configId: ConfigId;
359
+ });
360
+
361
+ type PresetsMap = Record<string, {
362
+ device: PresetDevice;
363
+ config: PresetConfig;
364
+ }>;
365
+
366
+ interface SuitestLauncherConfiguration {
367
+ extends?: string;
368
+ tokenId?: string;
369
+ tokenPassword?: string;
370
+ concurrency?: number;
371
+ preset?: string[];
372
+ presets?: PresetsMap;
373
+ deviceId?: string;
374
+ appConfigId?: string;
375
+ inspect?: number | boolean | string;
376
+ inspectBrk?: number | boolean | string;
377
+ logLevel?: ConfigureOptions['logLevel'];
378
+ logDir?: string;
379
+ timestamp?: string;
380
+ configFile?: string;
381
+ overrideConfigFile?: string;
382
+ disallowCrashReports?: boolean;
383
+ defaultTimeout?: number;
384
+ screenshotDir?: string;
385
+ includeChangelist?: boolean;
386
+ recordingOption?: ConfigureOptions['recordingOption'];
387
+ webhookUrl?: string;
388
+ }
389
+
351
390
  interface ConfigureOptions {
352
391
  logLevel: 'silent'|'normal'|'verbose'|'debug'|'silly';
353
392
  recordingOption: 'autostart'|'manualstart'|'none';
@@ -102,6 +102,10 @@ const ELEMENT_PROP = {
102
102
  IS_LONG_CLICKABLE_ANDROID_OTTIUM: 'long-clickable',
103
103
  IS_SCROLLABLE_ANDROID_OTTIUM: 'scrollable',
104
104
  BOUNDS: 'bounds',
105
+ ROLE: 'role',
106
+ DESCRIPTION: 'description',
107
+ ORIENTATION_TEXT: 'orientationText',
108
+ TEST_ID: 'testId',
105
109
  };
106
110
 
107
111
  const VALUES = {
@@ -12,6 +12,11 @@ const LANG = {
12
12
  ARABIC: 'ara',
13
13
  HEBREW: 'heb',
14
14
  PORTUGUESE: 'por',
15
+ NORWEGIAN: 'nor',
16
+ SWEDISH: 'swe',
17
+ FINNISH: 'fin',
18
+ DANISH: 'dan',
19
+ HUNGARIAN: 'hun',
15
20
  };
16
21
 
17
22
  Object.freeze(LANG);
@@ -106,6 +106,10 @@ const ELEMENT_PROP_TYPES = {
106
106
  [ELEMENT_PROP.IS_LONG_CLICKABLE_ANDROID_OTTIUM]: 'boolean',
107
107
  [ELEMENT_PROP.IS_SCROLLABLE_ANDROID_OTTIUM]: 'boolean',
108
108
  [ELEMENT_PROP.BOUNDS]: 'string',
109
+ [ELEMENT_PROP.ROLE]: 'string',
110
+ [ELEMENT_PROP.DESCRIPTION]: 'string',
111
+ [ELEMENT_PROP.ORIENTATION_TEXT]: 'string',
112
+ [ELEMENT_PROP.TEST_ID]: 'string',
109
113
  };
110
114
 
111
115
  Object.freeze(ELEMENT_PROP_TYPES);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suitest-js-api",
3
- "version": "4.0.12",
3
+ "version": "4.2.0",
4
4
  "main": "index.js",
5
5
  "repository": "github:SuitestAutomation/suitest-js-api",
6
6
  "author": "Suitest <hello@suite.st>",
@@ -19,6 +19,7 @@
19
19
  "Apple TV testing",
20
20
  "Roku testing",
21
21
  "Sky testing",
22
+ "Vega OS testing",
22
23
  "VIDAA testing",
23
24
  "Vizio SmartCast testing",
24
25
  "Xfinity testing",
@@ -85,7 +86,6 @@
85
86
  "typings": "index.d.ts",
86
87
  "devDependencies": {
87
88
  "eslint": "^7.1.0",
88
- "express": "^4.17.1",
89
89
  "husky": "^4.2.5",
90
90
  "mocha": "^10.2.0",
91
91
  "mock-fs": "^5.1.0",
@@ -99,7 +99,7 @@
99
99
  },
100
100
  "dependencies": {
101
101
  "@suitest/smst-to-text": "^4.28.5",
102
- "@suitest/translate": "^4.29.0",
102
+ "@suitest/translate": "^4.31.0",
103
103
  "@types/node": "^14.0.10",
104
104
  "ajv": "^6.12.2",
105
105
  "ansi-regex": "^5.0.0",
@@ -108,7 +108,7 @@
108
108
  "compare-versions": "^3.6.0",
109
109
  "escape-string-regexp": "4.0.0",
110
110
  "ini": "^2.0.0",
111
- "js-yaml": "^4.1.0",
111
+ "js-yaml": "^4.1.1",
112
112
  "json5": "^2.2.3",
113
113
  "keypress": "^0.2.1",
114
114
  "moment": "^2.29.4",
@@ -100,6 +100,10 @@ export type ElementPropTypes = {
100
100
  IS_LONG_CLICKABLE_ANDROID_OTTIUM: 'long-clickable',
101
101
  IS_SCROLLABLE_ANDROID_OTTIUM: 'scrollable',
102
102
  BOUNDS: 'bounds',
103
+ ROLE: 'role',
104
+ DESCRIPTION: 'description',
105
+ ORIENTATION_TEXT: 'orientationText',
106
+ TEST_ID: 'testId',
103
107
  };
104
108
 
105
109
  // Needed for keep backward compatibility
@@ -12,4 +12,9 @@ export type Lang = {
12
12
  ARABIC: 'ara',
13
13
  HEBREW: 'heb',
14
14
  PORTUGUESE: 'por',
15
+ NORWEGIAN: 'nor',
16
+ SWEDISH: 'swe',
17
+ FINNISH: 'fin',
18
+ DANISH: 'dan',
19
+ HUNGARIAN: 'hun',
15
20
  };