@sap_oss/wdio-qmate-service 2.12.2 → 2.13.1
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/docs/doc.md +140 -7
- package/docs/index.md +1 -1
- package/docs/sections/bestPractices/authentication.md +2 -2
- package/docs/sections/bestPractices/dataHandling.md +1 -1
- package/docs/sections/contact.md +1 -1
- package/docs/sections/features/config.md +1 -1
- package/docs/sections/features/dataHandling.md +2 -2
- package/docs/sections/features/selectors.md +2 -2
- package/docs/sections/gettingStarted/config.md +1 -1
- package/docs/sections/gettingStarted/setup.md +2 -2
- package/docs/sections/support/bugReporting.md +4 -4
- package/docs/sections/support/troubleshooting.md +1 -1
- package/lib/index.js +5 -2
- package/lib/index.js.map +1 -1
- package/lib/reuse/index.js +2 -1
- package/lib/reuse/index.js.map +1 -1
- package/lib/reuse/modules/flp/userLocks.d.ts +3 -3
- package/lib/reuse/modules/flp/userLocks.js +5 -5
- package/lib/reuse/modules/flp/userLocks.js.map +1 -1
- package/lib/reuse/modules/util/Util.d.ts +2 -0
- package/lib/reuse/modules/util/Util.js +2 -0
- package/lib/reuse/modules/util/Util.js.map +1 -1
- package/lib/reuse/modules/util/userSettings.d.ts +27 -0
- package/lib/reuse/modules/util/userSettings.js +181 -0
- package/lib/reuse/modules/util/userSettings.js.map +1 -0
- package/lib/scripts/hooks/onComplete.d.ts +1 -1
- package/lib/scripts/hooks/onComplete.js +14 -1
- package/lib/scripts/hooks/onComplete.js.map +1 -1
- package/lib/scripts/hooks/onPrepare.d.ts +1 -1
- package/lib/scripts/hooks/onPrepare.js +33 -2
- package/lib/scripts/hooks/onPrepare.js.map +1 -1
- package/lib/scripts/stats/createUsage.d.ts +11 -0
- package/lib/scripts/stats/createUsage.js +33 -0
- package/lib/scripts/stats/createUsage.js.map +1 -0
- package/lib/scripts/stats/getConfigurationInformation.d.ts +1 -0
- package/lib/scripts/stats/getConfigurationInformation.js +57 -0
- package/lib/scripts/stats/getConfigurationInformation.js.map +1 -0
- package/lib/scripts/stats/getEnvironment.d.ts +1 -0
- package/lib/scripts/stats/getEnvironment.js +8 -0
- package/lib/scripts/stats/getEnvironment.js.map +1 -0
- package/lib/scripts/stats/getOperatingSystem.d.ts +3 -0
- package/lib/scripts/stats/getOperatingSystem.js +39 -0
- package/lib/scripts/stats/getOperatingSystem.js.map +1 -0
- package/lib/scripts/stats/getRepositoryInformation.d.ts +1 -0
- package/lib/scripts/stats/getRepositoryInformation.js +49 -0
- package/lib/scripts/stats/getRepositoryInformation.js.map +1 -0
- package/lib/scripts/stats/getUserId.d.ts +1 -0
- package/lib/scripts/stats/getUserId.js +75 -0
- package/lib/scripts/stats/getUserId.js.map +1 -0
- package/lib/scripts/stats/getVersion.d.ts +1 -0
- package/lib/scripts/stats/getVersion.js +7 -0
- package/lib/scripts/stats/getVersion.js.map +1 -0
- package/lib/scripts/stats/stats.d.ts +2 -0
- package/lib/scripts/stats/stats.js +41 -0
- package/lib/scripts/stats/stats.js.map +1 -0
- package/lib/scripts/stats/updateUsage.d.ts +3 -0
- package/lib/scripts/stats/updateUsage.js +28 -0
- package/lib/scripts/stats/updateUsage.js.map +1 -0
- package/package.json +9 -4
- package/test/reuse/flp/userLocks/data/data.json +3 -3
- package/test/reuse/flp/userLocks/deleteExistingLockEntries.spec.js +18 -0
- package/test/reuse/flp/userLocks/getNumberOfLockEntries.spec.js +1 -0
- package/test/reuse/util/userSettings/data/data.json +6 -0
- package/test/reuse/util/userSettings/getDateFormatFromUserSettings.spec.js +21 -0
- package/test/reuse/util/userSettings/getLanguageFromUserSettings.spec.js +15 -0
- package/test/reuse/util/userSettings/getTimeFormatFromUserSettings.spec.js +17 -0
- package/test/reuse/util/userSettings/getTimeZoneFromUserSettings.spec.js +16 -0
- package/test/reuse/util/userSettings/setDateFormatFromUserSettings.spec.js +33 -0
- package/test/reuse/util/userSettings/setLanguageFromUserSettings.spec.js +16 -0
- package/test/reuse/util/userSettings/setNumberFormatFromUserSettings.spec.js +16 -0
- package/test/reuse/util/userSettings/setS4UserSettings.spec.js +37 -0
- package/test/reuse/util/userSettings/setTimeFormatFromUserSettings.spec.js +17 -0
- package/test/reuse/util/userSettings/setTimeZoneFromUserSettings.spec.js +16 -0
- package/test/reuse/util/userSettings/test.userSettings.apply.conf.js +16 -0
- package/test/reuse/util/userSettings/test.userSettings.conf.js +24 -0
package/docs/doc.md
CHANGED
|
@@ -6097,8 +6097,15 @@ Global namespace for Fiori Launchpad (FLP) modules.
|
|
|
6097
6097
|
* [.userSettings](#flp.userSettings)
|
|
6098
6098
|
* [.setLanguageFromUserSettings(user, password)](#flp.userSettings.setLanguageFromUserSettings) ⇒ <code>Promise.<void></code>
|
|
6099
6099
|
* [.setDateFormatFromUserSettings(user, password)](#flp.userSettings.setDateFormatFromUserSettings) ⇒ <code>Promise.<void></code>
|
|
6100
|
-
* [.
|
|
6100
|
+
* [.setTimeFormatFromUserSettings(user, password)](#flp.userSettings.setTimeFormatFromUserSettings) ⇒ <code>Promise.<void></code>
|
|
6101
6101
|
* [.setTimeZoneFromUserSettings(user, password)](#flp.userSettings.setTimeZoneFromUserSettings) ⇒ <code>Promise.<void></code>
|
|
6102
|
+
* [.setNumberFormatFromUserSettings(user, password)](#flp.userSettings.setNumberFormatFromUserSettings) ⇒ <code>Promise.<void></code>
|
|
6103
|
+
* [.setS4UserSettings(user, password)](#flp.userSettings.setS4UserSettings) ⇒ <code>Promise.<void></code>
|
|
6104
|
+
* [.getLanguageFromUserSettings(user, password)](#flp.userSettings.getLanguageFromUserSettings) ⇒ <code>Promise.<String></code>
|
|
6105
|
+
* [.getDateFormatFromUserSettings(user, password)](#flp.userSettings.getDateFormatFromUserSettings) ⇒ <code>Promise.<String></code>
|
|
6106
|
+
* [.getTimeFormatFromUserSettings(user, password)](#flp.userSettings.getTimeFormatFromUserSettings) ⇒ <code>Promise.<String></code>
|
|
6107
|
+
* [.getTimeZoneFromUserSettings(user, password)](#flp.userSettings.getTimeZoneFromUserSettings) ⇒ <code>Promise.<String></code>
|
|
6108
|
+
* [.getNumberFormatFromUserSettings(user, password)](#flp.userSettings.getNumberFormatFromUserSettings) ⇒ <code>Promise.<String></code>
|
|
6102
6109
|
|
|
6103
6110
|
<a name="flp.userLocks"></a>
|
|
6104
6111
|
|
|
@@ -6152,8 +6159,15 @@ await flp.userLocks.deleteExistingLockEntries("user", "password");
|
|
|
6152
6159
|
* [.userSettings](#flp.userSettings)
|
|
6153
6160
|
* [.setLanguageFromUserSettings(user, password)](#flp.userSettings.setLanguageFromUserSettings) ⇒ <code>Promise.<void></code>
|
|
6154
6161
|
* [.setDateFormatFromUserSettings(user, password)](#flp.userSettings.setDateFormatFromUserSettings) ⇒ <code>Promise.<void></code>
|
|
6155
|
-
* [.
|
|
6162
|
+
* [.setTimeFormatFromUserSettings(user, password)](#flp.userSettings.setTimeFormatFromUserSettings) ⇒ <code>Promise.<void></code>
|
|
6156
6163
|
* [.setTimeZoneFromUserSettings(user, password)](#flp.userSettings.setTimeZoneFromUserSettings) ⇒ <code>Promise.<void></code>
|
|
6164
|
+
* [.setNumberFormatFromUserSettings(user, password)](#flp.userSettings.setNumberFormatFromUserSettings) ⇒ <code>Promise.<void></code>
|
|
6165
|
+
* [.setS4UserSettings(user, password)](#flp.userSettings.setS4UserSettings) ⇒ <code>Promise.<void></code>
|
|
6166
|
+
* [.getLanguageFromUserSettings(user, password)](#flp.userSettings.getLanguageFromUserSettings) ⇒ <code>Promise.<String></code>
|
|
6167
|
+
* [.getDateFormatFromUserSettings(user, password)](#flp.userSettings.getDateFormatFromUserSettings) ⇒ <code>Promise.<String></code>
|
|
6168
|
+
* [.getTimeFormatFromUserSettings(user, password)](#flp.userSettings.getTimeFormatFromUserSettings) ⇒ <code>Promise.<String></code>
|
|
6169
|
+
* [.getTimeZoneFromUserSettings(user, password)](#flp.userSettings.getTimeZoneFromUserSettings) ⇒ <code>Promise.<String></code>
|
|
6170
|
+
* [.getNumberFormatFromUserSettings(user, password)](#flp.userSettings.getNumberFormatFromUserSettings) ⇒ <code>Promise.<String></code>
|
|
6157
6171
|
|
|
6158
6172
|
<a name="flp.userSettings.setLanguageFromUserSettings"></a>
|
|
6159
6173
|
|
|
@@ -6189,13 +6203,13 @@ Sets the environment variable 'USER_SETTINGS_DATE_FORMAT' date format from user
|
|
|
6189
6203
|
```js
|
|
6190
6204
|
await flp.userSettings.setDateFormatFromUserSettings("user", "password");
|
|
6191
6205
|
```
|
|
6192
|
-
<a name="flp.userSettings.
|
|
6206
|
+
<a name="flp.userSettings.setTimeFormatFromUserSettings"></a>
|
|
6193
6207
|
|
|
6194
|
-
#### userSettings.
|
|
6195
|
-
Sets the environment variable 'USER_SETTINGS_DATE_FORMAT'
|
|
6208
|
+
#### userSettings.setTimeFormatFromUserSettings(user, password) ⇒ <code>Promise.<void></code>
|
|
6209
|
+
Sets the environment variable 'USER_SETTINGS_DATE_FORMAT' time format from user settings.
|
|
6196
6210
|
|
|
6197
6211
|
**Kind**: static method of [<code>userSettings</code>](#flp.userSettings)
|
|
6198
|
-
**Returns**: <code>Promise.<void></code> - A promise that resolves when the
|
|
6212
|
+
**Returns**: <code>Promise.<void></code> - A promise that resolves when the time format has been set.
|
|
6199
6213
|
|
|
6200
6214
|
| Param | Type | Description |
|
|
6201
6215
|
| --- | --- | --- |
|
|
@@ -6204,7 +6218,7 @@ Sets the environment variable 'USER_SETTINGS_DATE_FORMAT' date format from user
|
|
|
6204
6218
|
|
|
6205
6219
|
**Example**
|
|
6206
6220
|
```js
|
|
6207
|
-
await flp.userSettings.
|
|
6221
|
+
await flp.userSettings.setTimeFormatFromUserSettings("user", "password");
|
|
6208
6222
|
```
|
|
6209
6223
|
<a name="flp.userSettings.setTimeZoneFromUserSettings"></a>
|
|
6210
6224
|
|
|
@@ -6223,3 +6237,122 @@ Sets the environment variable 'USER_SETTINGS_TIME_ZONE' time zone from user sett
|
|
|
6223
6237
|
```js
|
|
6224
6238
|
await flp.userSettings.setTimeZoneFromUserSettings("user", "password");
|
|
6225
6239
|
```
|
|
6240
|
+
<a name="flp.userSettings.setNumberFormatFromUserSettings"></a>
|
|
6241
|
+
|
|
6242
|
+
#### userSettings.setNumberFormatFromUserSettings(user, password) ⇒ <code>Promise.<void></code>
|
|
6243
|
+
Sets the environment variable 'USER_SETTINGS_NUMBER_FORMAT' number format from user settings.
|
|
6244
|
+
|
|
6245
|
+
**Kind**: static method of [<code>userSettings</code>](#flp.userSettings)
|
|
6246
|
+
**Returns**: <code>Promise.<void></code> - A promise that resolves when the number format has been set.
|
|
6247
|
+
|
|
6248
|
+
| Param | Type | Description |
|
|
6249
|
+
| --- | --- | --- |
|
|
6250
|
+
| user | <code>String</code> | The username for authentication. |
|
|
6251
|
+
| password | <code>String</code> | The password for authentication. |
|
|
6252
|
+
|
|
6253
|
+
**Example**
|
|
6254
|
+
```js
|
|
6255
|
+
await flp.userSettings.setNumberFormatFromUserSettings("user", "password");
|
|
6256
|
+
```
|
|
6257
|
+
<a name="flp.userSettings.setS4UserSettings"></a>
|
|
6258
|
+
|
|
6259
|
+
#### userSettings.setS4UserSettings(user, password) ⇒ <code>Promise.<void></code>
|
|
6260
|
+
Sets the user settings for S4.
|
|
6261
|
+
|
|
6262
|
+
**Kind**: static method of [<code>userSettings</code>](#flp.userSettings)
|
|
6263
|
+
**Returns**: <code>Promise.<void></code> - A promise that resolves when the user settings have been set.
|
|
6264
|
+
|
|
6265
|
+
| Param | Type | Description |
|
|
6266
|
+
| --- | --- | --- |
|
|
6267
|
+
| user | <code>String</code> | The username for authentication. |
|
|
6268
|
+
| password | <code>String</code> | The password for authentication. |
|
|
6269
|
+
|
|
6270
|
+
**Example**
|
|
6271
|
+
```js
|
|
6272
|
+
await flp.userSettings.setS4UserSettings("user", "password");
|
|
6273
|
+
```
|
|
6274
|
+
<a name="flp.userSettings.getLanguageFromUserSettings"></a>
|
|
6275
|
+
|
|
6276
|
+
#### userSettings.getLanguageFromUserSettings(user, password) ⇒ <code>Promise.<String></code>
|
|
6277
|
+
Gets the language from user settings.
|
|
6278
|
+
|
|
6279
|
+
**Kind**: static method of [<code>userSettings</code>](#flp.userSettings)
|
|
6280
|
+
**Returns**: <code>Promise.<String></code> - The language from user settings.
|
|
6281
|
+
|
|
6282
|
+
| Param | Type | Description |
|
|
6283
|
+
| --- | --- | --- |
|
|
6284
|
+
| user | <code>String</code> | The username for authentication. |
|
|
6285
|
+
| password | <code>String</code> | The password for authentication. |
|
|
6286
|
+
|
|
6287
|
+
**Example**
|
|
6288
|
+
```js
|
|
6289
|
+
const language = await flp.userSettings.getLanguageFromUserSettings("user", "password");
|
|
6290
|
+
```
|
|
6291
|
+
<a name="flp.userSettings.getDateFormatFromUserSettings"></a>
|
|
6292
|
+
|
|
6293
|
+
#### userSettings.getDateFormatFromUserSettings(user, password) ⇒ <code>Promise.<String></code>
|
|
6294
|
+
Gets the date format from user settings.
|
|
6295
|
+
|
|
6296
|
+
**Kind**: static method of [<code>userSettings</code>](#flp.userSettings)
|
|
6297
|
+
**Returns**: <code>Promise.<String></code> - The date format from user settings.
|
|
6298
|
+
|
|
6299
|
+
| Param | Type | Description |
|
|
6300
|
+
| --- | --- | --- |
|
|
6301
|
+
| user | <code>String</code> | The username for authentication. |
|
|
6302
|
+
| password | <code>String</code> | The password for authentication. |
|
|
6303
|
+
|
|
6304
|
+
**Example**
|
|
6305
|
+
```js
|
|
6306
|
+
const dateFormat = await flp.userSettings.getDateFormatFromUserSettings("user", "password");
|
|
6307
|
+
```
|
|
6308
|
+
<a name="flp.userSettings.getTimeFormatFromUserSettings"></a>
|
|
6309
|
+
|
|
6310
|
+
#### userSettings.getTimeFormatFromUserSettings(user, password) ⇒ <code>Promise.<String></code>
|
|
6311
|
+
Gets the time format from user settings.
|
|
6312
|
+
|
|
6313
|
+
**Kind**: static method of [<code>userSettings</code>](#flp.userSettings)
|
|
6314
|
+
**Returns**: <code>Promise.<String></code> - The time format from user settings.
|
|
6315
|
+
|
|
6316
|
+
| Param | Type | Description |
|
|
6317
|
+
| --- | --- | --- |
|
|
6318
|
+
| user | <code>String</code> | The username for authentication. |
|
|
6319
|
+
| password | <code>String</code> | The password for authentication. |
|
|
6320
|
+
|
|
6321
|
+
**Example**
|
|
6322
|
+
```js
|
|
6323
|
+
const timeFormat = await flp.userSettings.getTimeFormatFromUserSettings("user", "password");
|
|
6324
|
+
```
|
|
6325
|
+
<a name="flp.userSettings.getTimeZoneFromUserSettings"></a>
|
|
6326
|
+
|
|
6327
|
+
#### userSettings.getTimeZoneFromUserSettings(user, password) ⇒ <code>Promise.<String></code>
|
|
6328
|
+
Gets the time zone from user settings.
|
|
6329
|
+
|
|
6330
|
+
**Kind**: static method of [<code>userSettings</code>](#flp.userSettings)
|
|
6331
|
+
**Returns**: <code>Promise.<String></code> - The time zone from user settings.
|
|
6332
|
+
|
|
6333
|
+
| Param | Type | Description |
|
|
6334
|
+
| --- | --- | --- |
|
|
6335
|
+
| user | <code>String</code> | The username for authentication. |
|
|
6336
|
+
| password | <code>String</code> | The password for authentication. |
|
|
6337
|
+
|
|
6338
|
+
**Example**
|
|
6339
|
+
```js
|
|
6340
|
+
const timeZone = await flp.userSettings.getTimeZoneFromUserSettings("user", "password");
|
|
6341
|
+
```
|
|
6342
|
+
<a name="flp.userSettings.getNumberFormatFromUserSettings"></a>
|
|
6343
|
+
|
|
6344
|
+
#### userSettings.getNumberFormatFromUserSettings(user, password) ⇒ <code>Promise.<String></code>
|
|
6345
|
+
Gets the number format from user settings.
|
|
6346
|
+
|
|
6347
|
+
**Kind**: static method of [<code>userSettings</code>](#flp.userSettings)
|
|
6348
|
+
**Returns**: <code>Promise.<String></code> - The number format from user settings.
|
|
6349
|
+
|
|
6350
|
+
| Param | Type | Description |
|
|
6351
|
+
| --- | --- | --- |
|
|
6352
|
+
| user | <code>String</code> | The username for authentication. |
|
|
6353
|
+
| password | <code>String</code> | The password for authentication. |
|
|
6354
|
+
|
|
6355
|
+
**Example**
|
|
6356
|
+
```js
|
|
6357
|
+
const numberFormat = await flp.userSettings.getNumberFormatFromUserSettings("user", "password");
|
|
6358
|
+
```
|
package/docs/index.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# **Qmate** Service
|
|
2
|
-
**Qmate Service** is a custom [WebdriverIO](https://webdriver.io/) service for testing web applications and APIs.
|
|
2
|
+
**Qmate Service** is a custom [WebdriverIO](https://webdriver.io/){target="__blank"} service for testing web applications and APIs.
|
|
3
3
|
|
|
4
4
|
!!! note
|
|
5
5
|
The latest release of the Qmate Service is compatible with **WebdriverIO V8**.
|
|
@@ -13,7 +13,7 @@ Which way to choose depends on your needs and preferences. If you are testing a
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
## Login via **Reuse Methods**
|
|
16
|
-
The other way of system authentication, is to use the specific [reuse method](https://sap.github.io/wdio-qmate-service/doc/#ui5.session).
|
|
16
|
+
The other way of system authentication, is to use the specific [reuse method](https://sap.github.io/wdio-qmate-service/doc/#ui5.session){target="__blank"}.
|
|
17
17
|
This is commonly recommended, especially if you are switching between multiple users or systems during the test execution.
|
|
18
18
|
With this approach, you handle the login within a step of your script/s.
|
|
19
19
|
The benefit of this approach is, to have more control over the login as an actual step inside your test process.
|
|
@@ -79,7 +79,7 @@ You can use one of the following methods:
|
|
|
79
79
|
// further test data ...
|
|
80
80
|
}
|
|
81
81
|
```
|
|
82
|
-
- To store your credential securely, you can refer to our main documentation under section [Data
|
|
82
|
+
- To store your credential securely, you can refer to our main documentation under section [Handling Private Data](https://pages.github.tools.sap/sProcurement/qmate/sections/further-concepts/handling-private-data/){target="__blank"}.
|
|
83
83
|
|
|
84
84
|
!!! tip
|
|
85
85
|
You can disable the login centrally without touching your specs by setting the `formType` to `"skip"` inside your configuration file.
|
package/docs/sections/contact.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
In case of questions or issues, please feel free to reach out to us or open an [issue](https://github.com/SAP/wdio-qmate-service/issues) on our [GitHub Page](https://github.com/SAP/wdio-qmate-service).
|
|
1
|
+
In case of questions or issues, please feel free to reach out to us or open an [issue](https://github.com/SAP/wdio-qmate-service/issues){target="__blank"} on our [GitHub Page](https://github.com/SAP/wdio-qmate-service){target="__blank"}.
|
|
2
2
|
|
|
3
3
|
### Benjamin Warth
|
|
4
4
|
:octicons-location-16: Walldorf - Germany
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
## Important WebdriverIO Parameters
|
|
2
2
|
|
|
3
3
|
!!!info "WebdriverIO Parameters"
|
|
4
|
-
For more information about how to setup your config please see the official [documentation](https://webdriver.io/docs/configurationfile/) from WebdriverIO.
|
|
4
|
+
For more information about how to setup your config please see the official [documentation](https://webdriver.io/docs/configurationfile/){target="__blank"} from WebdriverIO.
|
|
5
5
|
|
|
6
6
|
### *baseUrl*
|
|
7
7
|
The `baseUrl` defines the entry point of your script. Here you can define in which system or application your script/s is/are being executed.
|
|
@@ -54,7 +54,7 @@ const references = browser.config.params.import.data["references"];
|
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
!!! tip
|
|
57
|
-
Alternatively, you can load the data with the following [reuse method](https://pages.github.tools.sap/sProcurement/wdio-qmate-service-ts/doc/#util.data.getData):
|
|
57
|
+
Alternatively, you can load the data with the following [reuse method](https://pages.github.tools.sap/sProcurement/wdio-qmate-service-ts/doc/#util.data.getData){target="__blank"}:
|
|
58
58
|
```js
|
|
59
59
|
const data = util.data.getData("createSupplierInvoice");
|
|
60
60
|
```
|
|
@@ -66,7 +66,7 @@ To store any value inside the imported file and make it available for other spec
|
|
|
66
66
|
references.documentNumber = "4500012345";
|
|
67
67
|
```
|
|
68
68
|
!!! warning
|
|
69
|
-
To be able to share data between different scripts, the specs need to be grouped together inside the configuration file. Please find more information under [Configuration - Specs](https://pages.github.tools.sap/sProcurement/qmate-profiles/sections/parameters/main/#specs). Please consider, that the data is only stored during the runtime of the test execution. To store data persistently, please see chapter [Advanced Data Handling](./advancedDataHandling.md).
|
|
69
|
+
To be able to share data between different scripts, the specs need to be grouped together inside the configuration file. Please find more information under [Configuration - Specs](https://pages.github.tools.sap/sProcurement/qmate-profiles/sections/parameters/main/#specs){target="__blank"}. Please consider, that the data is only stored during the runtime of the test execution. To store data persistently, please see chapter [Advanced Data Handling](./advancedDataHandling.md).
|
|
70
70
|
|
|
71
71
|
### Read data
|
|
72
72
|
To read data from the input data or reference file, use the following code **inside a step (it block)**:
|
|
@@ -71,7 +71,7 @@ The following properties apply to all selector types (elementProperties, ancesto
|
|
|
71
71
|
| Property | Description | Sample | Format | Remark |
|
|
72
72
|
| -------- | ----------- | -------| ------ | ------ |
|
|
73
73
|
| ``metadata`` | the control type | ``"metadata": "sap.m.Button"``, ``"metadata": "sap.m.Input"`` | string: ``"property": "value"`` | |
|
|
74
|
-
| ``<ui5Property>`` | UI5 properties including aggregations and associations, as defined in the official [UI5 API](https://sapui5.hana.ondemand.com/#/api) | ``"text": "Amount"``, ``"tooltip": "Amount"``, ``"title": "Currency"``, ``"enabled": true`` | string: ``"property": "value"``, numeric: ``"property": 123``, boolean: ``"property": true`` | |
|
|
74
|
+
| ``<ui5Property>`` | UI5 properties including aggregations and associations, as defined in the official [UI5 API](https://sapui5.hana.ondemand.com/#/api){target="__blank"} | ``"text": "Amount"``, ``"tooltip": "Amount"``, ``"title": "Currency"``, ``"enabled": true`` | string: ``"property": "value"``, numeric: ``"property": 123``, boolean: ``"property": true`` | |
|
|
75
75
|
| ``id`` | the ID of the control | ``"id": "myButtonId"``, ``"id": "my*Id*"`` | string: ``"property": "value"`` | |
|
|
76
76
|
| ``viewName`` | the view name | ``"viewName": "myViewName"``, ``"viewName": "*view*"``| string: ``"property": "value"`` | |
|
|
77
77
|
| ``viewId`` | the view ID | ``"viewId": "*myViewId*"`` | string: ``"property": "value"`` | |
|
|
@@ -137,7 +137,7 @@ const elem = await nonUi5.element.getByCss("input[title='name']");
|
|
|
137
137
|
const elem = await nonUi5.element.getByCssContainingText(".button", "Save");
|
|
138
138
|
```
|
|
139
139
|
!!! info
|
|
140
|
-
|
|
140
|
+
To get a complete overview about all possible methods, please see [nonUi5.element](https://pages.github.tools.sap/sProcurement/wdio-qmate-service-ts/doc/#nonUi5.element){target="__blank"}.
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
### Getting the attributes manually
|
|
@@ -15,4 +15,4 @@ exports.config = {
|
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
!!! info "WebdriverIO Parameters"
|
|
18
|
-
For more information about **how to setup your config**, please see the official [documentation](https://webdriver.io/docs/configurationfile/) from WebdriverIO.
|
|
18
|
+
For more information about **how to setup your config**, please see the official [documentation](https://webdriver.io/docs/configurationfile/){target="__blank"} from WebdriverIO.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## Prerequisites
|
|
2
|
-
- Make sure [Node.js](https://nodejs.org/en/download/) is installed on your computer.
|
|
3
|
-
- To use **Qmate Service**, you will have to install [WebdriverIO](https://webdriver.io/).
|
|
2
|
+
- Make sure [Node.js](https://nodejs.org/en/download/){target="__blank"} is installed on your computer.
|
|
3
|
+
- To use **Qmate Service**, you will have to install [WebdriverIO](https://webdriver.io/){target="__blank"}.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
To install the latest version of the service, simply execute the following command:
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
## Report a Bug
|
|
5
5
|
!!! bug "Important Information"
|
|
6
|
-
**Before** you open an [issue](https://github.com/SAP/wdio-qmate-service/issues), please go through the checklist below.
|
|
6
|
+
**Before** you open an [issue](https://github.com/SAP/wdio-qmate-service/issues){target="__blank"}, please go through the checklist below.
|
|
7
7
|
|
|
8
|
-
- [ ] Have a look at the **[
|
|
8
|
+
- [ ] Have a look at the **[troubleshooting](troubleshooting.md)** and **[known Issues & Limitations](knownIssuesAndLimitations.md)** section first, and check if a solution for your issue already exists.
|
|
9
9
|
- [ ] Be sure that there is **no syntactical** error displayed in the error log.
|
|
10
10
|
- [ ] Provide **links** to pipelines/gh-actions and/or specs/files of your repository.
|
|
11
11
|
- [ ] Provide a **detailed analysis** and add **screenshots** if possible.
|
|
12
12
|
- [ ] Follow the **template** given when opening an issue.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
<a href="https://github.tools.sap/sProcurement/qmate/issues/new/choose" target="_blank" class="md-button">Report a Bug :fontawesome-solid-bug:</a>
|
|
15
15
|
|
|
16
16
|
## Request a Feature
|
|
17
17
|
If you want to request a feature, please make sure that it will add a common value to *Qmate Service*.
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
<a href="https://github.com/SAP/wdio-qmate-service/issues/new?assignees=Templada%2C+DIFSRIP&labels=feature&template=feature_request.md&title=%5BFeatureRequest%5D+-+Title+of+desired+feature" target="__blank" class="md-button md-button--primary">Request a Feature :fontawesome-solid-puzzle-piece:</a>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Troubleshooting
|
|
2
|
-
If you find any bug or issue which is not listed below, please open a new [issue](https://github.com/SAP/wdio-qmate-service/issues) in the qmate repository. Thanks for your support.
|
|
2
|
+
If you find any bug or issue which is not listed below, please open a new [issue](https://github.com/SAP/wdio-qmate-service/issues){target="__blank"} in the qmate repository. Thanks for your support.
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## SessionNotCreatedError
|
package/lib/index.js
CHANGED
|
@@ -24,6 +24,7 @@ module.exports = class CustomWorkerService {
|
|
|
24
24
|
*/
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
constructor(serviceOptions, capabilities, config) {
|
|
27
|
+
this._statsUsageId = null;
|
|
27
28
|
this.config = config;
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
@@ -42,7 +43,9 @@ module.exports = class CustomWorkerService {
|
|
|
42
43
|
`;
|
|
43
44
|
console.log(logo);
|
|
44
45
|
try {
|
|
45
|
-
await (0, onPrepare_1.default)(config, capabilities)
|
|
46
|
+
await (0, onPrepare_1.default)(config, capabilities, (statsUsageId) => {
|
|
47
|
+
this._statsUsageId = statsUsageId;
|
|
48
|
+
});
|
|
46
49
|
}
|
|
47
50
|
catch (e) {
|
|
48
51
|
console.error(`onPrepare hook failed: ${e}`);
|
|
@@ -147,7 +150,7 @@ module.exports = class CustomWorkerService {
|
|
|
147
150
|
*/
|
|
148
151
|
async onComplete(exitCode, config, capabilities, results) {
|
|
149
152
|
try {
|
|
150
|
-
await (0, onComplete_1.default)(exitCode, config, capabilities, results);
|
|
153
|
+
await (0, onComplete_1.default)(exitCode, config, capabilities, results, this._statsUsageId);
|
|
151
154
|
}
|
|
152
155
|
catch (e) {
|
|
153
156
|
util.console.error(`onComplete hook failed: ${e}`);
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,YAAY,CAAC;;;;;AAEb,kFAA+D;AAC/D,oEAAiD;AACjD,0EAAsD;AACtD,4EAAwD;AACxD,kEAA8C;AAC9C,6EAA0E;AAC1E,MAAM,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEtC,MAAM,CAAC,OAAO,GAAG,MAAM,mBAAmB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,YAAY,CAAC;;;;;AAEb,kFAA+D;AAC/D,oEAAiD;AACjD,0EAAsD;AACtD,4EAAwD;AACxD,kEAA8C;AAC9C,6EAA0E;AAC1E,MAAM,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEtC,MAAM,CAAC,OAAO,GAAG,MAAM,mBAAmB;IAKxC;;;;;;;;;OASG;IACH,aAAa;IACb,YAAY,cAAc,EAAE,YAAY,EAAE,MAAM;QAfxC,kBAAa,GAAkB,IAAI,CAAC;QAgB1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,aAAa;IACb,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,YAAY;QAClC,MAAM,IAAI,GAAG;;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AC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1F,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,KAAK,CAAC,MAAc,EAAE,YAAiB,EAAE,KAAU;QACvD,IAAI,CAAC;YACH,MAAM,IAAA,eAAS,EAAC,MAAM,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;QAC/C,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;QAChD,CAAC;IACH,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,UAAU,CAAC,QAAgB,EAAE,MAAW,EAAE,YAAiB,EAAE,OAAY;QAC7E,IAAI,CAAC;YACH,MAAM,IAAA,oBAAc,EAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QACpF,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,2BAA2B,CAAC,EAAE,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;CACF,CAAC"}
|
package/lib/reuse/index.js
CHANGED
|
@@ -46,7 +46,8 @@ class ReuseLibrary {
|
|
|
46
46
|
formatter: Util_1.default.formatter,
|
|
47
47
|
function: Util_1.default.function,
|
|
48
48
|
system: Util_1.default.system,
|
|
49
|
-
component: Util_1.default.component
|
|
49
|
+
component: Util_1.default.component,
|
|
50
|
+
userSettings: Util_1.default.userSettings
|
|
50
51
|
};
|
|
51
52
|
global.util = {
|
|
52
53
|
...util,
|
package/lib/reuse/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reuse/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;AAEb,YAAY;AACZ,4CAAsC;AAEtC,UAAU;AACV,+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C,GAAG,GAAG;YACX,GAAG,GAAG;YACN,GAAG,MAAM,CAAC,GAAG;SACd,CAAC;IACJ,CAAC;CACF;AAED,kBAAe,IAAI,YAAY,EAAE,CAAC"}
|
|
@@ -98,9 +98,9 @@ export declare class UserLocks {
|
|
|
98
98
|
* @description Gets the user info.
|
|
99
99
|
* @returns {Promise<UserInfo>} The user info.
|
|
100
100
|
* @throws {Error} If the user info cannot be retrieved.
|
|
101
|
-
* @example const userInfo = await flp.userLocks.
|
|
102
|
-
* @example console.log(userInfo.Id);
|
|
103
|
-
* @example console.log(userInfo.Name);
|
|
101
|
+
* @example const userInfo = await flp.userLocks._getUserInfo();
|
|
102
|
+
* @example util.console.log(userInfo.Id);
|
|
103
|
+
* @example util.console.log(userInfo.Name);
|
|
104
104
|
*/
|
|
105
105
|
private _getUserInfo;
|
|
106
106
|
/**
|
|
@@ -52,7 +52,7 @@ class UserLocks {
|
|
|
52
52
|
this._requestOptions.SessionId = this._getSessionId(sessions);
|
|
53
53
|
}
|
|
54
54
|
else {
|
|
55
|
-
util.console.
|
|
55
|
+
util.console.info(`User '${resolvedUserName}' with ID '${resolvedUserId}' has no locks.`);
|
|
56
56
|
}
|
|
57
57
|
return lockCount;
|
|
58
58
|
}
|
|
@@ -176,9 +176,9 @@ class UserLocks {
|
|
|
176
176
|
* @description Gets the user info.
|
|
177
177
|
* @returns {Promise<UserInfo>} The user info.
|
|
178
178
|
* @throws {Error} If the user info cannot be retrieved.
|
|
179
|
-
* @example const userInfo = await flp.userLocks.
|
|
180
|
-
* @example console.log(userInfo.Id);
|
|
181
|
-
* @example console.log(userInfo.Name);
|
|
179
|
+
* @example const userInfo = await flp.userLocks._getUserInfo();
|
|
180
|
+
* @example util.console.log(userInfo.Id);
|
|
181
|
+
* @example util.console.log(userInfo.Name);
|
|
182
182
|
*/
|
|
183
183
|
async _getUserInfo() {
|
|
184
184
|
try {
|
|
@@ -232,7 +232,7 @@ class UserLocks {
|
|
|
232
232
|
const response = await service.odata.callFunctionImport(this._srvUserLockInstance, "delete_session", this._requestOptions, true);
|
|
233
233
|
const sapMessage = JSON.parse(response.headers.get("sap-message"));
|
|
234
234
|
if (sapMessage?.message === "Sessions deleted successfully") {
|
|
235
|
-
util.console.
|
|
235
|
+
util.console.info(`Locks for user '${this._requestOptions.UserId}' have been deleted.`);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userLocks.js","sourceRoot":"","sources":["../../../../src/reuse/modules/flp/userLocks.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,8DAAkE;AAOlE;;;GAGG;AACH,MAAa,SAAS;IAAtB;QACE,qBAAqB;QACb,QAAG,GAAG,IAAI,oCAAoB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QACpD,yBAAoB,GAAQ,IAAI,CAAC;QACjC,oBAAe,GAAQ,IAAI,CAAC;QAE5B,oBAAe,GAAG;YACxB,MAAM,EAAE,EAAE;YACV,MAAM,EAAE,EAAE;YACV,SAAS,EAAE,EAAE;SACd,CAAC;IAwOJ,CAAC;IAtOC,mBAAmB;IACnB;;;;;;;;;OASG;IACI,KAAK,CAAC,sBAAsB,CAAC,IAAY,EAAE,QAAgB,EAAE,eAAwB;QAC1F,IAAI,cAAc,GAAG,eAAe,CAAC;QACrC,IAAI,gBAAgB,GAAG,IAAI,CAAC;QAE5B,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,qEAAqE;YACrE,MAAM,IAAI,CAAC,wBAAwB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;YACpD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;YAC3C,cAAc,GAAG,QAAQ,CAAC,EAAE,CAAC;YAC7B,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC;QACnC,CAAC;QAED,mCAAmC;QACnC,MAAM,IAAI,CAAC,0BAA0B,CAAC,IAAI,EAAE,QAAQ,CA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G,2BAA2B,CAAC;QAC1C,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC/B,IAAI,KAAK;YAAE,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACxD,CAAC;IAED;;;;;;;OAOG;IACK,KAAK,CAAC,WAAW;QACvB,OAAO,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,oBAAoB,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;OAOG;IACK,KAAK,CAAC,kBAAkB;QAC9B,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,EAAE,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;QAEjI,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC;QACnE,IAAI,UAAU,EAAE,OAAO,KAAK,+BAA+B,EAAE,CAAC;YAC5D,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,IAAI,CAAC,eAAe,CAAC,MAAM,sBAAsB,CAAC,CAAC;QAC1F,CAAC;IACH,CAAC;CACF;AAlPD,8BAkPC;AAED,kBAAe,IAAI,SAAS,EAAE,CAAC"}
|
|
@@ -6,6 +6,7 @@ import { Formatter } from "./formatter";
|
|
|
6
6
|
import { FunctionModule } from "./function";
|
|
7
7
|
import { System } from "./system";
|
|
8
8
|
import { Component } from "./component";
|
|
9
|
+
import { UserSettings } from "./userSettings";
|
|
9
10
|
interface DataHooksExtended extends Data {
|
|
10
11
|
decrypt: (input: string | Array<string>) => string;
|
|
11
12
|
privateKeyFound: boolean;
|
|
@@ -19,6 +20,7 @@ export declare class Util {
|
|
|
19
20
|
function: FunctionModule;
|
|
20
21
|
system: System;
|
|
21
22
|
component: Component;
|
|
23
|
+
userSettings: UserSettings;
|
|
22
24
|
}
|
|
23
25
|
declare const _default: Util;
|
|
24
26
|
export default _default;
|
|
@@ -12,6 +12,7 @@ const formatter_1 = __importDefault(require("./formatter"));
|
|
|
12
12
|
const function_1 = __importDefault(require("./function"));
|
|
13
13
|
const system_1 = __importDefault(require("./system"));
|
|
14
14
|
const component_1 = __importDefault(require("./component"));
|
|
15
|
+
const userSettings_1 = __importDefault(require("./userSettings"));
|
|
15
16
|
class Util {
|
|
16
17
|
constructor() {
|
|
17
18
|
this.browser = browser_1.default;
|
|
@@ -22,6 +23,7 @@ class Util {
|
|
|
22
23
|
this.function = function_1.default;
|
|
23
24
|
this.system = system_1.default;
|
|
24
25
|
this.component = component_1.default;
|
|
26
|
+
this.userSettings = userSettings_1.default;
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
exports.Util = Util;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Util.js","sourceRoot":"","sources":["../../../../src/reuse/modules/util/Util.ts"],"names":[],"mappings":";;;;;;AAAA,wDAA6C;AAC7C,wDAA6C;AAC7C,kDAAoC;AACpC,kDAAoC;AACpC,4DAAmD;AACnD,0DAA4D;AAC5D,sDAA0C;AAC1C,4DAAmD;
|
|
1
|
+
{"version":3,"file":"Util.js","sourceRoot":"","sources":["../../../../src/reuse/modules/util/Util.ts"],"names":[],"mappings":";;;;;;AAAA,wDAA6C;AAC7C,wDAA6C;AAC7C,kDAAoC;AACpC,kDAAoC;AACpC,4DAAmD;AACnD,0DAA4D;AAC5D,sDAA0C;AAC1C,4DAAmD;AACnD,kEAA4D;AAQ5D,MAAa,IAAI;IAAjB;QACE,YAAO,GAAY,iBAAO,CAAC;QAC3B,YAAO,GAAY,iBAAO,CAAC;QAC3B,SAAI,GAAsB,cAAyB,CAAC;QACpD,SAAI,GAAS,cAAI,CAAC;QAClB,cAAS,GAAc,mBAAS,CAAC;QACjC,aAAQ,GAAmB,kBAAc,CAAC;QAC1C,WAAM,GAAW,gBAAM,CAAC;QACxB,cAAS,GAAc,mBAAS,CAAC;QACjC,iBAAY,GAAiB,sBAAY,CAAC;IAC5C,CAAC;CAAA;AAVD,oBAUC;AAED,kBAAe,IAAI,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @class userSettings
|
|
3
|
+
* @memberof util
|
|
4
|
+
*/
|
|
5
|
+
export declare class UserSettings {
|
|
6
|
+
private vlf;
|
|
7
|
+
private _srvInstance;
|
|
8
|
+
private initS4UserSettingService;
|
|
9
|
+
setLanguageFromUserSettings(user: string, password: string): Promise<void>;
|
|
10
|
+
setDateFormatFromUserSettings(user: string, password: string): Promise<void>;
|
|
11
|
+
setTimeFormatFromUserSettings(user: string, password: string): Promise<void>;
|
|
12
|
+
setTimeZoneFromUserSettings(user: string, password: string): Promise<void>;
|
|
13
|
+
setNumberFormatFromUserSettings(user: string, password: string): Promise<void>;
|
|
14
|
+
setS4UserSettings(user: string, password: string): Promise<void>;
|
|
15
|
+
getLanguageFromUserSettings(user: string, password: string): Promise<string>;
|
|
16
|
+
getDateFormatFromUserSettings(user: string, password: string): Promise<string>;
|
|
17
|
+
getTimeFormatFromUserSettings(user: string, password: string): Promise<string>;
|
|
18
|
+
getTimeZoneFromUserSettings(user: string, password: string): Promise<string>;
|
|
19
|
+
getNumberFormatFromUserSettings(user: string, password: string): Promise<string>;
|
|
20
|
+
private _getTimeZoneResponse;
|
|
21
|
+
private _getTimeFormatResponse;
|
|
22
|
+
private _getDateFormatsResponse;
|
|
23
|
+
private _getLanguageResponse;
|
|
24
|
+
private _getNumberFormatResponse;
|
|
25
|
+
}
|
|
26
|
+
declare const _default: UserSettings;
|
|
27
|
+
export default _default;
|