@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
package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/testShowEmployeeList/data/mock/Resumes.json
CHANGED
|
@@ -1,114 +1,114 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
2
|
+
"d": {
|
|
3
|
+
"results": [
|
|
4
|
+
{
|
|
5
|
+
"ResumeID": 1,
|
|
6
|
+
"Information": "Information of Nancy Davolio",
|
|
7
|
+
"Projects": "Projects of Nancy Davolio",
|
|
8
|
+
"Hobbies": "Hobbies of Nancy Davolio",
|
|
9
|
+
"Notes": "Notes of Nancy Davolio",
|
|
10
|
+
"__metadata": {
|
|
11
|
+
"id": "/here/goes/your/serviceUrl/Resumes(1)",
|
|
12
|
+
"type": "NavigationModel.Resume",
|
|
13
|
+
"uri": "/here/goes/your/serviceUrl/Resumes(1)"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"ResumeID": 2,
|
|
18
|
+
"Information": "Information of Andrew Fuller",
|
|
19
|
+
"Projects": "Projects of Andrew Fuller",
|
|
20
|
+
"Hobbies": "Hobbies of Andrew Fuller",
|
|
21
|
+
"Notes": "Notes of Andrew Fuller",
|
|
22
|
+
"__metadata": {
|
|
23
|
+
"id": "/here/goes/your/serviceUrl/Resumes(2)",
|
|
24
|
+
"type": "NavigationModel.Resume",
|
|
25
|
+
"uri": "/here/goes/your/serviceUrl/Resumes(2)"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"ResumeID": 3,
|
|
30
|
+
"Information": "Information of Janet Leverling",
|
|
31
|
+
"Projects": "Projects of Janet Leverling",
|
|
32
|
+
"Hobbies": "Hobbies of Janet Leverling",
|
|
33
|
+
"Notes": "Notes of Janet Leverling",
|
|
34
|
+
"__metadata": {
|
|
35
|
+
"id": "/here/goes/your/serviceUrl/Resumes(3)",
|
|
36
|
+
"type": "NavigationModel.Resume",
|
|
37
|
+
"uri": "/here/goes/your/serviceUrl/Resumes(3)"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"ResumeID": 4,
|
|
42
|
+
"Information": "Information of Margaret Peacock",
|
|
43
|
+
"Projects": "Projects of Margaret Peacock",
|
|
44
|
+
"Hobbies": "Hobbies of Margaret Peacock",
|
|
45
|
+
"Notes": "Notes of Margaret Peacock",
|
|
46
|
+
"__metadata": {
|
|
47
|
+
"id": "/here/goes/your/serviceUrl/Resumes(4)",
|
|
48
|
+
"type": "NavigationModel.Resume",
|
|
49
|
+
"uri": "/here/goes/your/serviceUrl/Resumes(4)"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"ResumeID": 5,
|
|
54
|
+
"Information": "Information of Steven Buchanan",
|
|
55
|
+
"Projects": "Projects of Steven Buchanan",
|
|
56
|
+
"Hobbies": "Hobbies of Steven Buchanan",
|
|
57
|
+
"Notes": "Notes of Steven Buchanan",
|
|
58
|
+
"__metadata": {
|
|
59
|
+
"id": "/here/goes/your/serviceUrl/Resumes(5)",
|
|
60
|
+
"type": "NavigationModel.Resume",
|
|
61
|
+
"uri": "/here/goes/your/serviceUrl/Resumes(5)"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"ResumeID": 6,
|
|
66
|
+
"Information": "Information of Michael Suyama",
|
|
67
|
+
"Projects": "Projects of Michael Suyama",
|
|
68
|
+
"Hobbies": "Hobbies of Michael Suyama",
|
|
69
|
+
"Notes": "Notes of Michael Suyama",
|
|
70
|
+
"__metadata": {
|
|
71
|
+
"id": "/here/goes/your/serviceUrl/Resumes(6)",
|
|
72
|
+
"type": "NavigationModel.Resume",
|
|
73
|
+
"uri": "/here/goes/your/serviceUrl/Resumes(6)"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"ResumeID": 7,
|
|
78
|
+
"Information": "Information of Robert King",
|
|
79
|
+
"Projects": "Projects of Robert King",
|
|
80
|
+
"Hobbies": "Hobbies of Robert King",
|
|
81
|
+
"Notes": "Notes of Robert King",
|
|
82
|
+
"__metadata": {
|
|
83
|
+
"id": "/here/goes/your/serviceUrl/Resumes(7)",
|
|
84
|
+
"type": "NavigationModel.Resume",
|
|
85
|
+
"uri": "/here/goes/your/serviceUrl/Resumes(7)"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"ResumeID": 8,
|
|
90
|
+
"Information": "Information of Laura Callahan",
|
|
91
|
+
"Projects": "Projects of Laura Callahan",
|
|
92
|
+
"Hobbies": "Hobbies of Laura Callahan",
|
|
93
|
+
"Notes": "Notes of Laura Callahan",
|
|
94
|
+
"__metadata": {
|
|
95
|
+
"id": "/here/goes/your/serviceUrl/Resumes(8)",
|
|
96
|
+
"type": "NavigationModel.Resume",
|
|
97
|
+
"uri": "/here/goes/your/serviceUrl/Resumes(8)"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"ResumeID": 9,
|
|
102
|
+
"Information": "Information of Anne Dodsworth",
|
|
103
|
+
"Projects": "Projects of Anne Dodsworth",
|
|
104
|
+
"Hobbies": "Hobbies of Anne Dodsworth",
|
|
105
|
+
"Notes": "Notes of Anne Dodsworth",
|
|
106
|
+
"__metadata": {
|
|
107
|
+
"id": "/here/goes/your/serviceUrl/Resumes(9)",
|
|
108
|
+
"type": "NavigationModel.Resume",
|
|
109
|
+
"uri": "/here/goes/your/serviceUrl/Resumes(9)"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
]
|
|
11
|
-
}
|
|
2
|
+
"urlParams": {
|
|
3
|
+
"initialIntent": "home-view",
|
|
4
|
+
"queryParams": "?mockKey=testShowEmployeeList"
|
|
5
|
+
},
|
|
6
|
+
"pathToMockData": "../test/qmate/ui/testShowEmployeeList/data/mock",
|
|
7
|
+
"pathToMockDataRel": "test/qmate/ui/testShowEmployeeList/data/mock",
|
|
8
|
+
"entitiesToload": [""]
|
|
9
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{}
|
|
1
|
+
{}
|
|
@@ -13,7 +13,6 @@ const setup = require("../data/setup.json");
|
|
|
13
13
|
var data = require("../data/testShowEmployeeList.json");
|
|
14
14
|
|
|
15
15
|
describe("Test show employee list", function () {
|
|
16
|
-
|
|
17
16
|
/**
|
|
18
17
|
* Dynamic json data to be used for mocking the backend responses
|
|
19
18
|
*/
|
|
@@ -38,10 +37,10 @@ describe("Test show employee list", function () {
|
|
|
38
37
|
|
|
39
38
|
it("Step 04: Click 'Show Employee List'", async function () {
|
|
40
39
|
const selector = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
elementProperties: {
|
|
41
|
+
viewName: "sap.ui.demo.nav.view.Home",
|
|
42
|
+
metadata: "sap.m.Button",
|
|
43
|
+
id: "*employeeListBtn"
|
|
45
44
|
}
|
|
46
45
|
};
|
|
47
46
|
await ui5.userInteraction.click(selector);
|
|
@@ -49,10 +48,10 @@ describe("Test show employee list", function () {
|
|
|
49
48
|
|
|
50
49
|
it("Step 04: Check if the list is loaded", async function () {
|
|
51
50
|
const selector = {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
elementProperties: {
|
|
52
|
+
viewName: "sap.ui.demo.nav.view.employee.EmployeeList",
|
|
53
|
+
metadata: "sap.m.StandardListItem",
|
|
54
|
+
bindingContextPath: "/Employees*1)"
|
|
56
55
|
}
|
|
57
56
|
};
|
|
58
57
|
await ui5.assertion.expectToBeVisible(selector);
|
|
@@ -60,10 +59,10 @@ describe("Test show employee list", function () {
|
|
|
60
59
|
|
|
61
60
|
it("Step 05: Click on the employee", async function () {
|
|
62
61
|
const selector = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
elementProperties: {
|
|
63
|
+
viewName: "sap.ui.demo.nav.view.employee.EmployeeList",
|
|
64
|
+
metadata: "sap.m.StandardListItem",
|
|
65
|
+
bindingContextPath: "/Employees*1)"
|
|
67
66
|
}
|
|
68
67
|
};
|
|
69
68
|
await ui5.userInteraction.click(selector);
|
|
@@ -80,9 +79,9 @@ describe("Test show employee list", function () {
|
|
|
80
79
|
|
|
81
80
|
it("Step 07: Click on 'Flip to Resume' link", async function () {
|
|
82
81
|
const selector = {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
elementProperties: {
|
|
83
|
+
viewName: "sap.ui.demo.nav.view.employee.Employee",
|
|
84
|
+
metadata: "sap.m.Link"
|
|
86
85
|
}
|
|
87
86
|
};
|
|
88
87
|
await ui5.userInteraction.click(selector);
|
|
@@ -90,10 +89,10 @@ describe("Test show employee list", function () {
|
|
|
90
89
|
|
|
91
90
|
it("Step 08: Expect Resume page appears", async function () {
|
|
92
91
|
const selector = {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
elementProperties: {
|
|
93
|
+
viewName: "sap.ui.demo.nav.view.employee.Resume",
|
|
94
|
+
metadata: "sap.m.Title",
|
|
95
|
+
id: "*employeeResumePage-title"
|
|
97
96
|
}
|
|
98
97
|
};
|
|
99
98
|
await ui5.assertion.expectToBeVisible(selector);
|
|
@@ -101,10 +100,10 @@ describe("Test show employee list", function () {
|
|
|
101
100
|
|
|
102
101
|
it("Step 09: Expect Resume Info have text", async function () {
|
|
103
102
|
const selector = {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
103
|
+
elementProperties: {
|
|
104
|
+
viewName: "sap.ui.demo.nav.view.employee.Resume",
|
|
105
|
+
text: "Information of Nancy Davolio tests",
|
|
106
|
+
metadata: "sap.m.Text"
|
|
108
107
|
}
|
|
109
108
|
};
|
|
110
109
|
await ui5.assertion.expectToBeVisible(selector);
|
|
@@ -114,5 +113,4 @@ describe("Test show employee list", function () {
|
|
|
114
113
|
// Register coverage if enabled otherwise will not
|
|
115
114
|
await mockHelper.takeCoverageSnapshot();
|
|
116
115
|
});
|
|
117
|
-
|
|
118
|
-
});
|
|
116
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
// Path to mockserver etc.
|
|
2
|
+
// Path to mockserver etc.
|
|
3
3
|
pathToMockServer: "sap/ui/demo/nav/localService/mockserver",
|
|
4
4
|
// Application namesaspace/path
|
|
5
5
|
applicationPath: "sap/ui/demo/nav/",
|
|
@@ -22,4 +22,4 @@ module.exports = {
|
|
|
22
22
|
httpMethod: {
|
|
23
23
|
get: "GET"
|
|
24
24
|
}
|
|
25
|
-
};
|
|
25
|
+
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
1
|
var constants = require("./constants.js");
|
|
3
2
|
module.exports = {
|
|
4
3
|
/**
|
|
5
4
|
* Initialize the mockserver by calling the mocksever.js file method init() and getMockServer()
|
|
6
|
-
* @param {String} appPath
|
|
7
|
-
* @param {String} mockDataPath
|
|
8
|
-
* @param {Number} delay
|
|
5
|
+
* @param {String} appPath
|
|
6
|
+
* @param {String} mockDataPath
|
|
7
|
+
* @param {Number} delay
|
|
9
8
|
*/
|
|
10
|
-
initMockServer: async function(appPath, mockDataPath, delay) {
|
|
9
|
+
initMockServer: async function (appPath, mockDataPath, delay) {
|
|
11
10
|
if (mockDataPath && appPath) {
|
|
12
11
|
// Prepare mockserver initialization parameters
|
|
13
12
|
var oMockServerOptions = {
|
|
@@ -20,4 +19,4 @@ module.exports = {
|
|
|
20
19
|
await ui5.mockserver.initMockServer(constants.pathToMockServer, oMockServerOptions);
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
|
-
};
|
|
22
|
+
};
|
|
@@ -2,7 +2,6 @@ var constants = require("./constants.js");
|
|
|
2
2
|
var mockDataMapper = require("./mockDataMapper.js");
|
|
3
3
|
|
|
4
4
|
module.exports = {
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* This function is used to convert a json message in stringify form so the messages can be passed in the addOrOverrideRequest method
|
|
8
7
|
* @param {String} msg The json message to be mocked (sap-message header)
|
|
@@ -53,22 +52,29 @@ module.exports = {
|
|
|
53
52
|
entitiesToload: startMockParams.entitiesToload,
|
|
54
53
|
delay: 1
|
|
55
54
|
};
|
|
56
|
-
await ui5.mockserver.interactWithMockServer(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
//
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
55
|
+
await ui5.mockserver.interactWithMockServer(
|
|
56
|
+
constants.pathToMockServer,
|
|
57
|
+
function (mockserver, mockServerOpts, done) {
|
|
58
|
+
if (!mockserver) throw new Error("Mockserver file not yet loaded or is missing");
|
|
59
|
+
//debugger;
|
|
60
|
+
mockserver
|
|
61
|
+
.init(mockServerOpts)
|
|
62
|
+
.catch(function (oError) {
|
|
63
|
+
// load MessageBox only when needed as it otherwise bypasses the preload of sap.m
|
|
64
|
+
// eslint-disable-next-line no-undef
|
|
65
|
+
sap.ui.require(["sap/m/MessageBox"], function (MessageBox) {
|
|
66
|
+
MessageBox.error(oError.message);
|
|
67
|
+
});
|
|
68
|
+
})
|
|
69
|
+
.finally(function () {
|
|
70
|
+
// initialize the embedded component on the HTML page
|
|
71
|
+
// eslint-disable-next-line no-undef
|
|
72
|
+
sap.ui.require(["sap/ui/core/ComponentSupport"]);
|
|
73
|
+
done();
|
|
74
|
+
});
|
|
75
|
+
},
|
|
76
|
+
oMockServerOptions
|
|
77
|
+
);
|
|
72
78
|
},
|
|
73
79
|
|
|
74
80
|
/**
|
|
@@ -98,14 +104,9 @@ module.exports = {
|
|
|
98
104
|
*/
|
|
99
105
|
getEmployeesCount: async function (nCount) {
|
|
100
106
|
// Add expand response
|
|
101
|
-
await ui5.mockserver.addOrOverrideRequest(
|
|
102
|
-
constants.httpMethod.get,
|
|
103
|
-
constants.pathToMockServer,
|
|
104
|
-
constants.regexRequests.getEmployeesCount,
|
|
105
|
-
nCount,
|
|
106
|
-
200, true);
|
|
107
|
+
await ui5.mockserver.addOrOverrideRequest(constants.httpMethod.get, constants.pathToMockServer, constants.regexRequests.getEmployeesCount, nCount, 200, true);
|
|
107
108
|
|
|
108
|
-
//Register new response [start mockserver is required]
|
|
109
|
+
//Register new response [start mockserver is required]
|
|
109
110
|
await ui5.mockserver.startMockServer(constants.pathToMockServer);
|
|
110
111
|
},
|
|
111
112
|
|
|
@@ -120,30 +121,21 @@ module.exports = {
|
|
|
120
121
|
expandedEntity = await ui5.mockserver.loadMockDataFile(expandedEntityOrPath);
|
|
121
122
|
}
|
|
122
123
|
// Add expand response specific
|
|
123
|
-
await ui5.mockserver.addNewRequest(
|
|
124
|
-
constants.httpMethod.get,
|
|
125
|
-
constants.pathToMockServer,
|
|
126
|
-
constants.regexRequests.getEmployees,
|
|
127
|
-
expandedEntity,
|
|
128
|
-
200, false);
|
|
124
|
+
await ui5.mockserver.addNewRequest(constants.httpMethod.get, constants.pathToMockServer, constants.regexRequests.getEmployees, expandedEntity, 200, false);
|
|
129
125
|
|
|
130
|
-
//Register new response [start mockserver is required]
|
|
126
|
+
//Register new response [start mockserver is required]
|
|
131
127
|
await ui5.mockserver.startMockServer(constants.pathToMockServer);
|
|
132
128
|
},
|
|
133
129
|
|
|
134
|
-
|
|
135
130
|
setResumes: async function (expandedEntityOrPath) {
|
|
136
131
|
var expandedEntity = expandedEntityOrPath;
|
|
137
132
|
if (typeof expandedEntityOrPath === "string") {
|
|
138
133
|
expandedEntity = await ui5.mockserver.loadMockDataFile(expandedEntityOrPath);
|
|
139
134
|
}
|
|
140
135
|
// Add expand response specific
|
|
141
|
-
await ui5.mockserver.setEntitySetData(
|
|
142
|
-
constants.pathToMockServer,
|
|
143
|
-
constants.entitySet.resumes,
|
|
144
|
-
expandedEntity);
|
|
136
|
+
await ui5.mockserver.setEntitySetData(constants.pathToMockServer, constants.entitySet.resumes, expandedEntity);
|
|
145
137
|
|
|
146
|
-
//Register new response [start mockserver is required]
|
|
138
|
+
//Register new response [start mockserver is required]
|
|
147
139
|
await ui5.mockserver.startMockServer(constants.pathToMockServer);
|
|
148
140
|
},
|
|
149
141
|
|
|
@@ -153,12 +145,9 @@ module.exports = {
|
|
|
153
145
|
expandedEntity = await ui5.mockserver.loadMockDataFile(expandedEntityOrPath);
|
|
154
146
|
}
|
|
155
147
|
// Add expand response specific
|
|
156
|
-
await ui5.mockserver.setEntitySetData(
|
|
157
|
-
constants.pathToMockServer,
|
|
158
|
-
constants.entitySet.employees,
|
|
159
|
-
expandedEntity);
|
|
148
|
+
await ui5.mockserver.setEntitySetData(constants.pathToMockServer, constants.entitySet.employees, expandedEntity);
|
|
160
149
|
|
|
161
|
-
//Register new response [start mockserver is required]
|
|
150
|
+
//Register new response [start mockserver is required]
|
|
162
151
|
await ui5.mockserver.startMockServer(constants.pathToMockServer);
|
|
163
152
|
},
|
|
164
153
|
|
|
@@ -173,14 +162,9 @@ module.exports = {
|
|
|
173
162
|
expandedEntity = await ui5.mockserver.loadMockDataFile(expandedEntityOrPath);
|
|
174
163
|
}
|
|
175
164
|
// Add expand response specific
|
|
176
|
-
await ui5.mockserver.addNewRequest(
|
|
177
|
-
constants.httpMethod.get,
|
|
178
|
-
constants.pathToMockServer,
|
|
179
|
-
constants.regexRequests.getResumes,
|
|
180
|
-
expandedEntity,
|
|
181
|
-
200, false);
|
|
165
|
+
await ui5.mockserver.addNewRequest(constants.httpMethod.get, constants.pathToMockServer, constants.regexRequests.getResumes, expandedEntity, 200, false);
|
|
182
166
|
|
|
183
|
-
//Register new response [start mockserver is required]
|
|
167
|
+
//Register new response [start mockserver is required]
|
|
184
168
|
await ui5.mockserver.startMockServer(constants.pathToMockServer);
|
|
185
169
|
},
|
|
186
170
|
|
|
@@ -200,11 +184,12 @@ module.exports = {
|
|
|
200
184
|
filterData.Information = filterData.Information + " tests";
|
|
201
185
|
}
|
|
202
186
|
}
|
|
203
|
-
},
|
|
187
|
+
},
|
|
188
|
+
oParams
|
|
204
189
|
);
|
|
205
190
|
|
|
206
191
|
const dataResums = await ui5.mockserver.getEntitySetData(constants.pathToMockServer, constants.entitySet.resumes);
|
|
207
|
-
//Register new response [start mockserver is required]
|
|
192
|
+
//Register new response [start mockserver is required]
|
|
208
193
|
await ui5.mockserver.startMockServer(constants.pathToMockServer);
|
|
209
194
|
return dataResums[0].Information;
|
|
210
195
|
},
|
|
@@ -219,4 +204,4 @@ module.exports = {
|
|
|
219
204
|
await util.browser.sleepAndCollectCoverage(2000);
|
|
220
205
|
}
|
|
221
206
|
}
|
|
222
|
-
};
|
|
207
|
+
};
|
|
@@ -1,38 +1,35 @@
|
|
|
1
|
-
<!
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<html>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
<head>
|
|
4
|
+
<title>Unit tests for Create Supplier Invoice</title>
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta charset="UTF-8" />
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
<script
|
|
9
|
+
id="sap-ui-bootstrap"
|
|
10
|
+
src="https://ui5.sap.com/1.96.27/resources/sap-ui-core.js"
|
|
11
|
+
data-sap-ui-language="en"
|
|
12
|
+
data-sap-ui-resourceroots='{
|
|
12
13
|
"sap.ui.demo.nav": "../../",
|
|
13
14
|
"test.unit": "./"
|
|
14
|
-
}'
|
|
15
|
-
|
|
15
|
+
}'
|
|
16
|
+
></script>
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
<script>
|
|
19
|
+
jQuery.sap.require("sap.ui.qunit.qunit-css");
|
|
20
|
+
jQuery.sap.require("sap.ui.thirdparty.qunit");
|
|
21
|
+
jQuery.sap.require("sap.ui.qunit.qunit-junit");
|
|
22
|
+
jQuery.sap.require("sap.ui.qunit.qunit-coverage");
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
QUnit.config.autostart = false;
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<div id="qunit"></div>
|
|
36
|
-
<div id="qunit-fixture"></div>
|
|
37
|
-
</body>
|
|
38
|
-
</html>
|
|
26
|
+
sap.ui.require(["test/unit/allTests"], function () {
|
|
27
|
+
QUnit.start();
|
|
28
|
+
});
|
|
29
|
+
</script>
|
|
30
|
+
</head>
|
|
31
|
+
<body>
|
|
32
|
+
<div id="qunit"></div>
|
|
33
|
+
<div id="qunit-fixture"></div>
|
|
34
|
+
</body>
|
|
35
|
+
</html>
|