@sap_oss/wdio-qmate-service 3.8.0 → 3.10.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/.eslintrc.yml +4 -4
- package/.prettierrc.json +7 -7
- package/CLAUDE.md +10 -10
- package/CONTRIBUTING.md +1 -1
- package/README.md +6 -2
- package/lib/reuse/authenticator/authConfig.js +3 -3
- package/lib/reuse/authenticator/authConfig.js.map +1 -1
- package/lib/reuse/authenticator/authHandler.js +0 -2
- package/lib/reuse/authenticator/authHandler.js.map +1 -1
- package/lib/reuse/authenticator/basicUrlAuthenticator.js.map +1 -1
- package/lib/reuse/authenticator/customAuthenticator.js +1 -3
- package/lib/reuse/authenticator/customAuthenticator.js.map +1 -1
- package/lib/reuse/authenticator/formAuthenticator.js +1 -3
- package/lib/reuse/authenticator/formAuthenticator.js.map +1 -1
- package/lib/reuse/helper/clientsideUI5scripts.js +15 -19
- package/lib/reuse/helper/clientsideUI5scripts.js.map +1 -1
- package/lib/reuse/helper/dateTimeFormatParser.js +8 -2
- package/lib/reuse/helper/dateTimeFormatParser.js.map +1 -1
- package/lib/reuse/helper/elementHighlight.js +2 -6
- package/lib/reuse/helper/elementHighlight.js.map +1 -1
- package/lib/reuse/helper/errorHandler.js +2 -9
- package/lib/reuse/helper/errorHandler.js.map +1 -1
- package/lib/reuse/helper/jsDocGen.js +1 -1
- package/lib/reuse/helper/jsDocGen.js.map +1 -1
- package/lib/reuse/helper/tableHelper.js +3 -0
- package/lib/reuse/helper/tableHelper.js.map +1 -1
- package/lib/reuse/helper/timeHelper.js +3 -7
- package/lib/reuse/helper/timeHelper.js.map +1 -1
- package/lib/reuse/helper/verboseLogger.js.map +1 -1
- package/lib/reuse/index.js +0 -17
- package/lib/reuse/index.js.map +1 -1
- package/lib/reuse/modules/common/constants/date.constants.js +0 -2
- package/lib/reuse/modules/common/constants/date.constants.js.map +1 -1
- package/lib/reuse/modules/common/navigation.js.map +1 -1
- package/lib/reuse/modules/flp/userSettings.d.ts +2 -0
- package/lib/reuse/modules/flp/userSettings.js +6 -1
- package/lib/reuse/modules/flp/userSettings.js.map +1 -1
- package/lib/reuse/modules/nonUi5/NonUi5.js.map +1 -1
- package/lib/reuse/modules/nonUi5/session.js.map +1 -1
- package/lib/reuse/modules/nonUi5/userInteraction.js.map +1 -1
- package/lib/reuse/modules/ui5/assertion.d.ts +1 -0
- package/lib/reuse/modules/ui5/assertion.js +11 -4
- package/lib/reuse/modules/ui5/assertion.js.map +1 -1
- package/lib/reuse/modules/ui5/control.js.map +1 -1
- package/lib/reuse/modules/ui5/date.js +15 -15
- package/lib/reuse/modules/ui5/date.js.map +1 -1
- package/lib/reuse/modules/ui5/element.d.ts +2 -2
- package/lib/reuse/modules/ui5/element.js +7 -4
- package/lib/reuse/modules/ui5/element.js.map +1 -1
- package/lib/reuse/modules/ui5/session.d.ts +4 -2
- package/lib/reuse/modules/ui5/session.js +32 -4
- package/lib/reuse/modules/ui5/session.js.map +1 -1
- package/lib/reuse/modules/ui5/table.js +25 -9
- package/lib/reuse/modules/ui5/table.js.map +1 -1
- package/lib/reuse/modules/ui5/userInteraction.d.ts +1 -1
- package/lib/reuse/modules/ui5/userInteraction.js +46 -59
- package/lib/reuse/modules/ui5/userInteraction.js.map +1 -1
- package/lib/reuse/modules/util/constants/formatter.constants.js +0 -2
- package/lib/reuse/modules/util/constants/formatter.constants.js.map +1 -1
- package/lib/reuse/modules/util/file.d.ts +7 -4
- package/lib/reuse/modules/util/file.js +34 -7
- package/lib/reuse/modules/util/file.js.map +1 -1
- package/lib/reuse/modules/util/formatter.js +7 -3
- package/lib/reuse/modules/util/formatter.js.map +1 -1
- package/lib/reuse/modules/util/function.js +1 -5
- package/lib/reuse/modules/util/function.js.map +1 -1
- package/lib/scripts/clientsideUI5scripts.js +22 -29
- package/lib/scripts/clientsideUI5scripts.js.map +1 -1
- package/lib/scripts/dataExchange/dataExchange.js.map +1 -1
- package/lib/scripts/dataExchange/dataExchangeUtil.js +3 -13
- package/lib/scripts/dataExchange/dataExchangeUtil.js.map +1 -1
- package/lib/scripts/hooks/before.js +0 -1
- package/lib/scripts/hooks/before.js.map +1 -1
- package/lib/scripts/hooks/onComplete.js +2 -3
- package/lib/scripts/hooks/onComplete.js.map +1 -1
- package/lib/scripts/hooks/utils/addLocatorCommands.js.map +1 -1
- package/lib/scripts/hooks/utils/browserLog.js.map +1 -1
- package/lib/scripts/hooks/utils/cycle.js +3 -9
- package/lib/scripts/hooks/utils/cycle.js.map +1 -1
- package/lib/scripts/hooks/utils/dataExchangeCommands.js +1 -2
- package/lib/scripts/hooks/utils/dataExchangeCommands.js.map +1 -1
- package/lib/scripts/hooks/utils/isBrowserDefined.js.map +1 -1
- package/lib/scripts/locators/qmateLocator.js +30 -53
- package/lib/scripts/locators/qmateLocator.js.map +1 -1
- package/lib/scripts/locators/qmateLocatorSrc/comparators/DomPropertiesComparator.js +2 -2
- package/lib/scripts/locators/qmateLocatorSrc/comparators/DomPropertiesComparator.js.map +1 -1
- package/lib/scripts/locators/qmateLocatorSrc/constants/IgnoredMetadataList.d.ts +1 -0
- package/lib/scripts/locators/qmateLocatorSrc/constants/IgnoredMetadataList.js +10 -0
- package/lib/scripts/locators/qmateLocatorSrc/constants/IgnoredMetadataList.js.map +1 -0
- package/lib/scripts/locators/qmateLocatorSrc/filters/ElementFilter.d.ts +2 -3
- package/lib/scripts/locators/qmateLocatorSrc/filters/ElementFilter.js +18 -22
- package/lib/scripts/locators/qmateLocatorSrc/filters/ElementFilter.js.map +1 -1
- package/lib/scripts/locators/qmateLocatorSrc/utils/UI5ControlHandler.js +3 -2
- package/lib/scripts/locators/qmateLocatorSrc/utils/UI5ControlHandler.js.map +1 -1
- package/lib/scripts/locators/uiveri5Locator.js +1 -1
- package/lib/scripts/locators/uiveri5Locator.js.map +1 -1
- package/lib/scripts/stats/createUsage.js +1 -1
- package/lib/scripts/stats/createUsage.js.map +1 -1
- package/lib/scripts/stats/getOperatingSystem.js.map +1 -1
- package/lib/scripts/stats/getUserId.js +1 -1
- package/lib/scripts/stats/stats.js +9 -9
- package/lib/scripts/stats/stats.js.map +1 -1
- package/lib/scripts/stats/updateUsage.js +1 -1
- package/mkdocs.yml +18 -18
- package/package.json +18 -26
- package/packages/qcrypt/dist/classes/Decrypter.d.ts +38 -38
- package/packages/qcrypt/dist/classes/Decrypter.js +150 -153
- package/packages/qcrypt/dist/classes/Encrypter.d.ts +46 -46
- package/packages/qcrypt/dist/classes/Encrypter.js +144 -144
- package/packages/qcrypt/dist/classes/KeyGenerator.d.ts +16 -16
- package/packages/qcrypt/dist/classes/KeyGenerator.js +45 -43
- package/packages/qcrypt/dist/classes/helper/ErrorHandler.d.ts +8 -8
- package/packages/qcrypt/dist/classes/helper/ErrorHandler.js +48 -50
- package/packages/qcrypt/dist/classes/helper/Util.d.ts +67 -67
- package/packages/qcrypt/dist/classes/helper/Util.js +113 -114
- package/packages/qcrypt/dist/index.js +5 -3
- package/packages/qcrypt/dist/types/common.d.ts +13 -13
- package/reuseApi.json +8 -468
- package/test/.eslintrc.yml +1 -1
- package/test/authenticator/staticLogin/configCustom.js +1 -3
- package/test/authenticator/staticLogin/configCustomViaConfig.js +1 -3
- package/test/authenticator/staticLogin/configFiori.js +1 -3
- package/test/authenticator/staticLogin/configPlain.js +1 -4
- package/test/authenticator/staticLogin/configSapCloud.js +1 -3
- package/test/authenticator/staticLogin/html/custom.html +4 -4
- package/test/authenticator/staticLogin/html/fiori.html +4 -4
- package/test/authenticator/staticLogin/html/home.html +2 -2
- package/test/authenticator/staticLogin/html/sapCloud.html +4 -4
- package/test/authenticator/staticLogin/specs/custom.spec.js +1 -5
- package/test/authenticator/staticLogin/specs/plain.spec.js +0 -5
- package/test/authenticator/staticLogin/staticServerConfig.js +13 -10
- package/test/authenticator/systemLogin/configCustom.js +3 -5
- package/test/authenticator/systemLogin/configFiori.js +2 -5
- package/test/authenticator/systemLogin/configPlain.js +3 -5
- package/test/authenticator/systemLogin/configSapCloud.js +3 -5
- package/test/authenticator/systemLogin/specs/custom.spec.js +3 -5
- package/test/authenticator/systemLogin/specs/fiori.spec.js +3 -4
- package/test/authenticator/systemLogin/specs/plain.spec.js +3 -5
- package/test/authenticator/systemLogin/specs/sapCloud.spec.js +3 -5
- package/test/core/dataExchange/config.export.js +11 -18
- package/test/core/dataExchange/config.import.js +7 -12
- package/test/core/dataExchange/config.js +9 -11
- package/test/core/dataExchange/config.parallel.group.js +53 -61
- package/test/core/dataExchange/config.parallel.js +53 -58
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/purchase-orders/Limit-Purchase-Order.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/purchase-orders/ServicePurchaseOrder.2Items.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/purchaseRequisition_HI.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/subfolder/LimitPurchaseOrder.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/subfolder/PurchaseOrderItems.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/subfolder/PurchaseOrderWithScheduline.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/subfolder/ServiceAndMaterialPurchaseOrder.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/subfolder/ServicePurchaseOrder.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/subfolder/ServicePurchaseOrder2Items.json +1 -1
- package/test/core/dataExchange/data/my/folder/data/qs9/data.json +1 -1
- package/test/core/dataExchange/data/my/folder/data/qs9/purchaseRequisition.json +1 -1
- package/test/core/dataExchange/data/my/folder/data/qs9/supplierInvoice.json +1 -1
- package/test/core/dataExchange/data/my/folder/data/qs9/webUser.json +1 -1
- package/test/core/dataExchange/data/ui/moreDataFolder/anotherUser.json +1 -1
- package/test/core/dataExchange/data/ui/user.json +1 -1
- package/test/core/dataExchange/data/ui/webUser.json +1 -1
- package/test/core/dataExchange/specs/export.fast.spec.js +11 -16
- package/test/core/dataExchange/specs/export.slow.spec.js +13 -18
- package/test/core/dataExchange/specs/export.spec.js +13 -23
- package/test/core/dataExchange/specs/import.spec.js +6 -23
- package/test/core/dataExchange/specs/importExport.spec.js +47 -62
- package/test/core/dataExchange/utils.js +11 -15
- package/test/core/functional/README.md +8 -5
- package/test/core/functional/chaining/chaining.test.js +46 -49
- package/test/core/functional/chaining/test.conf.js +1 -4
- package/test/core/functional/locators/ancestorProperties.test.js +49 -59
- package/test/core/functional/locators/childProperties.test.js +30 -36
- package/test/core/functional/locators/descendantProperties.test.js +50 -57
- package/test/core/functional/locators/domProperties.test.js +25 -29
- package/test/core/functional/locators/elementProperties.test.js +30 -29
- package/test/core/functional/locators/mixedProperties.test.js +317 -108
- package/test/core/functional/locators/parentProperties.test.js +18 -22
- package/test/core/functional/locators/siblingProperties.test.js +66 -75
- package/test/core/functional/locators/utils.js +1 -1
- package/test/core/functional/nativeBrowser/runInBrowser.test.js +84 -58
- package/test/core/functional/nativeBrowser/test.conf.js +1 -3
- package/test/core/functional/nonUi5/basic.test.js +3 -3
- package/test/core/functional/nonUi5/getWithDomElement.test.js +0 -2
- package/test/core/functional/nonUi5/getWithDomElements.test.js +2 -3
- package/test/core/functional/nonUi5/test.conf.js +1 -4
- package/test/core/functional/ui5Properties/countries.json +1 -1
- package/test/core/functional/ui5Properties/getAggregations.test.js +19 -27
- package/test/core/functional/ui5Properties/getAssociations.test.js +3 -3
- package/test/core/functional/ui5Properties/getBindingInfos.test.js +17 -17
- package/test/core/functional/ui5Properties/getProperties.test.js +25 -33
- package/test/core/functional/ui5Properties/test.conf.js +1 -6
- package/test/core/functional/uiveri5/sample.test.js +1 -2
- package/test/core/functional/uiveri5/test.conf.js +1 -3
- package/test/core/testIntegration/config.js +1 -1
- package/test/core/testIntegration/configMultiCombo.js +1 -1
- package/test/core/testIntegration/configTable.js +1 -1
- package/test/core/testIntegration/filters1.spec.js +908 -870
- package/test/core/testIntegration/multicombobox.spec.js +64 -60
- package/test/core/testIntegration/table.spec.js +35 -33
- package/test/helper/configurations/base.conf.js +6 -3
- package/test/helper/configurations/chrome.headless.conf.js +1 -1
- package/test/helper/sleeper.js +1 -1
- package/test/reuse/common/assertion/expectDefined.spec.js +1 -2
- package/test/reuse/common/assertion/expectEqual.spec.js +36 -26
- package/test/reuse/common/assertion/expectFalse.spec.js +1 -1
- package/test/reuse/common/assertion/expectTrue.spec.js +1 -1
- package/test/reuse/common/assertion/expectUndefined.spec.js +1 -2
- package/test/reuse/common/assertion/expectUnequal.spec.js +24 -13
- package/test/reuse/common/assertion/expectUrlToBe.spec.js +3 -6
- package/test/reuse/common/assertion/test.assertion.conf.js +39 -35
- package/test/reuse/common/date/calculate.spec.js +36 -36
- package/test/reuse/common/date/calculateWithTime.spec.js +88 -88
- package/test/reuse/common/date/getNextMonth.spec.js +3 -3
- package/test/reuse/common/date/getNextYear.spec.js +2 -2
- package/test/reuse/common/date/getPreviousMonth.spec.js +2 -2
- package/test/reuse/common/date/getPreviousYear.spec.js +2 -2
- package/test/reuse/common/date/getSpecific.spec.js +2 -2
- package/test/reuse/common/date/getToday.spec.js +2 -2
- package/test/reuse/common/date/getTomorrow.spec.js +2 -2
- package/test/reuse/common/date/test.date.conf.js +1 -1
- package/test/reuse/common/navigation/navigateToUrlAndRetry.spec.js +2 -6
- package/test/reuse/common/navigation/test.navigation.conf.js +14 -12
- package/test/reuse/common/userInteraction/clearAndFillActive.spec.js +1 -3
- package/test/reuse/common/userInteraction/clearAndFillActiveAndRetry.spec.js +2 -6
- package/test/reuse/common/userInteraction/fillActive.spec.js +2 -6
- package/test/reuse/common/userInteraction/fillActiveAndRetry.spec.js +2 -6
- package/test/reuse/common/userInteraction/pressKey.spec.js +6 -30
- package/test/reuse/common/userInteraction/test.userInteraction.conf.js +36 -38
- package/test/reuse/flp/userLocks/data/data.json +1 -1
- package/test/reuse/flp/userLocks/deleteExistingLockEntries.spec.js +0 -3
- package/test/reuse/flp/userLocks/getNumberOfLockEntries.spec.js +0 -2
- package/test/reuse/flp/userLocks/test.userLocks.conf.js +1 -4
- package/test/reuse/flp/userSettings/data/data.json +1 -1
- package/test/reuse/flp/userSettings/getDateFormatFromUserSettings.spec.js +0 -2
- package/test/reuse/flp/userSettings/getLanguageFromUserSettings.spec.js +0 -1
- package/test/reuse/flp/userSettings/getTimeFormatFromUserSettings.spec.js +0 -3
- package/test/reuse/flp/userSettings/getTimeZoneFromUserSettings.spec.js +0 -2
- package/test/reuse/flp/userSettings/setDateFormatFromUserSettings.spec.js +0 -2
- package/test/reuse/flp/userSettings/setLanguageFromUserSettings.spec.js +0 -2
- package/test/reuse/flp/userSettings/setNumberFormatFromUserSettings.spec.js +1 -3
- package/test/reuse/flp/userSettings/setS4UserSettings.spec.js +0 -2
- package/test/reuse/flp/userSettings/setTimeFormatFromUserSettings.spec.js +0 -3
- package/test/reuse/flp/userSettings/setTimeZoneFromUserSettings.spec.js +0 -2
- package/test/reuse/flp/userSettings/test.userSettings.apply.conf.js +1 -3
- package/test/reuse/helper/elementHighlight/test.elementHighlight.conf.js +2 -4
- package/test/reuse/nonUi5/assertion/expectAttributeToBe.spec.js +4 -11
- package/test/reuse/nonUi5/assertion/expectAttributeToContain.spec.js +3 -10
- package/test/reuse/nonUi5/assertion/expectCssPropertyValueToBe.spec.js +2 -4
- package/test/reuse/nonUi5/assertion/expectToBeNotVisible.spec.js +3 -5
- package/test/reuse/nonUi5/assertion/expectToBeVisible.spec.js +2 -2
- package/test/reuse/nonUi5/assertion/test.assertion.conf.js +39 -35
- package/test/reuse/nonUi5/assertion/test.assertion.sauceLabs.conf.js +40 -42
- package/test/reuse/nonUi5/element/getAttributeValue.spec.js +3 -9
- package/test/reuse/nonUi5/element/getByChild.spec.js +4 -8
- package/test/reuse/nonUi5/element/getByClass.spec.js +2 -7
- package/test/reuse/nonUi5/element/getByCss.spec.js +6 -11
- package/test/reuse/nonUi5/element/getByCssContainingText.spec.js +2 -6
- package/test/reuse/nonUi5/element/getById.spec.js +3 -10
- package/test/reuse/nonUi5/element/getByName.spec.js +2 -5
- package/test/reuse/nonUi5/element/getByParent.spec.js +5 -15
- package/test/reuse/nonUi5/element/getByXPath.spec.js +2 -5
- package/test/reuse/nonUi5/element/getCssPropertyValue.spec.js +1 -4
- package/test/reuse/nonUi5/element/getValue.spec.js +3 -6
- package/test/reuse/nonUi5/element/highlight.spec.js +0 -2
- package/test/reuse/nonUi5/element/isPresent.spec.js +1 -3
- package/test/reuse/nonUi5/element/isPresentByCss.spec.js +1 -1
- package/test/reuse/nonUi5/element/isPresentByXPath.spec.js +0 -1
- package/test/reuse/nonUi5/element/setInnerHTML.spec.js +2 -5
- package/test/reuse/nonUi5/element/test.element.conf.js +18 -15
- package/test/reuse/nonUi5/element/waitForAll.spec.js +2 -5
- package/test/reuse/nonUi5/element/waitToBeClickable.spec.js +2 -5
- package/test/reuse/nonUi5/element/waitToBePresent.spec.js +2 -3
- package/test/reuse/nonUi5/element/waitToBeVisible.spec.js +3 -8
- package/test/reuse/nonUi5/navigation/test.navigation.conf.js +1 -3
- package/test/reuse/nonUi5/userInteraction/checkAttributeAndValue.spec.js +13 -17
- package/test/reuse/nonUi5/userInteraction/clear.spec.js +3 -5
- package/test/reuse/nonUi5/userInteraction/clearAndFill.spec.js +1 -1
- package/test/reuse/nonUi5/userInteraction/clearAndFillAndRetry.spec.js +1 -3
- package/test/reuse/nonUi5/userInteraction/clearAndRetry.spec.js +1 -3
- package/test/reuse/nonUi5/userInteraction/click.spec.js +1 -3
- package/test/reuse/nonUi5/userInteraction/clickAndRetry.spec.js +2 -6
- package/test/reuse/nonUi5/userInteraction/clickElementInSvg.spec.js +1 -3
- package/test/reuse/nonUi5/userInteraction/doubleClick.spec.js +1 -1
- package/test/reuse/nonUi5/userInteraction/dragAndDrop.spec.js +2 -2
- package/test/reuse/nonUi5/userInteraction/fillAndRetry.spec.js +1 -3
- package/test/reuse/nonUi5/userInteraction/selectAll.spec.js +2 -2
- package/test/reuse/nonUi5/userInteraction/test.userInteraction.conf.js +1 -1
- package/test/reuse/nonUi5/userInteraction/test.userInteraction.sauceLabs.conf.js +43 -39
- package/test/reuse/service/odata/test.odata.conf.js +4 -7
- package/test/reuse/service/rest/db.json +1 -1
- package/test/reuse/service/rest/delete.spec.js +3 -10
- package/test/reuse/service/rest/get.spec.js +2 -9
- package/test/reuse/service/rest/init.spec.js +0 -2
- package/test/reuse/service/rest/patch.spec.js +5 -12
- package/test/reuse/service/rest/post.spec.js +6 -17
- package/test/reuse/service/rest/put.spec.js +10 -17
- package/test/reuse/service/rest/rest-server.js +5 -5
- package/test/reuse/service/rest/test.rest.conf.js +4 -11
- package/test/reuse/ui5/assertion/expectAttributeToBe.spec.js +77 -42
- package/test/reuse/ui5/assertion/expectAttributeToContain.spec.js +48 -18
- package/test/reuse/ui5/assertion/expectBindingContextPathToBe.spec.js +41 -42
- package/test/reuse/ui5/assertion/expectBindingPathToBe.spec.js +58 -64
- package/test/reuse/ui5/assertion/expectCssPropertyValueToBe.spec.js +1 -2
- package/test/reuse/ui5/assertion/expectMessageToastTextToBe.spec.js +7 -11
- package/test/reuse/ui5/assertion/expectTextToBe.spec.js +13 -13
- package/test/reuse/ui5/assertion/expectToBeEnabled.spec.js +2 -6
- package/test/reuse/ui5/assertion/expectToBeNotEnabled.spec.js +17 -20
- package/test/reuse/ui5/assertion/expectToBeNotVisible.spec.js +13 -14
- package/test/reuse/ui5/assertion/expectToBeVisible.spec.js +15 -20
- package/test/reuse/ui5/assertion/expectToBeVisibleInViewport.spec.js +11 -15
- package/test/reuse/ui5/assertion/expectValidationError.spec.js +14 -16
- package/test/reuse/ui5/assertion/expectValidationSuccess.spec.js +14 -16
- package/test/reuse/ui5/assertion/expectValueToBe.spec.js +14 -17
- package/test/reuse/ui5/assertion/expectValueToBeDefined.spec.js +6 -9
- package/test/reuse/ui5/assertion/test.assertion.sauceLab.conf.js +3 -3
- package/test/reuse/ui5/confirmationDialog/clickButton.spec.js +24 -28
- package/test/reuse/ui5/confirmationDialog/clickCancel.spec.js +24 -25
- package/test/reuse/ui5/confirmationDialog/clickCreate.spec.js +1 -1
- package/test/reuse/ui5/confirmationDialog/clickDelete.spec.js +25 -28
- package/test/reuse/ui5/confirmationDialog/clickNo.spec.js +21 -29
- package/test/reuse/ui5/confirmationDialog/clickOk.spec.js +19 -22
- package/test/reuse/ui5/confirmationDialog/clickRevokeApproval.spec.js +1 -1
- package/test/reuse/ui5/confirmationDialog/clickYes.spec.js +17 -25
- package/test/reuse/ui5/confirmationDialog/test.confirmationDialog.conf.js +1 -1
- package/test/reuse/ui5/confirmationDialog/test.confirmationDialog.sauceLab.conf.js +4 -4
- package/test/reuse/ui5/control/execute.spec.js +37 -25
- package/test/reuse/ui5/control/focus.spec.js +29 -29
- package/test/reuse/ui5/control/getAggregationProperty.spec.js +25 -21
- package/test/reuse/ui5/control/getAssociationProperty.spec.js +13 -15
- package/test/reuse/ui5/control/getBindingContextPathProperty.spec.js +12 -10
- package/test/reuse/ui5/control/getProperty.spec.js +12 -10
- package/test/reuse/ui5/control/getPropertyBinding.spec.js +12 -10
- package/test/reuse/ui5/control/test.control.sauceLab.conf.js +3 -4
- package/test/reuse/ui5/date/fillRange.spec.js +7 -10
- package/test/reuse/ui5/date/pick.spec.js +31 -34
- package/test/reuse/ui5/date/pickRange.spec.js +31 -25
- package/test/reuse/ui5/date/pickWithTime.spec.js +8 -10
- package/test/reuse/ui5/date/test.date.conf.js +3 -8
- package/test/reuse/ui5/date/test.date.sauceLab.conf.js +4 -9
- package/test/reuse/ui5/element/getBindingValue.spec.js +17 -23
- package/test/reuse/ui5/element/getByChild.spec.js +52 -52
- package/test/reuse/ui5/element/getByParent.spec.js +65 -61
- package/test/reuse/ui5/element/getByText.spec.js +10 -14
- package/test/reuse/ui5/element/getCssPropertyValue.spec.js +1 -1
- package/test/reuse/ui5/element/getDisplayed.spec.js +23 -26
- package/test/reuse/ui5/element/getId.spec.js +15 -18
- package/test/reuse/ui5/element/getPropertyValue.spec.js +19 -23
- package/test/reuse/ui5/element/highlight.spec.js +9 -12
- package/test/reuse/ui5/element/isVisible.spec.js +12 -12
- package/test/reuse/ui5/element/test.element.sauceLab.conf.js +3 -5
- package/test/reuse/ui5/element/waitForAll.spec.js +10 -15
- package/test/reuse/ui5/errorDialog/clickClose.spec.js +6 -9
- package/test/reuse/ui5/errorDialog/expectToBeVisible.spec.js +7 -11
- package/test/reuse/ui5/errorDialog/test.errorDialog.conf.js +2 -5
- package/test/reuse/ui5/errorDialog/test.errorDialog.sauceLab.conf.js +4 -9
- package/test/reuse/ui5/mockserver_qunit/Component.js +3 -8
- package/test/reuse/ui5/mockserver_qunit/controller/App.controller.js +12 -18
- package/test/reuse/ui5/mockserver_qunit/controller/BaseController.js +3 -10
- package/test/reuse/ui5/mockserver_qunit/controller/Home.controller.js +6 -11
- package/test/reuse/ui5/mockserver_qunit/controller/NotFound.controller.js +6 -11
- package/test/reuse/ui5/mockserver_qunit/controller/employee/Employee.controller.js +10 -16
- package/test/reuse/ui5/mockserver_qunit/controller/employee/EmployeeList.controller.js +4 -9
- package/test/reuse/ui5/mockserver_qunit/controller/employee/Resume.controller.js +39 -36
- package/test/reuse/ui5/mockserver_qunit/controller/employee/overview/EmployeeOverview.controller.js +2 -7
- package/test/reuse/ui5/mockserver_qunit/controller/employee/overview/EmployeeOverviewContent.controller.js +66 -79
- package/test/reuse/ui5/mockserver_qunit/index.html +19 -18
- package/test/reuse/ui5/mockserver_qunit/initMockServer.js +13 -13
- package/test/reuse/ui5/mockserver_qunit/localService/mockdata/Employees.json +153 -153
- package/test/reuse/ui5/mockserver_qunit/localService/mockdata/Resumes.json +63 -63
- package/test/reuse/ui5/mockserver_qunit/localService/mockserver.js +124 -128
- package/test/reuse/ui5/mockserver_qunit/localService/mockserverLoadAllData.js +7 -13
- package/test/reuse/ui5/mockserver_qunit/manifest.json +169 -167
- package/test/reuse/ui5/mockserver_qunit/test/flpSandboxMockServer.html +58 -56
- package/test/reuse/ui5/mockserver_qunit/test/flpSandboxMockServerAllData.html +65 -61
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/config.js +60 -66
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/qunitExecution/specs/runQUnitTests.spec.js +3 -4
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/testDisplayNotFound/data/setup.json +8 -10
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/testDisplayNotFound/specs/testDisplayNotFound.spec.js +16 -18
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/testShowEmployeeList/data/mock/Employees.json +203 -203
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/testShowEmployeeList/data/mock/Resumes.json +113 -113
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/testShowEmployeeList/data/setup.json +8 -10
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/testShowEmployeeList/data/testShowEmployeeList.json +1 -1
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/testShowEmployeeList/specs/testShowEmployeeList.spec.js +24 -26
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/utils/constants.js +2 -2
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/utils/mockDataMapper.js +5 -6
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/utils/mockHelper.js +37 -52
- package/test/reuse/ui5/mockserver_qunit/test/unit/allTests.js +2 -4
- package/test/reuse/ui5/mockserver_qunit/test/unit/unitTests.qunit.html +28 -31
- package/test/reuse/ui5/mockserver_qunit/test/unit/utils/Conversions.js +13 -10
- package/test/reuse/ui5/navigation/expectUnsupportedNavigationPopup.spec.js +12 -13
- package/test/reuse/ui5/navigation/navigateToApplicationWithQueryParams.spec.js +1 -1
- package/test/reuse/ui5/navigation/navigateToApplicationWithQueryParamsAndRetry.spec.js +1 -1
- package/test/reuse/ui5/navigation/navigateToSystemAndApplication.spec.js +1 -2
- package/test/reuse/ui5/navigation/navigateToSystemAndApplicationAndRetry.spec.js +2 -4
- package/test/reuse/ui5/navigation/test.navigation.conf.js +2 -7
- package/test/reuse/ui5/navigation/test.navigation.sauceLab.conf.js +4 -4
- package/test/reuse/ui5/navigation/test.navigation.static.sauceLab.conf.js +4 -4
- package/test/reuse/ui5/navigationBar/clickUserIcon.spec.js +5 -10
- package/test/reuse/ui5/navigationBar/expectPageTitle.spec.js +2 -3
- package/test/reuse/ui5/navigationBar/expectShellHeader.spec.js +2 -3
- package/test/reuse/ui5/navigationBar/test.navigationBar.conf.js +2 -8
- package/test/reuse/ui5/navigationBar/test.navigationBar.sauceLab.conf.js +4 -10
- package/test/reuse/ui5/session/login.spec.js +9 -11
- package/test/reuse/ui5/session/loginFiori.spec.js +5 -7
- package/test/reuse/ui5/session/loginSapCloud.spec.js +6 -8
- package/test/reuse/ui5/session/logout.spec.js +2 -3
- package/test/reuse/ui5/session/switchUser.spec.js +1 -1
- package/test/reuse/ui5/session/test.session.conf.js +1 -7
- package/test/reuse/ui5/session/test.session.sauceLab.conf.js +4 -12
- package/test/reuse/ui5/table/clickSettingsButton.spec.js +12 -18
- package/test/reuse/ui5/table/getAllColumnValuesByName.spec.js +1 -4
- package/test/reuse/ui5/table/getSelectorForRowByIndex.spec.js +11 -14
- package/test/reuse/ui5/table/getSelectorsForRowsByValues.spec.js +6 -9
- package/test/reuse/ui5/table/getTotalNumberOfRowsByValues.spec.js +1 -3
- package/test/reuse/ui5/table/openItemByIndex.spec.js +23 -29
- package/test/reuse/ui5/table/openItemByValues.spec.js +27 -38
- package/test/reuse/ui5/table/selectRowByValues.spec.js +7 -7
- package/test/reuse/ui5/table/sortColumnAscending.spec.js +17 -25
- package/test/reuse/ui5/table/sortColumnDescending.spec.js +13 -19
- package/test/reuse/ui5/table/test.table.sauceLab.conf.js +4 -8
- package/test/reuse/ui5/table/test.table.sauceLab.tunnel.conf.js +4 -8
- package/test/reuse/ui5/userInteraction/clear.spec.js +14 -18
- package/test/reuse/ui5/userInteraction/clearAndFill.spec.js +28 -29
- package/test/reuse/ui5/userInteraction/clearAndFillAndRetry.spec.js +4 -12
- package/test/reuse/ui5/userInteraction/clearAndFillSmartFieldInput.spec.js +20 -19
- package/test/reuse/ui5/userInteraction/clearAndFillSmartFieldInputAndRetry.spec.js +5 -7
- package/test/reuse/ui5/userInteraction/clearAndRetry.spec.js +11 -16
- package/test/reuse/ui5/userInteraction/click.spec.js +90 -29
- package/test/reuse/ui5/userInteraction/clickAndRetry.spec.js +1 -3
- package/test/reuse/ui5/userInteraction/clickSelectArrow.spec.js +29 -30
- package/test/reuse/ui5/userInteraction/clickSelectArrowAndRetry.spec.js +1 -3
- package/test/reuse/ui5/userInteraction/doubleClick.spec.js +18 -22
- package/test/reuse/ui5/userInteraction/dragAndDrop.spec.js +8 -10
- package/test/reuse/ui5/userInteraction/fill.spec.js +20 -22
- package/test/reuse/ui5/userInteraction/fillAndRetry.spec.js +2 -6
- package/test/reuse/ui5/userInteraction/mouseOverElement.spec.js +2 -5
- package/test/reuse/ui5/userInteraction/openF4Help.spec.js +8 -12
- package/test/reuse/ui5/userInteraction/openValueHelp.spec.js +11 -12
- package/test/reuse/ui5/userInteraction/rightClick.spec.js +17 -20
- package/test/reuse/ui5/userInteraction/scrollToElement.spec.js +38 -38
- package/test/reuse/ui5/userInteraction/searchFor.spec.js +3 -12
- package/test/reuse/ui5/userInteraction/selectBox.spec.js +36 -36
- package/test/reuse/ui5/userInteraction/selectCombobox.spec.js +16 -24
- package/test/reuse/ui5/userInteraction/selectMultiComboBox.spec.js +22 -31
- package/test/reuse/util/browser/back.spec.js +10 -11
- package/test/reuse/util/browser/clearBrowser.spec.js +1 -1
- package/test/reuse/util/browser/executeScript.spec.js +14 -16
- package/test/reuse/util/browser/getBaseUrl.spec.js +1 -1
- package/test/reuse/util/browser/getBrowserName.spec.js +1 -3
- package/test/reuse/util/browser/getCurrentUrl.spec.js +9 -9
- package/test/reuse/util/browser/getCurrentWindow.spec.js +1 -1
- package/test/reuse/util/browser/getUI5Version.spec.js +8 -8
- package/test/reuse/util/browser/log.spec.js +1 -3
- package/test/reuse/util/browser/logCurrentUrl.spec.js +1 -1
- package/test/reuse/util/browser/refresh.spec.js +14 -16
- package/test/reuse/util/browser/reloadSession.spec.js +1 -1
- package/test/reuse/util/browser/setBaseUrl.spec.js +2 -2
- package/test/reuse/util/browser/switchToDefaultContent.spec.js +28 -29
- package/test/reuse/util/browser/switchToWindow.spec.js +2 -3
- package/test/reuse/util/browser/test.browserCmndLineArgs.conf.js +1 -3
- package/test/reuse/util/browser/waitUntil.spec.js +8 -16
- package/test/reuse/util/component/loadEntryPoint.spec.js +2 -3
- package/test/reuse/util/component/storeEntryPoint.spec.js +6 -10
- package/test/reuse/util/component/test.component.conf.js +1 -4
- package/test/reuse/util/console/console.spec.js +1 -3
- package/test/reuse/util/console/test.console.conf.js +2 -4
- package/test/reuse/util/data/customSourceData/getSecureData.secure.json +1 -1
- package/test/reuse/util/data/customSourceData/test.json +1 -1
- package/test/reuse/util/data/data/test.json +1 -1
- package/test/reuse/util/data/getData.spec.js +3 -7
- package/test/reuse/util/data/test.data.conf.js +1 -5
- package/test/reuse/util/data/test.data.privacy.conf.js +1 -7
- package/test/reuse/util/file/getAttributeValuesFromJson.spec.js +1 -1
- package/test/reuse/util/file/getFileNamesByExtensions.spec.js +0 -1
- package/test/reuse/util/file/pdfParser.spec.js +76 -80
- package/test/reuse/util/file/test.file.conf.js +2 -1
- package/test/reuse/util/file/testFiles/test1.json +26 -77
- package/test/reuse/util/file/upload.spec.js +24 -29
- package/test/reuse/util/formatter/addRemoveLeadingZeros.spec.js +1 -2
- package/test/reuse/util/formatter/formatDate.spec.js +2 -2
- package/test/reuse/util/formatter/formatDateWithTime.spec.js +6 -2
- package/test/reuse/util/formatter/sliceStringAfter.spec.js +1 -1
- package/test/reuse/util/formatter/sliceStringAt.spec.js +1 -1
- package/test/reuse/util/formatter/stringifyJSON.spec.js +4 -4
- package/test/reuse/util/formatter/test.formatter.conf.js +2 -2
- package/test/reuse/util/system/system.spec.js +1 -3
- package/test/reuse/util/system/test.system.conf.js +3 -5
- package/test/reuse/util/userSettings/data/data.json +1 -1
- package/test/reuse/util/userSettings/getDateFormatFromUserSettings.spec.js +0 -2
- package/test/reuse/util/userSettings/getLanguageFromUserSettings.spec.js +0 -1
- package/test/reuse/util/userSettings/getTimeFormatFromUserSettings.spec.js +0 -3
- package/test/reuse/util/userSettings/getTimeZoneFromUserSettings.spec.js +0 -2
- package/test/reuse/util/userSettings/setDateFormatFromUserSettings.spec.js +0 -2
- package/test/reuse/util/userSettings/setLanguageFromUserSettings.spec.js +0 -2
- package/test/reuse/util/userSettings/setNumberFormatFromUserSettings.spec.js +1 -3
- package/test/reuse/util/userSettings/setS4UserSettings.spec.js +0 -2
- package/test/reuse/util/userSettings/setTimeFormatFromUserSettings.spec.js +0 -3
- package/test/reuse/util/userSettings/setTimeZoneFromUserSettings.spec.js +0 -2
- package/test/reuse/util/userSettings/test.userSettings.apply.conf.js +1 -3
- package/test/unit/stats/getUserId.error.spec.ts +3 -1
- package/test/unit/stats/getUserId.spec.ts +10 -10
- package/test/unit/vitest.config.ts +2 -2
- package/test/watchMode/config.js +1 -3
- package/test/watchMode/navigateToUrlAndClick.spec.js +7 -7
- package/tsconfig.json +1 -4
- package/lib/reuse/modules/mobile/Mobile.d.ts +0 -16
- package/lib/reuse/modules/mobile/Mobile.js +0 -23
- package/lib/reuse/modules/mobile/Mobile.js.map +0 -1
- package/lib/reuse/modules/mobile/android.d.ts +0 -32
- package/lib/reuse/modules/mobile/android.js +0 -85
- package/lib/reuse/modules/mobile/android.js.map +0 -1
- package/lib/reuse/modules/mobile/device.d.ts +0 -173
- package/lib/reuse/modules/mobile/device.js +0 -403
- package/lib/reuse/modules/mobile/device.js.map +0 -1
- package/lib/reuse/modules/mobile/element.d.ts +0 -95
- package/lib/reuse/modules/mobile/element.js +0 -185
- package/lib/reuse/modules/mobile/element.js.map +0 -1
- package/lib/reuse/modules/mobile/gestures.d.ts +0 -42
- package/lib/reuse/modules/mobile/gestures.js +0 -86
- package/lib/reuse/modules/mobile/gestures.js.map +0 -1
- package/lib/reuse/modules/mobile/ios.d.ts +0 -10
- package/lib/reuse/modules/mobile/ios.js +0 -19
- package/lib/reuse/modules/mobile/ios.js.map +0 -1
- package/lib/reuse/modules/mobile/userInteraction.d.ts +0 -94
- package/lib/reuse/modules/mobile/userInteraction.js +0 -210
- package/lib/reuse/modules/mobile/userInteraction.js.map +0 -1
- package/test/helper/configurations/mobile.conf.js +0 -16
|
@@ -3,25 +3,25 @@ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
|
3
3
|
const { handleCookiesConsent } = require("../../../helper/utils");
|
|
4
4
|
|
|
5
5
|
const selectorTest = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
elementProperties: {
|
|
7
|
+
metadata: "sap.m.Link",
|
|
8
|
+
text: "test.txt"
|
|
9
9
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
siblingProperties: {
|
|
11
|
+
metadata: "sap.ui.core.Icon",
|
|
12
|
+
src: "sap-icon://document-text",
|
|
13
|
+
alt: "test.txt"
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
const selectorTest2 = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
elementProperties: {
|
|
18
|
+
metadata: "sap.m.Link",
|
|
19
|
+
text: "test2.txt"
|
|
20
20
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
siblingProperties: {
|
|
22
|
+
metadata: "sap.ui.core.Icon",
|
|
23
|
+
src: "sap-icon://document-text",
|
|
24
|
+
alt: "test2.txt"
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -29,7 +29,6 @@ const files = [];
|
|
|
29
29
|
files.push(path.resolve(__dirname, "./testFiles/test.txt"), path.resolve(__dirname, "./testFiles/test2.txt"));
|
|
30
30
|
|
|
31
31
|
describe("file - upload - default selector", function () {
|
|
32
|
-
|
|
33
32
|
it("Preparation", async function () {
|
|
34
33
|
await common.navigation.navigateToUrl(browser.config.baseUrl);
|
|
35
34
|
await handleCookiesConsent();
|
|
@@ -41,13 +40,12 @@ describe("file - upload - default selector", function () {
|
|
|
41
40
|
});
|
|
42
41
|
|
|
43
42
|
it("Verification", async function () {
|
|
44
|
-
await ui5.
|
|
45
|
-
await ui5.
|
|
43
|
+
await ui5.assertion.expectToBeVisible(selectorTest);
|
|
44
|
+
await ui5.assertion.expectToBeVisible(selectorTest2);
|
|
46
45
|
});
|
|
47
46
|
});
|
|
48
47
|
|
|
49
48
|
describe("file - upload - custom selector - UI5", function () {
|
|
50
|
-
|
|
51
49
|
it("Preparation", async function () {
|
|
52
50
|
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.UploadCollection/sample/sap.m.sample.UploadCollection`);
|
|
53
51
|
await util.browser.refresh();
|
|
@@ -57,23 +55,21 @@ describe("file - upload - custom selector - UI5", function () {
|
|
|
57
55
|
|
|
58
56
|
it("Execution", async function () {
|
|
59
57
|
const customSelector = {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
elementProperties: {
|
|
59
|
+
viewName: "sap.m.sample.UploadCollection.Page",
|
|
60
|
+
metadata: "sap.ui.unified.FileUploader"
|
|
63
61
|
}
|
|
64
62
|
};
|
|
65
63
|
await util.file.upload(files, customSelector);
|
|
66
64
|
});
|
|
67
65
|
|
|
68
66
|
it("Verification", async function () {
|
|
69
|
-
await ui5.
|
|
70
|
-
await ui5.
|
|
67
|
+
await ui5.assertion.expectToBeVisible(selectorTest);
|
|
68
|
+
await ui5.assertion.expectToBeVisible(selectorTest2);
|
|
71
69
|
});
|
|
72
|
-
|
|
73
70
|
});
|
|
74
71
|
|
|
75
72
|
describe("file - upload - custom selector - non UI5", function () {
|
|
76
|
-
|
|
77
73
|
it("Preparation", async function () {
|
|
78
74
|
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.UploadCollection/sample/sap.m.sample.UploadCollection`);
|
|
79
75
|
await util.browser.refresh();
|
|
@@ -87,8 +83,7 @@ describe("file - upload - custom selector - non UI5", function () {
|
|
|
87
83
|
});
|
|
88
84
|
|
|
89
85
|
it("Verification", async function () {
|
|
90
|
-
await ui5.
|
|
91
|
-
await ui5.
|
|
86
|
+
await ui5.assertion.expectToBeVisible(selectorTest);
|
|
87
|
+
await ui5.assertion.expectToBeVisible(selectorTest2);
|
|
92
88
|
});
|
|
93
|
-
|
|
94
|
-
});
|
|
89
|
+
});
|
|
@@ -14,7 +14,6 @@ describe("formatter - addRemoveLeadingZeros", function () {
|
|
|
14
14
|
});
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
|
|
18
17
|
describe("formatter - addRemoveLeadingZeros - remove zeros", function () {
|
|
19
18
|
it("Execution & Verification", function () {
|
|
20
19
|
common.assertion.expectEqual(util.formatter.addRemoveLeadingZeros("0000010", 2), "10");
|
|
@@ -22,4 +21,4 @@ describe("formatter - addRemoveLeadingZeros", function () {
|
|
|
22
21
|
common.assertion.expectEqual(util.formatter.addRemoveLeadingZeros("00012", 3), "012");
|
|
23
22
|
});
|
|
24
23
|
});
|
|
25
|
-
});
|
|
24
|
+
});
|
|
@@ -147,7 +147,7 @@ describe("formatter - formatDate", function () {
|
|
|
147
147
|
await common.assertion.expectEqual(formatted, expected);
|
|
148
148
|
});
|
|
149
149
|
});
|
|
150
|
-
|
|
150
|
+
|
|
151
151
|
describe("formatDate - format MMM dd, yyyy - 'de-DE' - short", async function () {
|
|
152
152
|
it("Preparation", function () {
|
|
153
153
|
date = new Date(2021, 9, 1, 8, 5);
|
|
@@ -179,4 +179,4 @@ describe("formatter - formatDate", function () {
|
|
|
179
179
|
await common.assertion.expectEqual(formatted, expected);
|
|
180
180
|
});
|
|
181
181
|
});
|
|
182
|
-
});
|
|
182
|
+
});
|
|
@@ -351,7 +351,11 @@ describe("formatter - formatDateWithTime", () => {
|
|
|
351
351
|
function calculateTimezoneOffset(date) {
|
|
352
352
|
const offset = date.getTimezoneOffset();
|
|
353
353
|
const sign = offset < 0 ? "+" : "-";
|
|
354
|
-
const hours = Math.abs(Math.floor(offset / 60))
|
|
355
|
-
|
|
354
|
+
const hours = Math.abs(Math.floor(offset / 60))
|
|
355
|
+
.toString()
|
|
356
|
+
.padStart(2, "0");
|
|
357
|
+
const minutes = Math.abs(offset % 60)
|
|
358
|
+
.toString()
|
|
359
|
+
.padStart(2, "0");
|
|
356
360
|
return `GMT${sign}${hours}:${minutes}`;
|
|
357
361
|
}
|
|
@@ -6,9 +6,9 @@ describe("formatter - stringifyJSON", function () {
|
|
|
6
6
|
describe("stringifyJSON - happy case", async function () {
|
|
7
7
|
it("Preparation", function () {
|
|
8
8
|
input = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
a: 123,
|
|
10
|
+
b: 456,
|
|
11
|
+
c: 789
|
|
12
12
|
};
|
|
13
13
|
expected = JSON.stringify(input);
|
|
14
14
|
});
|
|
@@ -21,4 +21,4 @@ describe("formatter - stringifyJSON", function () {
|
|
|
21
21
|
await common.assertion.expectEqual(stringified, expected);
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
|
-
});
|
|
24
|
+
});
|
|
@@ -6,7 +6,7 @@ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
|
6
6
|
exports.config = merge(profile.config, {
|
|
7
7
|
maxInstances: 6,
|
|
8
8
|
specFileRetries: 2,
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
baseUrl: `${BASE_URL}/`,
|
|
11
11
|
|
|
12
12
|
specs: [
|
|
@@ -19,4 +19,4 @@ exports.config = merge(profile.config, {
|
|
|
19
19
|
path.resolve(__dirname, "trimString.spec.js"),
|
|
20
20
|
path.resolve(__dirname, "formatDateWithTime.spec.js")
|
|
21
21
|
]
|
|
22
|
-
});
|
|
22
|
+
});
|
|
@@ -2,7 +2,6 @@ const path = require("path");
|
|
|
2
2
|
const fs = require("fs");
|
|
3
3
|
|
|
4
4
|
describe("system", function () {
|
|
5
|
-
|
|
6
5
|
describe("getOS", function () {
|
|
7
6
|
let osName;
|
|
8
7
|
it("Execution", async function () {
|
|
@@ -12,5 +11,4 @@ describe("system", function () {
|
|
|
12
11
|
await common.assertion.expectDefined(osName);
|
|
13
12
|
});
|
|
14
13
|
});
|
|
15
|
-
|
|
16
|
-
});
|
|
14
|
+
});
|
|
@@ -5,9 +5,7 @@ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
|
5
5
|
exports.config = merge(qmateConfiguration.config, {
|
|
6
6
|
maxInstances: 1,
|
|
7
7
|
|
|
8
|
-
baseUrl: `${BASE_URL}/#/entity/sap.m.UploadCollection/sample/sap.m.sample.UploadCollection`,
|
|
8
|
+
baseUrl: `${BASE_URL}/#/entity/sap.m.UploadCollection/sample/sap.m.sample.UploadCollection`,
|
|
9
9
|
|
|
10
|
-
specs: [
|
|
11
|
-
|
|
12
|
-
]
|
|
13
|
-
});
|
|
10
|
+
specs: [path.resolve(__dirname, "system.spec.js")]
|
|
11
|
+
});
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
"systemUrl": "817bac533d84867cf08db1aa05d763453bad031d3e6ba5f674452da8ed1c7a525085003a481053a59e7b382f0c71461f641beabf6043e4fb3a76aabde151bdbf0ed76f12c8512bba93c263315b7b23a1a986a99cbc727a24124faed74445fe48759aea0256d9df9839c409872cbc41889c5f3d9955560af97088221aac7bbbd4df3899945cdc8eccd6389eb77dd6e4d7eec0a91fb3389ced2077fb24118a0b00337ef7e6f992048cb5f9bfc3c5af8bf14e3b278decc1663c3109086e0db1f736e3abc3235b5929f3df19fe605aea3e8239b842f98e66095c9c3ef975aa9f9c0cae77beee7b6c8f5bc37e8a32f06ada9ba0202262c525f33354cbde790c98b6195e157431b52f85e380232c449c46753b9a964d399d68a27a6d775918092b61ead6cb743207219d3ae61964d2d7c9ebeb870f2e69e1c613bfa083bd954b556b6a07f7bcc2db78ada63457f4f376e60f17fa2a4c3548a435e901260b1a7ca7bb93",
|
|
4
4
|
"username": "2ab173a889f752d3a42db739f2dd2cd179e72d747550b028db67f774aa8530e3ea3a95e582446015634449be9ab658098b9048401833d69a998be483fdaa7676214a21af6fbbe4f4273207b2a39f4efec5998266b1b4f45b1423aa7133fc31dc56041ba4049c278ec3fddbed766b3f0dc114fb1a9cef2058aebb3c4b9d91200a2d9531dc93bae58514f233f0e2f49f5b64cbb78d6035053a1f7353c80cfe151fed90f6e6300568a32a3e3226324a5a20e42492e5fbc42c1a9c6c8c136d4c91be327f939bed973d5991abbbd98c509c232028bcaf0a40b9a8c805ae66a48fd899ef919b92cad8b094c9c8f0aac44222a4bc973964958ead8ec7252c45ffcdaca0aa44b81580af603f6e3c3ee61943dec6de61f32ac5a3c3d89c85d16fb108caf85cd2967f6553418f520f9c3eabbb28907535d1ccb8cc205f934473eb64259d12385bb44b51dcf146d0f8718eb0379610895bd27c718a1be046a5c5f12e596bd2",
|
|
5
5
|
"password": "f29d3de7092b06610ea12aa60513a9bc5178c69f67286c4377414ef34b0bdf8727aa2787807cf4678376ccdb2d51715ea34e88450544a510137e3eb552fab98f7bdbc302e9b3c30a25744d4719246181bb63eeac931a1807da43f587baf309a097c9af216639796c97ed4068332af4f33594eea8eba02c5eec31a852167b7ab0eadee460b4534d51c5278b81e5cab4fe5f67ffddeb1070f40d2b0b521e4a9acf30fc408899ff08d22d53c2fc67ca92bd94ae2f9d193240a03f97bb197bed107e9e591d48d8830845794f9bd0016e1ae065b42a3830134ed9241e3cb37f8c7e5d5d76fa8df9cb973eb968ce945db5de10c0c8bb004e8504a6e0e4554f58350add6da6d8efd1bdb55d12bbcbe676fa04170ac3e2ad831c97f37b6251ce7bbcbb10a7f2212d599875f61566833ec3e03a9f58dff2463c326202887302dc71f3e09b73cd3eaf7bd07977abff0962ea4d7bd890cc9dadbf5240bedc2c3e1802156504"
|
|
6
|
-
}
|
|
6
|
+
}
|
|
@@ -4,7 +4,6 @@ describe("userSettings", function () {
|
|
|
4
4
|
const DATE_FORMAT_LENGTH = 10;
|
|
5
5
|
|
|
6
6
|
describe("getDateFormatFromUserSettings.spec - passing date format", function () {
|
|
7
|
-
|
|
8
7
|
it("Preparation: Set systemUrl ", async function () {
|
|
9
8
|
browser.config.params.systemUrl = util.data.decrypt(data.systemUrl);
|
|
10
9
|
});
|
|
@@ -17,5 +16,4 @@ describe("userSettings", function () {
|
|
|
17
16
|
common.assertion.expectEqual(new Date(date), new Date(userDate));
|
|
18
17
|
});
|
|
19
18
|
});
|
|
20
|
-
|
|
21
19
|
});
|
|
@@ -2,7 +2,6 @@ const data = require("./data/data.json");
|
|
|
2
2
|
|
|
3
3
|
describe("userSettings", function () {
|
|
4
4
|
describe("getLanguageFromUserSettings.spec", function () {
|
|
5
|
-
|
|
6
5
|
it("Preparation: Set systemUrl ", async function () {
|
|
7
6
|
browser.config.params.systemUrl = util.data.decrypt(data.systemUrl);
|
|
8
7
|
});
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
const data = require("./data/data.json");
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
describe("userSettings", function () {
|
|
5
4
|
describe("getTimeFormatFromUserSettings.spec", function () {
|
|
6
|
-
|
|
7
5
|
it("Preparation: Set systemUrl ", async function () {
|
|
8
6
|
browser.config.params.systemUrl = util.data.decrypt(data.systemUrl);
|
|
9
7
|
});
|
|
@@ -12,6 +10,5 @@ describe("userSettings", function () {
|
|
|
12
10
|
const userTimeFormat = await util.userSettings.getTimeFormatFromUserSettings(util.data.decrypt(data.username), util.data.decrypt(data.password));
|
|
13
11
|
common.assertion.expectDefined(userTimeFormat); //12 Hour Format (Example: 12:05:10 PM)
|
|
14
12
|
});
|
|
15
|
-
|
|
16
13
|
});
|
|
17
14
|
});
|
|
@@ -2,7 +2,6 @@ const data = require("./data/data.json");
|
|
|
2
2
|
|
|
3
3
|
describe("userSettings", function () {
|
|
4
4
|
describe("getTimeZoneFromUserSettings.spec", function () {
|
|
5
|
-
|
|
6
5
|
it("Preparation: Set systemUrl ", async function () {
|
|
7
6
|
browser.config.params.systemUrl = util.data.decrypt(data.systemUrl);
|
|
8
7
|
});
|
|
@@ -11,6 +10,5 @@ describe("userSettings", function () {
|
|
|
11
10
|
const userTimeZone = await util.userSettings.getTimeZoneFromUserSettings(util.data.decrypt(data.username), util.data.decrypt(data.password));
|
|
12
11
|
common.assertion.expectDefined(userTimeZone); //Europe, Berlin was set.
|
|
13
12
|
});
|
|
14
|
-
|
|
15
13
|
});
|
|
16
14
|
});
|
|
@@ -2,7 +2,6 @@ const data = require("./data/data.json");
|
|
|
2
2
|
|
|
3
3
|
describe("userSettings", function () {
|
|
4
4
|
describe("setDateFormatFromUserSettings.spec - passing date format", function () {
|
|
5
|
-
|
|
6
5
|
it("Preparation: Set systemUrl ", async function () {
|
|
7
6
|
browser.config.params.systemUrl = util.data.decrypt(data.systemUrl);
|
|
8
7
|
});
|
|
@@ -29,5 +28,4 @@ describe("userSettings", function () {
|
|
|
29
28
|
common.assertion.expectEqual(new Date(date), new Date(userDate));
|
|
30
29
|
});
|
|
31
30
|
});
|
|
32
|
-
|
|
33
31
|
});
|
|
@@ -2,7 +2,6 @@ const data = require("./data/data.json");
|
|
|
2
2
|
|
|
3
3
|
describe("userSettings", function () {
|
|
4
4
|
describe("setLanguageFromUserSettings.spec", function () {
|
|
5
|
-
|
|
6
5
|
it("Preparation: Set systemUrl ", async function () {
|
|
7
6
|
browser.config.params.systemUrl = util.data.decrypt(data.systemUrl);
|
|
8
7
|
});
|
|
@@ -12,5 +11,4 @@ describe("userSettings", function () {
|
|
|
12
11
|
common.assertion.expectEqual(process.env.USER_SETTINGS_LANG_KEY.length, 2); //Output: en
|
|
13
12
|
});
|
|
14
13
|
});
|
|
15
|
-
|
|
16
14
|
});
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
const data = require("./data/data.json");
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
describe("userSettings", function () {
|
|
5
4
|
describe("setNumberFormatFromUserSettings.spec", function () {
|
|
6
|
-
|
|
7
5
|
it("Preparation: Set systemUrl ", async function () {
|
|
8
6
|
browser.config.params.systemUrl = util.data.decrypt(data.systemUrl);
|
|
9
7
|
});
|
|
10
8
|
|
|
11
9
|
it("Execution", async function () {
|
|
12
10
|
await util.userSettings.setNumberFormatFromUserSettings(util.data.decrypt(data.username), util.data.decrypt(data.password));
|
|
13
|
-
common.assertion.expectDefined(process.env.USER_SETTINGS_NUMBER_FORMAT);
|
|
11
|
+
common.assertion.expectDefined(process.env.USER_SETTINGS_NUMBER_FORMAT); //Output: 1,234,567.89
|
|
14
12
|
});
|
|
15
13
|
});
|
|
16
14
|
});
|
|
@@ -2,7 +2,6 @@ const data = require("./data/data.json");
|
|
|
2
2
|
|
|
3
3
|
describe("userSettings", function () {
|
|
4
4
|
describe("setS4UserSettings.spec - apply all s4 user settings", function () {
|
|
5
|
-
|
|
6
5
|
it("Preparation: Set systemUrl ", async function () {
|
|
7
6
|
browser.config.params.systemUrl = util.data.decrypt(data.systemUrl);
|
|
8
7
|
});
|
|
@@ -32,6 +31,5 @@ describe("userSettings", function () {
|
|
|
32
31
|
common.assertion.expectDefined(process.env.USER_SETTINGS_LANG_KEY);
|
|
33
32
|
});
|
|
34
33
|
});
|
|
35
|
-
|
|
36
34
|
});
|
|
37
35
|
});
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
const data = require("./data/data.json");
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
describe("userSettings", function () {
|
|
5
4
|
describe("setTimeFormatFromUserSettings.spec", function () {
|
|
6
|
-
|
|
7
5
|
it("Preparation: Set systemUrl ", async function () {
|
|
8
6
|
browser.config.params.systemUrl = util.data.decrypt(data.systemUrl);
|
|
9
7
|
});
|
|
@@ -12,6 +10,5 @@ describe("userSettings", function () {
|
|
|
12
10
|
await util.userSettings.setTimeFormatFromUserSettings(util.data.decrypt(data.username), util.data.decrypt(data.password));
|
|
13
11
|
common.assertion.expectDefined(process.env.USER_SETTINGS_TIME_FORMAT); //12 Hour Format
|
|
14
12
|
});
|
|
15
|
-
|
|
16
13
|
});
|
|
17
14
|
});
|
|
@@ -2,7 +2,6 @@ const data = require("./data/data.json");
|
|
|
2
2
|
|
|
3
3
|
describe("userSettings", function () {
|
|
4
4
|
describe("setTimeZoneFromUserSettings.spec", function () {
|
|
5
|
-
|
|
6
5
|
it("Preparation: Set systemUrl ", async function () {
|
|
7
6
|
browser.config.params.systemUrl = util.data.decrypt(data.systemUrl);
|
|
8
7
|
});
|
|
@@ -11,6 +10,5 @@ describe("userSettings", function () {
|
|
|
11
10
|
await util.userSettings.setTimeZoneFromUserSettings(util.data.decrypt(data.username), util.data.decrypt(data.password));
|
|
12
11
|
common.assertion.expectDefined(process.env.USER_SETTINGS_TIME_ZONE); //Output: "Europe/Berlin"
|
|
13
12
|
});
|
|
14
|
-
|
|
15
13
|
});
|
|
16
14
|
});
|
|
@@ -3,7 +3,9 @@ import { getUserId } from "../../../src/scripts/stats/getUserId";
|
|
|
3
3
|
|
|
4
4
|
vi.mock("os", () => {
|
|
5
5
|
return {
|
|
6
|
-
homedir: vi.fn().mockImplementation(() => {
|
|
6
|
+
homedir: vi.fn().mockImplementation(() => {
|
|
7
|
+
throw new Error("Home directory not accessible");
|
|
8
|
+
})
|
|
7
9
|
};
|
|
8
10
|
});
|
|
9
11
|
|
|
@@ -8,13 +8,13 @@ const fetchedUserId = "fetched-user-id";
|
|
|
8
8
|
const { getItemMock } = vi.hoisted(() => {
|
|
9
9
|
return {
|
|
10
10
|
getItemMock: vi.fn()
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
const { setItemMock } = vi.hoisted(() => {
|
|
15
15
|
return {
|
|
16
16
|
setItemMock: vi.fn()
|
|
17
|
-
}
|
|
17
|
+
};
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
vi.mock("node-localstorage", () => {
|
|
@@ -22,7 +22,7 @@ vi.mock("node-localstorage", () => {
|
|
|
22
22
|
LocalStorage: vi.fn(() => {
|
|
23
23
|
return {
|
|
24
24
|
getItem: getItemMock,
|
|
25
|
-
setItem: setItemMock
|
|
25
|
+
setItem: setItemMock
|
|
26
26
|
};
|
|
27
27
|
})
|
|
28
28
|
};
|
|
@@ -31,13 +31,13 @@ vi.mock("node-localstorage", () => {
|
|
|
31
31
|
const { fetchMock } = vi.hoisted(() => {
|
|
32
32
|
return {
|
|
33
33
|
fetchMock: vi.fn()
|
|
34
|
-
}
|
|
34
|
+
};
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
vi.mock("undici", () => {
|
|
38
38
|
return {
|
|
39
39
|
fetch: fetchMock,
|
|
40
|
-
Agent: vi.fn()
|
|
40
|
+
Agent: vi.fn()
|
|
41
41
|
};
|
|
42
42
|
});
|
|
43
43
|
|
|
@@ -73,7 +73,7 @@ describe("getUserId", () => {
|
|
|
73
73
|
getItemMock.mockReturnValue(null);
|
|
74
74
|
fetchMock.mockResolvedValue({
|
|
75
75
|
ok: true,
|
|
76
|
-
text: () => Promise.resolve(JSON.stringify({ id: fetchedUserId }))
|
|
76
|
+
text: () => Promise.resolve(JSON.stringify({ id: fetchedUserId }))
|
|
77
77
|
} as Response);
|
|
78
78
|
|
|
79
79
|
// Act
|
|
@@ -88,7 +88,7 @@ describe("getUserId", () => {
|
|
|
88
88
|
getItemMock.mockReturnValue(null);
|
|
89
89
|
fetchMock.mockResolvedValue({
|
|
90
90
|
ok: true,
|
|
91
|
-
text: () => Promise.resolve(JSON.stringify({ id: fetchedUserId }))
|
|
91
|
+
text: () => Promise.resolve(JSON.stringify({ id: fetchedUserId }))
|
|
92
92
|
} as Response);
|
|
93
93
|
|
|
94
94
|
// Act
|
|
@@ -97,7 +97,7 @@ describe("getUserId", () => {
|
|
|
97
97
|
// Verify
|
|
98
98
|
expect(fetchMock).toHaveBeenCalledWith(`${STATS_SERVER_URL}/api/user`, {
|
|
99
99
|
method: "POST",
|
|
100
|
-
dispatcher: expect.anything()
|
|
100
|
+
dispatcher: expect.anything()
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
103
|
|
|
@@ -108,7 +108,7 @@ describe("getUserId", () => {
|
|
|
108
108
|
ok: false,
|
|
109
109
|
status: 500,
|
|
110
110
|
statusText: "Internal Server Error",
|
|
111
|
-
text: () => Promise.resolve("")
|
|
111
|
+
text: () => Promise.resolve("")
|
|
112
112
|
} as Response);
|
|
113
113
|
|
|
114
114
|
// Act
|
|
@@ -136,7 +136,7 @@ describe("getUserId", () => {
|
|
|
136
136
|
|
|
137
137
|
fetchMock.mockResolvedValue({
|
|
138
138
|
ok: true,
|
|
139
|
-
text: () => Promise.resolve(JSON.stringify({ id: fetchedUserId }))
|
|
139
|
+
text: () => Promise.resolve(JSON.stringify({ id: fetchedUserId }))
|
|
140
140
|
} as Response);
|
|
141
141
|
|
|
142
142
|
// Act
|
package/test/watchMode/config.js
CHANGED
|
@@ -5,9 +5,7 @@ const { BASE_URL } = require("../../src/reuse/constants.ts");
|
|
|
5
5
|
|
|
6
6
|
exports.config = merge(profile.config, {
|
|
7
7
|
baseUrl: `${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_horizon`,
|
|
8
|
-
specs: [
|
|
9
|
-
path.resolve(__dirname, "navigateToUrlAndClick.spec.js")
|
|
10
|
-
],
|
|
8
|
+
specs: [path.resolve(__dirname, "navigateToUrlAndClick.spec.js")],
|
|
11
9
|
beforeSession: () => {
|
|
12
10
|
simulateRestartInWatchMode();
|
|
13
11
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
describe("watchMode - test case runs after being restarted in watch mode", function() {
|
|
2
|
-
it("Step 01: Navigate to URL", async function() {
|
|
1
|
+
describe("watchMode - test case runs after being restarted in watch mode", function () {
|
|
2
|
+
it("Step 01: Navigate to URL", async function () {
|
|
3
3
|
await common.navigation.navigateToUrl(browser.config.baseUrl);
|
|
4
4
|
});
|
|
5
5
|
|
|
6
|
-
it("Step 02: Click 'accessories' StandardListItem", async function() {
|
|
6
|
+
it("Step 02: Click 'accessories' StandardListItem", async function () {
|
|
7
7
|
const selector = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
elementProperties: {
|
|
9
|
+
viewName: "sap.ui.demo.cart.view.Home",
|
|
10
|
+
metadata: "sap.m.StandardListItem",
|
|
11
|
+
bindingContextPath: "/ProductCategories*'AC')"
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
await ui5.userInteraction.click(selector);
|
package/tsconfig.json
CHANGED
|
@@ -6,10 +6,7 @@
|
|
|
6
6
|
"paths": {
|
|
7
7
|
"*": ["./types/*"]
|
|
8
8
|
},
|
|
9
|
-
"typeRoots": [
|
|
10
|
-
"./@types",
|
|
11
|
-
"./node_modules/@types"
|
|
12
|
-
] /* Specify multiple folders that act like `./node_modules/@types`. */,
|
|
9
|
+
"typeRoots": ["./@types", "./node_modules/@types"] /* Specify multiple folders that act like `./node_modules/@types`. */,
|
|
13
10
|
"resolveJsonModule": true /* Enable importing .json files */,
|
|
14
11
|
"declaration": true /* Generates corresponding `.d.ts` file. */,
|
|
15
12
|
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */,
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Gestures } from "./gestures";
|
|
2
|
-
import { ElementModule } from "./element";
|
|
3
|
-
import { UserInteraction } from "./userInteraction";
|
|
4
|
-
import { Device } from "./device";
|
|
5
|
-
import { Android } from "./android";
|
|
6
|
-
import { Ios } from "./ios";
|
|
7
|
-
export declare class Mobile {
|
|
8
|
-
gestures: Gestures;
|
|
9
|
-
userInteraction: UserInteraction;
|
|
10
|
-
element: ElementModule;
|
|
11
|
-
device: Device;
|
|
12
|
-
android: Android;
|
|
13
|
-
ios: Ios;
|
|
14
|
-
}
|
|
15
|
-
declare const _default: Mobile;
|
|
16
|
-
export default _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Mobile = void 0;
|
|
7
|
-
const gestures_1 = __importDefault(require("./gestures"));
|
|
8
|
-
const element_1 = __importDefault(require("./element"));
|
|
9
|
-
const userInteraction_1 = __importDefault(require("./userInteraction"));
|
|
10
|
-
const device_1 = __importDefault(require("./device"));
|
|
11
|
-
const android_1 = __importDefault(require("./android"));
|
|
12
|
-
const ios_1 = __importDefault(require("./ios"));
|
|
13
|
-
class Mobile {
|
|
14
|
-
gestures = gestures_1.default;
|
|
15
|
-
userInteraction = userInteraction_1.default;
|
|
16
|
-
element = element_1.default;
|
|
17
|
-
device = device_1.default;
|
|
18
|
-
android = android_1.default;
|
|
19
|
-
ios = ios_1.default;
|
|
20
|
-
}
|
|
21
|
-
exports.Mobile = Mobile;
|
|
22
|
-
exports.default = new Mobile();
|
|
23
|
-
//# sourceMappingURL=Mobile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Mobile.js","sourceRoot":"","sources":["../../../../src/reuse/modules/mobile/Mobile.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAgD;AAChD,wDAAmD;AACnD,wEAAqE;AACrE,sDAA0C;AAC1C,wDAA6C;AAC7C,gDAAiC;AAEjC,MAAa,MAAM;IACjB,QAAQ,GAAa,kBAAQ,CAAC;IAC9B,eAAe,GAAoB,yBAAe,CAAC;IACnD,OAAO,GAAkB,iBAAO,CAAC;IACjC,MAAM,GAAW,gBAAM,CAAC;IACxB,OAAO,GAAY,iBAAO,CAAC;IAC3B,GAAG,GAAQ,aAAG,CAAC;CAChB;AAPD,wBAOC;AACD,kBAAe,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
type KeyName = "back" | "home" | "volumeUp" | "volumeDown" | "VolumeMute" | "power" | "enter" | "space" | "delete" | "menu" | "search" | "camera" | "focus" | "notification" | "call" | "calendar" | "recent" | "settings";
|
|
2
|
-
/**
|
|
3
|
-
* @class android
|
|
4
|
-
* @memberof mobile
|
|
5
|
-
*/
|
|
6
|
-
export declare class Android {
|
|
7
|
-
private vlf;
|
|
8
|
-
private ErrorHandler;
|
|
9
|
-
/**
|
|
10
|
-
* @function pressKeyByName
|
|
11
|
-
* @memberof mobile.android
|
|
12
|
-
* @description Simulate pressing a hardware key on the android device (e.g., back button, home button, etc.),
|
|
13
|
-
* @param {string} keyName - The name of the key (e.g., "back", "home", "volumeUp", etc.)
|
|
14
|
-
* @returns {Promise<void>}
|
|
15
|
-
* @example
|
|
16
|
-
* await mobile.android.pressKeyByName("back");
|
|
17
|
-
* await mobile.android.pressKeyByName("home");
|
|
18
|
-
*/
|
|
19
|
-
pressKeyByName(keyName: KeyName): Promise<void>;
|
|
20
|
-
/**
|
|
21
|
-
* @function pressKeyByCode
|
|
22
|
-
* @memberof mobile.android
|
|
23
|
-
* @description Simulate pressing a hardware key on the android device (e.g., back button, home button, etc.),
|
|
24
|
-
* @param {string} keyCode - The code of the key (e.g., 4 (back), 3 (home) , etc.)
|
|
25
|
-
* @returns {Promise<void>}
|
|
26
|
-
* @example await mobile.android.pressKeyByCode(4);
|
|
27
|
-
* @see https://developer.android.com/reference/android/view/KeyEvent
|
|
28
|
-
*/
|
|
29
|
-
pressKeyByCode(keyCode: number): Promise<void>;
|
|
30
|
-
}
|
|
31
|
-
declare const _default: Android;
|
|
32
|
-
export default _default;
|