@wopee-io/wopee.wdio 4.0.0 → 4.7.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/build/adapter/fullPageScreenshotAdapter/default.d.ts +4 -0
- package/build/adapter/fullPageScreenshotAdapter/default.d.ts.map +1 -0
- package/build/adapter/fullPageScreenshotAdapter/default.js +13 -0
- package/build/adapter/fullPageScreenshotAdapter/default.js.map +1 -0
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.d.ts +1 -9
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.d.ts.map +1 -1
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.interface.d.ts +24 -0
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.interface.d.ts.map +1 -0
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.interface.js +2 -0
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.interface.js.map +1 -0
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.js +8 -18
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.js.map +1 -1
- package/build/adapter/fullPageScreenshotAdapter/swipe.d.ts +4 -0
- package/build/adapter/fullPageScreenshotAdapter/swipe.d.ts.map +1 -0
- package/build/adapter/fullPageScreenshotAdapter/swipe.js +19 -0
- package/build/adapter/fullPageScreenshotAdapter/swipe.js.map +1 -0
- package/build/core/domain/valueObjects/track.interface.d.ts +7 -3
- package/build/core/domain/valueObjects/track.interface.d.ts.map +1 -1
- package/build/core/domain/valueObjects/track.interface.js.map +1 -1
- package/build/{port/clientSideOperationPort → core/ports}/clientSideOperationPort.d.ts +1 -1
- package/build/core/ports/clientSideOperationPort.d.ts.map +1 -0
- package/build/core/ports/clientSideOperationPort.js.map +1 -0
- package/build/domain/model/config.interface.d.ts +2 -2
- package/build/domain/model/config.interface.d.ts.map +1 -1
- package/build/domain/model/config.interface.js.map +1 -1
- package/build/domain/model/instances.interface.d.ts +2 -2
- package/build/domain/model/instances.interface.d.ts.map +1 -1
- package/build/domain/model/instances.interface.js.map +1 -1
- package/build/domain/model/screenshotOutput.interface.d.ts +2 -2
- package/build/domain/model/screenshotOutput.interface.d.ts.map +1 -1
- package/build/domain/model/screenshotOutput.interface.js.map +1 -1
- package/build/domain/model/service.interface.d.ts +2 -2
- package/build/domain/model/service.interface.d.ts.map +1 -1
- package/build/domain/model/service.interface.js.map +1 -1
- package/build/domain/service/afterScreenshot.js.map +1 -1
- package/build/domain/service/wopeeService.d.ts +5 -5
- package/build/domain/service/wopeeService.d.ts.map +1 -1
- package/build/domain/service/wopeeService.js +17 -14
- package/build/domain/service/wopeeService.js.map +1 -1
- package/build/index.d.ts +3 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3 -0
- package/build/index.js.map +1 -1
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.js.map +1 -0
- package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.d.ts +1 -1
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.js.map +1 -0
- package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.d.ts +1 -1
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.js.map +1 -0
- package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.d.ts +1 -1
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.js.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.js.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.js.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.js.map +1 -0
- package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.d.ts +4 -4
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js.map +1 -0
- package/build/{adapter/driven → infrastructure/adapters}/wdioLoggerAdapter/wdioLoggerAdapter.d.ts +1 -1
- package/build/infrastructure/adapters/wdioLoggerAdapter/wdioLoggerAdapter.d.ts.map +1 -0
- package/build/{adapter → infrastructure/adapters}/wdioLoggerAdapter/wdioLoggerAdapter.js +1 -1
- package/build/infrastructure/adapters/wdioLoggerAdapter/wdioLoggerAdapter.js.map +1 -0
- package/build/utils/versionMetadata.js +2 -2
- package/docs/mobile_native.md +14 -1
- package/node_modules/@autonomous-testing/sdk/.commit.hbs +71 -0
- package/node_modules/@autonomous-testing/sdk/.github/workflows/ci_cd.yaml +12 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.js +10 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.d.ts +32 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.js +16 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.d.ts +11 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.js +9 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.js +16 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.js +10 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.d.ts +24 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.js +20 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.js +10 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/index.d.ts +1 -1
- package/node_modules/@autonomous-testing/sdk/build/core/domain/index.js +1 -1
- package/node_modules/@autonomous-testing/sdk/build/core/index.d.ts +2 -2
- package/node_modules/@autonomous-testing/sdk/build/core/index.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/core/ports/api.d.ts +16 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/api.js +7 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/index.d.ts +3 -3
- package/node_modules/@autonomous-testing/sdk/build/core/ports/index.js +5 -5
- package/node_modules/@autonomous-testing/sdk/build/index.d.ts +4 -3
- package/node_modules/@autonomous-testing/sdk/build/index.js +5 -3
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.d.ts +19 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js +123 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.d.ts +9 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.js +144 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.js +8 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.d.ts +235 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.js +82 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/mutations.d.ts +5 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/{apolloTrackAdapter/apolloTrackAdapterQueries.js → apolloAdapter/mutations.js} +19 -36
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/consoleLogger.d.ts +1 -1
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.d.ts +1 -1
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.d.ts +3 -3
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.js +3 -3
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.d.ts +1 -1
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/noLogger.d.ts +1 -1
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.d.ts +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.js +12 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloService.interface.d.ts +7 -0
- package/node_modules/@autonomous-testing/sdk/build/{core/domain/valueObjects/index.js → infrastructure/services/apolloAdapterService/apolloService.interface.js} +1 -1
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.d.ts +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.d.ts +16 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.js +12 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.d.ts +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.js +17 -9
- package/node_modules/@autonomous-testing/sdk/build/shared/index.d.ts +2 -2
- package/node_modules/@autonomous-testing/sdk/build/shared/index.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.d.ts +3 -2
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.js +4 -3
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/index.js +7 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/mergeDicts.d.ts +17 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/mergeDicts.js +29 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.d.ts +1 -1
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.js +2 -2
- package/node_modules/@autonomous-testing/sdk/package.json +5 -8
- package/node_modules/@autonomous-testing/sdk/release.config.mjs +55 -0
- package/node_modules/axios/CHANGELOG.md +941 -950
- package/node_modules/axios/LICENSE +16 -4
- package/node_modules/axios/README.md +124 -828
- package/node_modules/axios/SECURITY.md +3 -4
- package/node_modules/axios/UPGRADE_GUIDE.md +168 -0
- package/node_modules/axios/dist/axios.js +2343 -3920
- package/node_modules/axios/dist/axios.map +1 -0
- package/node_modules/axios/dist/axios.min.js +3 -2
- package/node_modules/axios/dist/axios.min.map +1 -0
- package/node_modules/axios/index.d.ts +83 -391
- package/node_modules/axios/index.js +1 -43
- package/node_modules/axios/lib/adapters/http.js +219 -480
- package/node_modules/axios/lib/adapters/xhr.js +93 -61
- package/node_modules/axios/lib/axios.js +22 -47
- package/node_modules/axios/lib/cancel/CancelToken.js +89 -91
- package/node_modules/axios/lib/cancel/CanceledError.js +6 -9
- package/node_modules/axios/lib/cancel/isCancel.js +2 -2
- package/node_modules/axios/lib/core/Axios.js +98 -166
- package/node_modules/axios/lib/core/AxiosError.js +9 -23
- package/node_modules/axios/lib/core/InterceptorManager.js +45 -62
- package/node_modules/axios/lib/core/buildFullPath.js +4 -5
- package/node_modules/axios/lib/core/dispatchRequest.js +32 -26
- package/node_modules/axios/lib/core/mergeConfig.js +53 -59
- package/node_modules/axios/lib/core/settle.js +4 -6
- package/node_modules/axios/lib/core/transformData.js +9 -15
- package/node_modules/axios/lib/defaults/env/FormData.js +2 -0
- package/node_modules/axios/lib/defaults/index.js +57 -72
- package/node_modules/axios/lib/defaults/transitional.js +1 -1
- package/node_modules/axios/lib/env/data.js +3 -1
- package/node_modules/axios/lib/helpers/bind.js +7 -3
- package/node_modules/axios/lib/helpers/buildURL.js +33 -26
- package/node_modules/axios/lib/helpers/combineURLs.js +3 -4
- package/node_modules/axios/lib/helpers/cookies.js +50 -39
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +2 -4
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +2 -3
- package/node_modules/axios/lib/helpers/isAxiosError.js +3 -4
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +46 -45
- package/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
- package/node_modules/axios/lib/helpers/null.js +1 -1
- package/node_modules/axios/lib/helpers/parseHeaders.js +22 -24
- package/node_modules/axios/lib/helpers/parseProtocol.js +3 -3
- package/node_modules/axios/lib/helpers/spread.js +2 -3
- package/node_modules/axios/lib/helpers/toFormData.js +36 -183
- package/node_modules/axios/lib/helpers/validator.js +15 -20
- package/node_modules/axios/lib/utils.js +187 -445
- package/node_modules/axios/package.json +33 -165
- package/node_modules/axios/tsconfig.json +14 -0
- package/node_modules/axios/tslint.json +6 -0
- package/node_modules/process/.eslintrc +21 -0
- package/node_modules/process/LICENSE +22 -0
- package/node_modules/process/README.md +26 -0
- package/node_modules/process/browser.js +184 -0
- package/node_modules/process/index.js +2 -0
- package/node_modules/process/package.json +27 -0
- package/node_modules/process/test.js +199 -0
- package/package.json +2 -2
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.js.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.js.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.js.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.js.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.js.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.js.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.js.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js.map +0 -1
- package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.d.ts.map +0 -1
- package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.js +0 -20
- package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.js.map +0 -1
- package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.d.ts +0 -10
- package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.d.ts.map +0 -1
- package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.js.map +0 -1
- package/build/port/clientSideOperationPort/clientSideOperationPort.d.ts.map +0 -1
- package/build/port/clientSideOperationPort/clientSideOperationPort.js.map +0 -1
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/imageTrackingResult.interface.d.ts +0 -3
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/imageTrackingResult.interface.js +0 -3
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/index.d.ts +0 -4
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/trackPayload.interface.d.ts +0 -3
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/trackPayload.interface.js +0 -3
- package/node_modules/@autonomous-testing/sdk/build/core/ports/imageTracker.d.ts +0 -6
- package/node_modules/@autonomous-testing/sdk/build/core/ports/imageTracker.js +0 -7
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.d.ts +0 -39
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.default.d.ts +0 -16
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.default.js +0 -31
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.interface.d.ts +0 -93
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.interface.js +0 -14
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.js +0 -153
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterQueries.d.ts +0 -5
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterUtils.d.ts +0 -9
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterUtils.js +0 -26
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/index.d.ts +0 -7
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/index.js +0 -8
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.d.ts +0 -4
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.interface.d.ts +0 -51
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.interface.js +0 -24
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.js +0 -13
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/index.d.ts +0 -4
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/index.js +0 -6
- package/node_modules/axios/MIGRATION_GUIDE.md +0 -3
- package/node_modules/axios/dist/axios.js.map +0 -1
- package/node_modules/axios/dist/axios.min.js.map +0 -1
- package/node_modules/axios/dist/browser/axios.cjs +0 -3638
- package/node_modules/axios/dist/browser/axios.cjs.map +0 -1
- package/node_modules/axios/dist/esm/axios.js +0 -3661
- package/node_modules/axios/dist/esm/axios.js.map +0 -1
- package/node_modules/axios/dist/esm/axios.min.js +0 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +0 -1
- package/node_modules/axios/dist/node/axios.cjs +0 -4705
- package/node_modules/axios/dist/node/axios.cjs.map +0 -1
- package/node_modules/axios/index.d.cts +0 -545
- package/node_modules/axios/lib/adapters/adapters.js +0 -79
- package/node_modules/axios/lib/adapters/fetch.js +0 -227
- package/node_modules/axios/lib/core/AxiosHeaders.js +0 -302
- package/node_modules/axios/lib/env/classes/FormData.js +0 -2
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -192
- package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -58
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -71
- package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -28
- package/node_modules/axios/lib/helpers/callbackify.js +0 -16
- package/node_modules/axios/lib/helpers/composeSignals.js +0 -46
- package/node_modules/axios/lib/helpers/formDataToJSON.js +0 -95
- package/node_modules/axios/lib/helpers/formDataToStream.js +0 -111
- package/node_modules/axios/lib/helpers/fromDataURI.js +0 -53
- package/node_modules/axios/lib/helpers/progressEventReducer.js +0 -32
- package/node_modules/axios/lib/helpers/readBlob.js +0 -15
- package/node_modules/axios/lib/helpers/resolveConfig.js +0 -57
- package/node_modules/axios/lib/helpers/speedometer.js +0 -55
- package/node_modules/axios/lib/helpers/throttle.js +0 -35
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -18
- package/node_modules/axios/lib/helpers/trackStream.js +0 -55
- package/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
- package/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
- package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
- package/node_modules/axios/lib/platform/browser/index.js +0 -13
- package/node_modules/axios/lib/platform/common/utils.js +0 -50
- package/node_modules/axios/lib/platform/index.js +0 -7
- package/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
- package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
- package/node_modules/axios/lib/platform/node/index.js +0 -12
- package/node_modules/proxy-from-env/.eslintrc +0 -29
- package/node_modules/proxy-from-env/.travis.yml +0 -10
- package/node_modules/proxy-from-env/LICENSE +0 -20
- package/node_modules/proxy-from-env/README.md +0 -131
- package/node_modules/proxy-from-env/index.js +0 -108
- package/node_modules/proxy-from-env/package.json +0 -34
- package/node_modules/proxy-from-env/test.js +0 -483
- /package/build/{port/clientSideOperationPort → core/ports}/clientSideOperationPort.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.d.ts +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.d.ts +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.d.ts +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.d.ts +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js +0 -0
- /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/HISTORY.md +0 -0
- /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/LICENSE +0 -0
- /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/README.md +0 -0
- /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/db.json +0 -0
- /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/index.js +0 -0
- /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/package.json +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wopeeService.js","sourceRoot":"","sources":["../../../lib/domain/service/wopeeService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"wopeeService.js","sourceRoot":"","sources":["../../../lib/domain/service/wopeeService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AAGzF,OAAO,EAAE,oCAAoC,EAAE,MAAM,4GAA4G,CAAC;AAClK,OAAO,EAAE,iBAAiB,EAAE,MAAM,sEAAsE,CAAC;AAEzG,OAAO,EAKL,kCAAkC,EAElC,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,OAAO,YAAY;IACf,OAAO,GAAwB,IAAI,CAAC;IAC5C,oBAAoB,CAAgB;IACpC,gBAAgB,CAA0B;IAE1C,YAAY,OAA4B;QACtC,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAiB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC;QAErD,IAAI,CAAC,gBAAgB,GAAG,IAAI,oCAAoC,EAAE,CAAC;QAEnE,IAAI,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,2BAA2B,EAAE,CAAC;YAClE,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,yBAAyB,EAAE,CAAC;QAC/D,CAAC;IACH,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED;;;OAGG;IACK,yBAAyB;QAC/B,MAAM,mBAAmB,GAAwB;YAC/C,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,MAAM;YAChD,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,MAAM;YAChD,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,UAAU;YACzD,gBAAgB,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,gBAAgB;YACrE,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,WAAW;YAC1D,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO;YACnD,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO;YACnD,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,MAAM;YACjD,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE;YACzC,yBAAyB,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,yBAAyB;YACtF,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,QAAQ;YACrD,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,UAAU;SAC1D,CAAC;QAEF,MAAM,MAAM,GAAG,IAAI,iBAAiB,EAAE,CAAC;QACvC,MAAM,oBAAoB,GAAyB;YACjD,mBAAmB,EAAE,mBAAmB;YACxC,aAAa,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE;SAC1C,CAAC;QACF,OAAO,wBAAwB,CAAC,oBAAoB,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CAAC,SAAiB;QAChC,IAAI,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,2BAA2B,EAAE,CAAC;YAClE,MAAM,IAAI,CAAC,oBAAoB,CAAC,sBAAsB,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;QACxE,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,aAAa,CAAC,YAAoB;QACtC,IAAI,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,2BAA2B,EAAE,CAAC;YAClE,MAAM,IAAI,CAAC,oBAAoB,CAAC,yBAAyB,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC;QAC9E,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY;QAChB,IAAI,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,2BAA2B,EAAE,CAAC;YAClE,MAAM,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,EAAE,CAAC;QAC5D,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,KAAK,CAAC,YAA0B;QACpC,IAAI,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,2BAA2B,EAAE,CAAC;YAClE,MAAM,OAAO,GAAiC,kCAAkC,CAAC,KAAK,CAAC;gBACrF,GAAG,YAAY;aAChB,CAAC,CAAC;YACH,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;QACxE,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF","sourcesContent":["import { WdioConfigAdapter } from '../../adapter/wdioConfigAdapter/wdioConfigAdapter.js';\nimport { TrackOptions } from '../../core/domain/valueObjects/track.interface.js';\nimport { ClientSideOperationPort } from '../../core/ports/clientSideOperationPort.js';\nimport { DesktopBrowserClientOperationAdapter } from '../../infrastructure/adapters/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js';\nimport { WdioLoggerAdapter } from '../../infrastructure/adapters/wdioLoggerAdapter/wdioLoggerAdapter.js';\nimport { WopeeServiceOptions } from '../model/config.interface.js';\nimport {\n ApolloAdapter,\n ApolloAdapterConfig,\n ApolloAdapterOptions,\n CreateIntegrationStepPayload,\n CreateIntegrationStepPayloadSchema,\n IntegrationStep,\n createApolloTrackAdapter,\n} from '@autonomous-testing/sdk';\n\nexport class WopeeService {\n private _config: WopeeServiceOptions = null;\n screenshotValidation: ApolloAdapter;\n clientSideScript: ClientSideOperationPort;\n\n constructor(options: WopeeServiceOptions) {\n this._config = new WdioConfigAdapter(options).config;\n\n this.clientSideScript = new DesktopBrowserClientOperationAdapter();\n\n if (this._config.screenshotValidation.screenshotValidationEnabled) {\n this.screenshotValidation = this._createApolloTrackAdapter();\n }\n }\n\n get config(): WopeeServiceOptions {\n return this._config;\n }\n\n /**\n * Creates an ApolloTrackAdapter for tracking and validating screenshots.\n * @returns {ApolloTrackAdapter} The initialized tracking adapter.\n */\n private _createApolloTrackAdapter(): ApolloAdapter {\n const apolloAdapterConfig: ApolloAdapterConfig = {\n apiKey: this._config.screenshotValidation.apiKey,\n apiUrl: this._config.screenshotValidation.apiUrl,\n branchName: this._config.screenshotValidation?.branchName,\n enableSoftAssert: this._config.screenshotValidation?.enableSoftAssert,\n projectUuid: this._config.screenshotValidation.projectUuid,\n browser: this._config.screenshotValidation?.browser,\n comment: this._config.screenshotValidation?.comment,\n device: this._config.screenshotValidation?.device,\n os: this._config.screenshotValidation?.os,\n pixelToPixelDiffTolerance: this._config.screenshotValidation.pixelToPixelDiffTolerance,\n viewport: this._config.screenshotValidation?.viewport,\n customTags: this._config.screenshotValidation?.customTags,\n };\n\n const logger = new WdioLoggerAdapter();\n const apolloAdapterOptions: ApolloAdapterOptions = {\n apolloAdapterConfig: apolloAdapterConfig,\n loggerOptions: { loggerInstance: logger },\n };\n return createApolloTrackAdapter(apolloAdapterOptions);\n }\n\n /**\n * Starts the screenshot validation process, create/connect to Suite.\n */\n async startSuite(suiteName: string): Promise<void> {\n if (this._config.screenshotValidation.screenshotValidationEnabled) {\n await this.screenshotValidation.createIntegrationSuite({ suiteName });\n }\n }\n\n /**\n * Starts the screenshot validation process, create/connect to Scenario.\n */\n async startScenario(scenarioName: string): Promise<void> {\n if (this._config.screenshotValidation.screenshotValidationEnabled) {\n await this.screenshotValidation.createIntegrationScenario({ scenarioName });\n }\n }\n\n /**\n * Stops the scenario.\n */\n async stopScenario(): Promise<void> {\n if (this._config.screenshotValidation.screenshotValidationEnabled) {\n await this.screenshotValidation.stopIntegrationScenario();\n }\n }\n\n /**\n * Submits a specific image for tracking and validation.\n * @param name The name identifier for the image.\n * @param imageBase64 The image content in Base64 format.\n * @param trackImageOptions Optional additional parameters for image tracking.\n * @returns {IntegrationStep} The result of the tracking operation.\n */\n async track(trackOptions: TrackOptions): Promise<IntegrationStep> {\n if (this._config.screenshotValidation.screenshotValidationEnabled) {\n const payload: CreateIntegrationStepPayload = CreateIntegrationStepPayloadSchema.parse({\n ...trackOptions,\n });\n return await this.screenshotValidation.createIntegrationStep(payload);\n }\n return null;\n }\n}\n"]}
|
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { TrackElementOptions, TrackFullPageMobileNativeOptions, TrackFullPageOptions, TrackImageOptions, TrackViewportOptions } from './core/domain/valueObjects/track.interface.js';
|
|
2
2
|
import { ScreenshotOutput } from './desktopBrowser/index.js';
|
|
3
3
|
import WdioImageComparisonService from './domain/service/webdriverService.js';
|
|
4
|
+
import { WdioLoggerAdapter } from './infrastructure/adapters/wdioLoggerAdapter/wdioLoggerAdapter.js';
|
|
5
|
+
import { ApolloAdapter, ApolloAdapterConfig, ApolloAdapterConfigSchema, ApolloAdapterOptions, CreateIntegrationScenarioPayload, CreateIntegrationScenarioPayloadSchema, CreateIntegrationStepPayload, CreateIntegrationStepPayloadSchema, CreateIntegrationSuitePayload, CreateIntegrationSuitePayloadSchema, IntegrationScenario, IntegrationStep, IntegrationSuite, createApolloTrackAdapter } from '@autonomous-testing/sdk';
|
|
4
6
|
/**
|
|
5
7
|
* Extends the WebdriverIO namespace with additional methods for tracking images.
|
|
6
8
|
*/
|
|
@@ -56,4 +58,5 @@ declare global {
|
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
export default WdioImageComparisonService;
|
|
61
|
+
export { CreateIntegrationScenarioPayload, CreateIntegrationScenarioPayloadSchema, CreateIntegrationStepPayload, CreateIntegrationStepPayloadSchema, CreateIntegrationSuitePayload, CreateIntegrationSuitePayloadSchema, IntegrationScenario, IntegrationStep, IntegrationSuite, createApolloTrackAdapter, ApolloAdapterConfig, ApolloAdapter, ApolloAdapterConfigSchema, WdioLoggerAdapter, ApolloAdapterOptions, };
|
|
59
62
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gCAAgC,EAChC,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,0BAA0B,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gCAAgC,EAChC,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,0BAA0B,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kEAAkE,CAAC;AACrG,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,gCAAgC,EAChC,sCAAsC,EACtC,4BAA4B,EAC5B,kCAAkC,EAClC,6BAA6B,EAC7B,mCAAmC,EACnC,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,WAAW,CAAC;QACpB,UAAU,OAAO;YACf,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;YAC7C,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;YACnD,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;YAE9B;;;;;eAKG;YACH,YAAY,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;YAElF;;;;;eAKG;YACH,WAAW,CAAC,wBAAwB,EAAE,oBAAoB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;YAEvF;;;;;eAKG;YACH,mBAAmB,CAAC,0BAA0B,EAAE,oBAAoB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;YAEjG;;;;;eAKG;YACH,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;YAE5E;;;;;eAKG;YACH,yBAAyB,CACvB,gCAAgC,EAAE,gCAAgC,GACjE,OAAO,CAAC,gBAAgB,CAAC,CAAC;SAC9B;QAED,UAAU,OAAO;SAAG;QAEpB,UAAU,YAAY;YACpB,kBAAkB,CAAC,EAAE;gBACnB,OAAO,CAAC,EAAE,MAAM,CAAC;aAClB,CAAC;SACH;KACF;CACF;AAGD,eAAe,0BAA0B,CAAC;AAE1C,OAAO,EACL,gCAAgC,EAChC,sCAAsC,EACtC,4BAA4B,EAC5B,kCAAkC,EAClC,6BAA6B,EAC7B,mCAAmC,EACnC,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACxB,mBAAmB,EACnB,aAAa,EACb,yBAAyB,EACzB,iBAAiB,EACjB,oBAAoB,GACrB,CAAC"}
|
package/build/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import WdioImageComparisonService from './domain/service/webdriverService.js';
|
|
2
|
+
import { WdioLoggerAdapter } from './infrastructure/adapters/wdioLoggerAdapter/wdioLoggerAdapter.js';
|
|
3
|
+
import { ApolloAdapter, ApolloAdapterConfigSchema, CreateIntegrationScenarioPayloadSchema, CreateIntegrationStepPayloadSchema, CreateIntegrationSuitePayloadSchema, createApolloTrackAdapter, } from '@autonomous-testing/sdk';
|
|
2
4
|
// Export the extended WebdriverIO namespace with added image tracking methods
|
|
3
5
|
export default WdioImageComparisonService;
|
|
6
|
+
export { CreateIntegrationScenarioPayloadSchema, CreateIntegrationStepPayloadSchema, CreateIntegrationSuitePayloadSchema, createApolloTrackAdapter, ApolloAdapter, ApolloAdapterConfigSchema, WdioLoggerAdapter, };
|
|
4
7
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAQA,OAAO,0BAA0B,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAQA,OAAO,0BAA0B,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kEAAkE,CAAC;AACrG,OAAO,EACL,aAAa,EAEb,yBAAyB,EAGzB,sCAAsC,EAEtC,kCAAkC,EAElC,mCAAmC,EAInC,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AAkEjC,8EAA8E;AAC9E,eAAe,0BAA0B,CAAC;AAE1C,OAAO,EAEL,sCAAsC,EAEtC,kCAAkC,EAElC,mCAAmC,EAInC,wBAAwB,EAExB,aAAa,EACb,yBAAyB,EACzB,iBAAiB,GAElB,CAAC","sourcesContent":["import {\n TrackElementOptions,\n TrackFullPageMobileNativeOptions,\n TrackFullPageOptions,\n TrackImageOptions,\n TrackViewportOptions,\n} from './core/domain/valueObjects/track.interface.js';\nimport { ScreenshotOutput } from './desktopBrowser/index.js';\nimport WdioImageComparisonService from './domain/service/webdriverService.js';\nimport { WdioLoggerAdapter } from './infrastructure/adapters/wdioLoggerAdapter/wdioLoggerAdapter.js';\nimport {\n ApolloAdapter,\n ApolloAdapterConfig,\n ApolloAdapterConfigSchema,\n ApolloAdapterOptions,\n CreateIntegrationScenarioPayload,\n CreateIntegrationScenarioPayloadSchema,\n CreateIntegrationStepPayload,\n CreateIntegrationStepPayloadSchema,\n CreateIntegrationSuitePayload,\n CreateIntegrationSuitePayloadSchema,\n IntegrationScenario,\n IntegrationStep,\n IntegrationSuite,\n createApolloTrackAdapter,\n} from '@autonomous-testing/sdk';\n\n/**\n * Extends the WebdriverIO namespace with additional methods for tracking images.\n */\ndeclare global {\n // eslint-disable-next-line\n namespace WebdriverIO {\n interface Browser {\n startSuite(suiteName: string): Promise<void>;\n startScenario(scenarioName: string): Promise<void>;\n stopScenario(): Promise<void>;\n\n /**\n * Tracks an image of an element.\n *\n * @param {TrackElementOptions} [trackElementOptions] - Options for tracking the element image.\n * @returns {Promise<ScreenshotOutput>} - A promise that resolves to the output of the track operation.\n */\n trackElement(trackElementOptions: TrackElementOptions): Promise<ScreenshotOutput>;\n\n /**\n * Tracks an image of the viewport.\n *\n * @param {TrackViewportOptions} [trackScreenOptions] - Options for tracking the screen image.\n * @returns {Promise<ScreenshotOutput>} - A promise that resolves to the output of the track operation.\n */\n trackScreen(nametrackViewportOptions: TrackViewportOptions): Promise<ScreenshotOutput>;\n\n /**\n * Tracks an image of the complete screen.\n *\n * @param {TrackFullPageOptions} [trackFullPageScreenOptions] - Options for tracking the full page image.\n * @returns {Promise<ScreenshotOutput>} - A promise that resolves to the output of the track operation.\n */\n trackFullPageScreen(trackFullPageScreenOptions: TrackFullPageOptions): Promise<ScreenshotOutput>;\n\n /**\n * Tracks an image of the complete screen.\n *\n * @param {TrackImageOptions} [trackImageOptions] - Options for tracking the full page image.\n * @returns {Promise<ScreenshotOutput>} - A promise that resolves to the output of the track operation.\n */\n trackImage(trackImageOptions: TrackImageOptions): Promise<ScreenshotOutput>;\n\n /**\n * Tracks an image of the complete screen.\n *\n * @param {TrackFullPageMobileNativeOptions} [trackFullPageScreenOptions] - Options for tracking the full page image.\n * @returns {Promise<ScreenshotOutput>} - A promise that resolves to the output of the track operation.\n */\n trackFullPageMobileNative(\n trackFullPageMobileNativeOptions: TrackFullPageMobileNativeOptions,\n ): Promise<ScreenshotOutput>;\n }\n\n interface Element {}\n\n interface Capabilities {\n 'wdio-ics:options'?: {\n logName?: string;\n };\n }\n }\n}\n\n// Export the extended WebdriverIO namespace with added image tracking methods\nexport default WdioImageComparisonService;\n\nexport {\n CreateIntegrationScenarioPayload,\n CreateIntegrationScenarioPayloadSchema,\n CreateIntegrationStepPayload,\n CreateIntegrationStepPayloadSchema,\n CreateIntegrationSuitePayload,\n CreateIntegrationSuitePayloadSchema,\n IntegrationScenario,\n IntegrationStep,\n IntegrationSuite,\n createApolloTrackAdapter,\n ApolloAdapterConfig,\n ApolloAdapter,\n ApolloAdapterConfigSchema,\n WdioLoggerAdapter,\n ApolloAdapterOptions,\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDocumentScrollHeight.d.ts","sourceRoot":"","sources":["../../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,IAAI,MAAM,CAqDxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDocumentScrollHeight.js","sourceRoot":"","sources":["../../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB;IAC7C,MAAM,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,YAAY,EAAE,MAAM,CAAC,WAAW,IAAI,CAAC,CAAC,CAAC;IAEhG,oFAAoF;IACpF,MAAM,YAAY,GAAG,QAAQ,CAAC,eAAe,CAAC,YAAY,CAAC;IAE3D,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC;IAEpD,qFAAqF;IACrF,6FAA6F;IAC7F,IAAI,cAAc,KAAK,YAAY,IAAI,gBAAgB,GAAG,YAAY,EAAE,CAAC;QACvE,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,iEAAiE;IACjE,+DAA+D;IAC/D,iFAAiF;IACjF,uCAAuC;IACvC,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,kBAAkB,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAExD,IAAI,gBAAgB,KAAK,YAAY,IAAI,gBAAgB,KAAK,cAAc,EAAE,CAAC;QAC7E,eAAe,CAAC,QAAQ,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAErD,2DAA2D;QAC3D,mCAAmC;QACnC,OAAO,UAAU,GAAG,kBAAkB,CAAC,qBAAqB,EAAE,CAAC,GAAG,CAAC;IACrE,CAAC;IAED,kDAAkD;IAClD,OAAO,YAAY,CAAC;IAEpB;;;OAGG;IACH,SAAS,eAAe,CAAC,SAAc;QACrC,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YAC/C,MAAM,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;YAEjC,IAAI,WAAW,CAAC,YAAY,IAAI,WAAW,CAAC,YAAY,EAAE,CAAC;gBACzD,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;gBAC9E,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;gBAC5C,IAAI,QAAQ,KAAK,UAAU,EAAE,CAAC;oBAC5B,kBAAkB,GAAG,WAAW,CAAC;gBACnC,CAAC;YACH,CAAC;YAED,IAAI,WAAW,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;gBAClC,eAAe,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["/**\n * This function calculates the scroll height of the document, which is the actual height of the page from top to bottom.\n */\nexport default function getDocumentScrollHeight(): number {\n const viewPortHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);\n\n // Get the scroll height of the document's root element (usually the <html> element)\n const scrollHeight = document.documentElement.scrollHeight;\n\n const bodyScrollHeight = document.body.scrollHeight;\n\n // In some situations, the default scroll height can be equal to the viewport height,\n // but the body scroll height can be different. In such cases, return the body scroll height.\n if (viewPortHeight === scrollHeight && bodyScrollHeight > scrollHeight) {\n return bodyScrollHeight;\n }\n\n // In some cases, determining the page height can be challenging,\n // for example, when using a 'vh' property on the body element.\n // If that's the case, we need to traverse all elements and find the tallest one,\n // which is a time-consuming operation.\n let pageHeight = 0;\n let largestNodeElement = document.querySelector('body');\n\n if (bodyScrollHeight === scrollHeight && bodyScrollHeight === viewPortHeight) {\n findHighestNode(document.documentElement.childNodes);\n\n // There could be some elements above this largest element;\n // add their heights to the result.\n return pageHeight + largestNodeElement.getBoundingClientRect().top;\n }\n\n // The scrollHeight is accurate enough, return it.\n return scrollHeight;\n\n /**\n * This function finds the largest HTML element on the page.\n * @param nodesList - List of nodes to search through.\n */\n function findHighestNode(nodesList: any) {\n for (let i = nodesList.length - 1; i >= 0; i--) {\n const currentNode = nodesList[i];\n\n if (currentNode.scrollHeight && currentNode.clientHeight) {\n const elHeight = Math.max(currentNode.scrollHeight, currentNode.clientHeight);\n pageHeight = Math.max(elHeight, pageHeight);\n if (elHeight === pageHeight) {\n largestNodeElement = currentNode;\n }\n }\n\n if (currentNode.childNodes.length) {\n findHighestNode(currentNode.childNodes);\n }\n }\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getElementPositionTopDom.d.ts","sourceRoot":"","sources":["../../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,eAAe,CAatF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getElementPositionTopDom.js","sourceRoot":"","sources":["../../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,OAAoB;IACnE,wFAAwF;IACxF,MAAM,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IACpC,MAAM,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC;IAClC,MAAM,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IAC7B,MAAM,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IAE5B,OAAO;QACL,MAAM;QACN,KAAK;QACL,CAAC;QACD,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { ElementPosition } from '../../../../core/domain/valueObjects/index.js';\n\n/**\n * Get the position of an HTML element relative to the top of the DOM.\n *\n * @param {HTMLElement} element - The element for which you want to retrieve the position.\n * @returns {ElementPosition} - An object containing the height, width, horizontal (x), and vertical (y) offsets of the element.\n */\nexport default function getElementPositionTopDom(element: HTMLElement): ElementPosition {\n // Retrieve the element's height, width, horizontal offset (x), and vertical offset (y).\n const height = element.offsetHeight;\n const width = element.offsetWidth;\n const x = element.offsetLeft;\n const y = element.offsetTop;\n\n return {\n height,\n width,\n x,\n y,\n };\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getElementPositionTopWindow.d.ts","sourceRoot":"","sources":["../../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,2BAA2B,CAAC,OAAO,EAAE,WAAW,GAAG,eAAe,CAgBzF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getElementPositionTopWindow.js","sourceRoot":"","sources":["../../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,2BAA2B,CAAC,OAAoB;IACtE,2EAA2E;IAC3E,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAErE,uCAAuC;IACvC,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACzC,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACvC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEjC,OAAO;QACL,MAAM,EAAE,aAAa;QACrB,KAAK,EAAE,YAAY;QACnB,CAAC,EAAE,QAAQ;QACX,CAAC,EAAE,QAAQ;KACZ,CAAC;AACJ,CAAC","sourcesContent":["import { ElementPosition } from '../../../../core/domain/valueObjects/index.js';\n\n/**\n * Get the position of an HTML element relative to the top of the window's viewport.\n *\n * @param {HTMLElement} element - The element for which you want to retrieve the position.\n * @returns {ElementPosition} - An object containing the rounded height, width, horizontal (x), and vertical (y) positions of the element.\n */\nexport default function getElementPositionTopWindow(element: HTMLElement): ElementPosition {\n // Retrieve the element's position and dimensions relative to the viewport.\n const { height, width, left, top } = element.getBoundingClientRect();\n\n // Round the values to ensure accuracy.\n const roundedHeight = Math.round(height);\n const roundedWidth = Math.round(width);\n const roundedX = Math.round(left);\n const roundedY = Math.round(top);\n\n return {\n height: roundedHeight,\n width: roundedWidth,\n x: roundedX,\n y: roundedY,\n };\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScreenDimensions } from '
|
|
1
|
+
import { ScreenDimensions } from '../../../../desktopBrowser/clientSideScript/screenDimensions.interfaces.js';
|
|
2
2
|
/**
|
|
3
3
|
* Retrieve various screen dimensions, including body, HTML, and window properties.
|
|
4
4
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getScreenDimensions.d.ts","sourceRoot":"","sources":["../../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4EAA4E,CAAC;AAE9G;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,IAAI,gBAAgB,CAoC9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getScreenDimensions.js","sourceRoot":"","sources":["../../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB;IACzC,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;IAC3B,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe,CAAC;IAEtC,kEAAkE;IAClE,MAAM,cAAc,GAAG;QACrB,YAAY,EAAE,IAAI,EAAE,YAAY,IAAI,CAAC;QACrC,YAAY,EAAE,IAAI,EAAE,YAAY,IAAI,CAAC;KACtC,CAAC;IAEF,kEAAkE;IAClE,MAAM,cAAc,GAAG;QACrB,YAAY,EAAE,IAAI,EAAE,YAAY,IAAI,CAAC;QACrC,WAAW,EAAE,IAAI,EAAE,WAAW,IAAI,CAAC;QACnC,YAAY,EAAE,IAAI,EAAE,YAAY,IAAI,CAAC;QACrC,WAAW,EAAE,IAAI,EAAE,WAAW,IAAI,CAAC;QACnC,YAAY,EAAE,IAAI,EAAE,YAAY,IAAI,CAAC;KACtC,CAAC;IAEF,MAAM,gBAAgB,GAAG;QACvB,UAAU,EAAE,MAAM,CAAC,UAAU;QAC7B,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,cAAc,CAAC,YAAY;QAC9D,UAAU,EAAE,MAAM,CAAC,UAAU,IAAI,cAAc,CAAC,WAAW;QAC3D,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;QACzC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK;QAChC,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM;KACnC,CAAC;IAEF,OAAO;QACL,UAAU,EAAE;YACV,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,cAAc;YACpB,MAAM,EAAE,gBAAgB;SACzB;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { ScreenDimensions } from '../../../../desktopBrowser/clientSideScript/screenDimensions.interfaces.js';\n\n/**\n * Retrieve various screen dimensions, including body, HTML, and window properties.\n *\n * @returns {ScreenDimensions} - An object containing dimensions for body, HTML, and window properties.\n */\nexport default function getScreenDimensions(): ScreenDimensions {\n const body = document.body;\n const html = document.documentElement;\n\n // Extract body dimensions, default to 0 if body is not available.\n const bodyDimensions = {\n scrollHeight: body?.scrollHeight || 0,\n offsetHeight: body?.offsetHeight || 0,\n };\n\n // Extract HTML dimensions, default to 0 if html is not available.\n const htmlDimensions = {\n clientHeight: html?.clientHeight || 0,\n clientWidth: html?.clientWidth || 0,\n scrollHeight: html?.scrollHeight || 0,\n scrollWidth: html?.scrollWidth || 0,\n offsetHeight: html?.offsetHeight || 0,\n };\n\n const windowDimensions = {\n innerWidth: window.innerWidth,\n innerHeight: window.innerHeight,\n outerHeight: window.outerHeight || htmlDimensions.clientHeight,\n outerWidth: window.outerWidth || htmlDimensions.clientWidth,\n devicePixelRatio: window.devicePixelRatio,\n screenWidth: window.screen.width,\n screenHeight: window.screen.height,\n };\n\n return {\n dimensions: {\n body: bodyDimensions,\n html: htmlDimensions,\n window: windowDimensions,\n },\n };\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screenDimensions.interfaces.d.ts","sourceRoot":"","sources":["../../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ;;;;eAIG;YACH,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB;;;;;;eAMG;YACH,YAAY,CAAC,EAAE,MAAM,CAAC;SACvB,CAAC;QACF,IAAI,EAAE;YACJ;;;eAGG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB;;;;;eAKG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB;;;eAGG;YACH,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB;;;;;eAKG;YACH,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB;;;;;;eAMG;YACH,YAAY,CAAC,EAAE,MAAM,CAAC;SACvB,CAAC;QACF,MAAM,EAAE;YACN;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB;;eAEG;YACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAC1B;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB;;eAEG;YACH,YAAY,CAAC,EAAE,MAAM,CAAC;SACvB,CAAC;KACH,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screenDimensions.interfaces.js","sourceRoot":"","sources":["../../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Represents various screen dimensions including body, HTML, and window properties.\nexport interface ScreenDimensions {\n dimensions: {\n body: {\n /**\n * Minimum height required by the element to fit all content in the viewport without a vertical scrollbar.\n * Includes padding but excludes border, margin, or horizontal scrollbar.\n * Can also include the height of pseudo-elements like ::before or ::after.\n */\n scrollHeight?: number;\n /**\n * Measurement in pixels of the element's CSS height.\n * Includes borders, padding, and horizontal scrollbars if rendered.\n * Excludes pseudo-elements like ::before or ::after.\n * For the document body, includes total linear content height instead of the CSS height.\n * Ignores floated elements extending below other linear content.\n */\n offsetHeight?: number;\n };\n html: {\n /**\n * Inner width of an element in pixels.\n * Includes padding but excludes borders, margins, and vertical scrollbars if present.\n */\n clientWidth?: number;\n /**\n * Measurement in pixels of the element's CSS width.\n * Includes borders, padding, and horizontal scrollbars if rendered.\n * Excludes pseudo-elements like ::before or ::after.\n * If content can fit without horizontal scrollbar, scrollWidth is equal to clientWidth.\n */\n scrollWidth?: number;\n /**\n * Inner height of an element in pixels.\n * Includes padding but excludes borders, margins, and horizontal scrollbars if present.\n */\n clientHeight?: number;\n /**\n * Measurement in pixels of the element's CSS height.\n * Includes borders, padding, and horizontal scrollbars if rendered.\n * Excludes pseudo-elements like ::before or ::after.\n * If content can fit without vertical scrollbar, scrollHeight is equal to clientHeight.\n */\n scrollHeight?: number;\n /**\n * Measurement in pixels of the element's CSS height.\n * Includes borders, padding, and horizontal scrollbars if rendered.\n * Excludes pseudo-elements like ::before or ::after.\n * For the document body, includes total linear content height instead of the CSS height.\n * Ignores floated elements extending below other linear content.\n */\n offsetHeight?: number;\n };\n window: {\n /**\n * Width of the browser window viewport in pixels, including the vertical scrollbar if rendered.\n */\n innerWidth?: number;\n /**\n * Height of the browser window viewport in pixels, including the horizontal scrollbar if rendered.\n */\n innerHeight?: number;\n /**\n * Width of the entire browser window, including sidebar (if expanded), window chrome, and resizing borders/handles.\n */\n outerWidth?: number;\n /**\n * Height of the entire browser window, including sidebar (if expanded), window chrome, and resizing borders/handles.\n */\n outerHeight?: number;\n /**\n * Ratio of physical pixels to CSS pixels for the current display device.\n */\n devicePixelRatio?: number;\n /**\n * Width of the screen in pixels.\n */\n screenWidth?: number;\n /**\n * Height of the screen in pixels.\n */\n screenHeight?: number;\n };\n };\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollElementIntoView.d.ts","sourceRoot":"","sources":["../../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAmC1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollElementIntoView.js","sourceRoot":"","sources":["../../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,OAAoB;IAChE,IAAI,eAAe,GAAG,CAAC,CAAC;IAExB,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAChD,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAEhD,IAAI,QAAQ,IAAI,QAAQ,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC;QACvC,eAAe,GAAG,QAAQ,CAAC,SAAS,CAAC;IACvC,CAAC;SAAM,IAAI,QAAQ,IAAI,QAAQ,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC;QAC9C,eAAe,GAAG,QAAQ,CAAC,SAAS,CAAC;IACvC,CAAC;IAED,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAEhD,MAAM,SAAS,GAAG,GAAG,CAAC;IAEtB,+DAA+D;IAC/D,IAAI,QAAQ,IAAI,QAAQ,CAAC,YAAY,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC;QAC9D,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;QAE/B,IAAI,QAAQ,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;YACrC,OAAO,eAAe,CAAC;QACzB,CAAC;IACH,CAAC;IAED,2EAA2E;IAC3E,IAAI,QAAQ,IAAI,QAAQ,CAAC,YAAY,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC;QAC9D,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;QAE/B,IAAI,QAAQ,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;YACrC,OAAO,eAAe,CAAC;QACzB,CAAC;IACH,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC","sourcesContent":["/**\n * Scroll an HTML element into the top of the viewport.\n *\n * @param {HTMLElement} element - The element to scroll into view.\n * @returns {number} - The previous scroll position before the scroll operation.\n */\nexport default function scrollElementIntoView(element: HTMLElement): number {\n let currentPosition = 0;\n\n const htmlNode = document.querySelector('html');\n const bodyNode = document.querySelector('body');\n\n if (htmlNode && htmlNode.scrollTop > 0) {\n currentPosition = htmlNode.scrollTop;\n } else if (bodyNode && bodyNode.scrollTop > 0) {\n currentPosition = bodyNode.scrollTop;\n }\n\n const { top } = element.getBoundingClientRect();\n\n const yPosition = top;\n\n // Scroll using the HTML element if it has a scrollable height.\n if (htmlNode && htmlNode.scrollHeight > htmlNode.clientHeight) {\n htmlNode.scrollTop = yPosition;\n\n if (htmlNode.scrollTop === yPosition) {\n return currentPosition;\n }\n }\n\n // If scrolling with HTML didn't work, try scrolling with the body element.\n if (bodyNode && bodyNode.scrollHeight > bodyNode.clientHeight) {\n bodyNode.scrollTop = yPosition;\n\n if (bodyNode.scrollTop === yPosition) {\n return currentPosition;\n }\n }\n\n return currentPosition;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollToPosition.d.ts","sourceRoot":"","sources":["../../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAuBhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollToPosition.js","sourceRoot":"","sources":["../../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,SAAiB;IACxD,0DAA0D;IAC1D,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAChD,IAAI,QAAQ,IAAI,QAAQ,CAAC,YAAY,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC;QAC9D,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;QAE/B,IAAI,QAAQ,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;YACrC,OAAO;QACT,CAAC;IACH,CAAC;IAED,2EAA2E;IAC3E,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAChD,IAAI,QAAQ,IAAI,QAAQ,CAAC,YAAY,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC;QAC9D,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;QAE/B,IAAI,QAAQ,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;YACrC,OAAO;QACT,CAAC;IACH,CAAC;IAED,gFAAgF;IAChF,CAAC,QAAQ,CAAC,gBAAgB,IAAI,QAAQ,CAAC,eAAe,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC;AAChF,CAAC","sourcesContent":["/**\n * Scroll the document to a specific vertical position on the screen.\n *\n * @param {number} yPosition - The vertical position to scroll to.\n * @returns {void}\n */\nexport default function scrollToPosition(yPosition: number): void {\n // Try scrolling with the HTML element if it's scrollable.\n const htmlNode = document.querySelector('html');\n if (htmlNode && htmlNode.scrollHeight > htmlNode.clientHeight) {\n htmlNode.scrollTop = yPosition;\n\n if (htmlNode.scrollTop === yPosition) {\n return;\n }\n }\n\n // If scrolling with HTML didn't work, try scrolling with the body element.\n const bodyNode = document.querySelector('body');\n if (bodyNode && bodyNode.scrollHeight > bodyNode.clientHeight) {\n bodyNode.scrollTop = yPosition;\n\n if (bodyNode.scrollTop === yPosition) {\n return;\n }\n }\n\n // If scrolling with HTML and body didn't work, try scrolling with the document.\n (document.scrollingElement || document.documentElement).scrollTop = yPosition;\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ElementPosition } from '
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ElementPosition } from '../../../core/domain/valueObjects/index.js';
|
|
2
|
+
import { ClientSideOperationPort } from '../../../core/ports/clientSideOperationPort.js';
|
|
3
|
+
import { ScreenDimensions } from '../../../desktopBrowser/clientSideScript/screenDimensions.interfaces';
|
|
4
|
+
import { Executor } from '../../../desktopBrowser/methods/methods.interface';
|
|
5
5
|
export declare class DesktopBrowserClientOperationAdapter implements ClientSideOperationPort {
|
|
6
6
|
getDocumentScrollHeight(executor: Executor): Promise<number>;
|
|
7
7
|
getElementPositionTopDom(executor: Executor, element: HTMLElement): Promise<ElementPosition>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"desktopBrowserClientOperationAdapter.d.ts","sourceRoot":"","sources":["../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sEAAsE,CAAC;AACxG,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAQ7E,qBAAa,oCAAqC,YAAW,uBAAuB;IAC5E,uBAAuB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC;IAI5D,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,CAAC;IAI5F,2BAA2B,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,CAAC;IAI/F,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIlE,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIhF,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG7E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"desktopBrowserClientOperationAdapter.js","sourceRoot":"","sources":["../../../../lib/infrastructure/adapters/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.ts"],"names":[],"mappings":"AAIA,OAAO,uBAAuB,MAAM,gDAAgD,CAAC;AACrF,OAAO,wBAAwB,MAAM,iDAAiD,CAAC;AACvF,OAAO,2BAA2B,MAAM,oDAAoD,CAAC;AAC7F,OAAO,mBAAmB,MAAM,4CAA4C,CAAC;AAC7E,OAAO,qBAAqB,MAAM,8CAA8C,CAAC;AACjF,OAAO,gBAAgB,MAAM,yCAAyC,CAAC;AAEvE,MAAM,OAAO,oCAAoC;IAC/C,KAAK,CAAC,uBAAuB,CAAC,QAAkB;QAC9C,OAAO,MAAM,QAAQ,CAAC,uBAAuB,CAAC,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,wBAAwB,CAAC,QAAkB,EAAE,OAAoB;QACrE,OAAO,MAAM,QAAQ,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,2BAA2B,CAAC,QAAkB,EAAE,OAAoB;QACxE,OAAO,MAAM,QAAQ,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,QAAkB;QAC1C,OAAO,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,QAAkB,EAAE,OAAoB;QAClE,OAAO,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,QAAkB,EAAE,SAAiB;QAC1D,OAAO,QAAQ,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;IAC/C,CAAC;CACF","sourcesContent":["import { ElementPosition } from '../../../core/domain/valueObjects/index.js';\nimport { ClientSideOperationPort } from '../../../core/ports/clientSideOperationPort.js';\nimport { ScreenDimensions } from '../../../desktopBrowser/clientSideScript/screenDimensions.interfaces';\nimport { Executor } from '../../../desktopBrowser/methods/methods.interface';\nimport getDocumentScrollHeight from './clientSideScripts/getDocumentScrollHeight.js';\nimport getElementPositionTopDom from './clientSideScripts/getElementPositionTopDom.js';\nimport getElementPositionTopWindow from './clientSideScripts/getElementPositionTopWindow.js';\nimport getScreenDimensions from './clientSideScripts/getScreenDimensions.js';\nimport scrollElementIntoView from './clientSideScripts/scrollElementIntoView.js';\nimport scrollToPosition from './clientSideScripts/scrollToPosition.js';\n\nexport class DesktopBrowserClientOperationAdapter implements ClientSideOperationPort {\n async getDocumentScrollHeight(executor: Executor): Promise<number> {\n return await executor(getDocumentScrollHeight);\n }\n\n async getElementPositionTopDom(executor: Executor, element: HTMLElement): Promise<ElementPosition> {\n return await executor(getElementPositionTopDom, element);\n }\n\n async getElementPositionTopWindow(executor: Executor, element: HTMLElement): Promise<ElementPosition> {\n return await executor(getElementPositionTopWindow, element);\n }\n\n async getScreenDimensions(executor: Executor): Promise<ScreenDimensions> {\n return executor(getScreenDimensions);\n }\n\n async scrollElementIntoView(executor: Executor, element: HTMLElement): Promise<number> {\n return executor(scrollElementIntoView, element);\n }\n\n async scrollToPosition(executor: Executor, yPosition: number): Promise<void> {\n return executor(scrollToPosition, yPosition);\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wdioLoggerAdapter.d.ts","sourceRoot":"","sources":["../../../../lib/infrastructure/adapters/wdioLoggerAdapter/wdioLoggerAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,qBAAa,iBAAkB,YAAW,UAAU;IAClD,OAAO,CAAC,OAAO,CAAS;;IAMxB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAG3B,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAG9B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAG5B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAG7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wdioLoggerAdapter.js","sourceRoot":"","sources":["../../../../lib/infrastructure/adapters/wdioLoggerAdapter/wdioLoggerAdapter.ts"],"names":[],"mappings":"AACA,OAAO,MAAkB,MAAM,cAAc,CAAC;AAE9C,MAAM,OAAO,iBAAiB;IACpB,OAAO,CAAS;IAExB;QACE,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IAED,IAAI,CAAC,OAAe;QAClB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IACD,OAAO,CAAC,OAAe;QACrB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IACD,KAAK,CAAC,OAAe;QACnB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IACD,KAAK,CAAC,OAAe;QACnB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;CACF","sourcesContent":["import { LoggerPort } from '@autonomous-testing/sdk';\nimport logger, { Logger } from '@wdio/logger';\n\nexport class WdioLoggerAdapter implements LoggerPort {\n private _logger: Logger;\n\n constructor() {\n this._logger = logger('wopee');\n }\n\n info(message: string): void {\n this._logger.info(message);\n }\n warning(message: string): void {\n this._logger.warn(message);\n }\n debug(message: string): void {\n this._logger.debug(message);\n }\n error(message: string): void {\n this._logger.error(message);\n }\n}\n"]}
|
|
@@ -6,8 +6,8 @@ import { execSync } from 'child_process';
|
|
|
6
6
|
* @param logger - WebdriverIO Logger instance for logging.
|
|
7
7
|
*/
|
|
8
8
|
const logVersionMetadata = (logger) => {
|
|
9
|
-
let hash = "
|
|
10
|
-
let version = "4.
|
|
9
|
+
let hash = "72e8302b977965e0a18e89a40f4862e3d46a44a1"
|
|
10
|
+
let version = "4.7.0"
|
|
11
11
|
// If version is not "__LOCAL__," get it from npm package
|
|
12
12
|
if (version === '__LOCAL__') {
|
|
13
13
|
version = process.env['npm_package_version'] || '__LOCAL__';
|
package/docs/mobile_native.md
CHANGED
|
@@ -12,11 +12,24 @@ where `TrackFullPageMobileNativeOptions` is defined as
|
|
|
12
12
|
|
|
13
13
|
```
|
|
14
14
|
interface TrackFullPageMobileNativeOptions {
|
|
15
|
-
|
|
15
|
+
// (Optional) Number of swipes.
|
|
16
|
+
numberOfSwipes?: number;
|
|
17
|
+
// Starting X-coordinate of the swipe.
|
|
16
18
|
swipeStartX: number;
|
|
19
|
+
// Starting Y-coordinate of the swipe.
|
|
17
20
|
swipeStartY: number;
|
|
21
|
+
// Stopping X-coordinate of the swipe.
|
|
18
22
|
swipeStopX: number;
|
|
23
|
+
// Stopping Y-coordinate of the swipe.
|
|
19
24
|
swipeStopY: number;
|
|
25
|
+
// (Optional) Duration of the initial pointer move to the start position (default is 50ms).
|
|
26
|
+
startDuration?: number;
|
|
27
|
+
// (Optional) Duration of the pause before the swipe starts (default is 100ms).
|
|
28
|
+
pauseBeforeMove?: number;
|
|
29
|
+
// (Optional) Duration of the swipe from start to stop position (default is 1000ms).
|
|
30
|
+
moveDuration?: number;
|
|
31
|
+
// (Optional) Duration of the pause after the swipe ends and before the pointer up action (default is 100ms).
|
|
32
|
+
pauseAfterMove?: number;
|
|
20
33
|
fullPageScrollTimeout?: number;
|
|
21
34
|
stepName: string;
|
|
22
35
|
scenarioName?: string;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{{#if scope}}
|
|
2
|
+
**{{scope}}:**
|
|
3
|
+
{{~/if}}
|
|
4
|
+
{{#if subject}}
|
|
5
|
+
{{~subject}}
|
|
6
|
+
{{~else}}
|
|
7
|
+
{{~header}}
|
|
8
|
+
{{~/if}}
|
|
9
|
+
|
|
10
|
+
{{~! commit link }}
|
|
11
|
+
{{#if @root.linkReferences~}}
|
|
12
|
+
([{{shortHash}}](
|
|
13
|
+
{{~#if @root.repository}}
|
|
14
|
+
{{~#if @root.host}}
|
|
15
|
+
{{~@root.host}}/
|
|
16
|
+
{{~/if}}
|
|
17
|
+
{{~#if @root.owner}}
|
|
18
|
+
{{~@root.owner}}/
|
|
19
|
+
{{~/if}}
|
|
20
|
+
{{~@root.repository}}
|
|
21
|
+
{{~else}}
|
|
22
|
+
{{~@root.repoUrl}}
|
|
23
|
+
{{~/if}}/
|
|
24
|
+
{{~@root.commit}}/{{hash}}))
|
|
25
|
+
{{~else}}
|
|
26
|
+
{{~shortHash}}
|
|
27
|
+
{{~/if}}
|
|
28
|
+
|
|
29
|
+
{{~! commit references }}
|
|
30
|
+
{{~#if references~}}
|
|
31
|
+
, closes
|
|
32
|
+
{{~#each references}}
|
|
33
|
+
{{#if @root.linkReferences~}}
|
|
34
|
+
[
|
|
35
|
+
{{~#if this.owner}}
|
|
36
|
+
{{~this.owner}}/
|
|
37
|
+
{{~/if}}
|
|
38
|
+
{{~this.repository}}#{{this.issue}}](
|
|
39
|
+
{{~#if @root.repository}}
|
|
40
|
+
{{~#if @root.host}}
|
|
41
|
+
{{~@root.host}}/
|
|
42
|
+
{{~/if}}
|
|
43
|
+
{{~#if this.repository}}
|
|
44
|
+
{{~#if this.owner}}
|
|
45
|
+
{{~this.owner}}/
|
|
46
|
+
{{~/if}}
|
|
47
|
+
{{~this.repository}}
|
|
48
|
+
{{~else}}
|
|
49
|
+
{{~#if @root.owner}}
|
|
50
|
+
{{~@root.owner}}/
|
|
51
|
+
{{~/if}}
|
|
52
|
+
{{~@root.repository}}
|
|
53
|
+
{{~/if}}
|
|
54
|
+
{{~else}}
|
|
55
|
+
{{~@root.repoUrl}}
|
|
56
|
+
{{~/if}}/
|
|
57
|
+
{{~@root.issue}}/{{this.issue}})
|
|
58
|
+
{{~else}}
|
|
59
|
+
{{~#if this.owner}}
|
|
60
|
+
{{~this.owner}}/
|
|
61
|
+
{{~/if}}
|
|
62
|
+
{{~this.repository}}#{{this.issue}}
|
|
63
|
+
{{~/if}}{{/each}}
|
|
64
|
+
{{~/if}}
|
|
65
|
+
|
|
66
|
+
{{~#if body}}
|
|
67
|
+
{{#raw}}{{/raw}}
|
|
68
|
+
{{body}}
|
|
69
|
+
{{~/if}}
|
|
70
|
+
|
|
71
|
+
{{#raw}}{{/raw}}
|
|
@@ -73,10 +73,22 @@ jobs:
|
|
|
73
73
|
with:
|
|
74
74
|
npm-token: ${{ secrets.CI_CD }}
|
|
75
75
|
|
|
76
|
+
- name: Prepare .env
|
|
77
|
+
shell: bash
|
|
78
|
+
run: |
|
|
79
|
+
echo ${{ secrets.INT_TESTS_API_KEY }} >> .env
|
|
80
|
+
echo ${{ secrets.INT_TESTS_API_URL }} >> .env
|
|
81
|
+
echo ${{ secrets.INT_TESTS_BRANCH_NAME }} >> .env
|
|
82
|
+
echo ${{ secrets.INT_TESTS_PROJECT_UUID }} >> .env
|
|
83
|
+
|
|
76
84
|
- name: Unit tests
|
|
77
85
|
shell: bash
|
|
78
86
|
run: make test.unit
|
|
79
87
|
|
|
88
|
+
- name: Int tests
|
|
89
|
+
shell: bash
|
|
90
|
+
run: make test.int
|
|
91
|
+
|
|
80
92
|
build:
|
|
81
93
|
needs: [npm-clean-install]
|
|
82
94
|
runs-on: builder
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const CreateIntegrationScenarioPayloadSchema: z.ZodObject<{
|
|
3
|
+
suiteName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
scenarioName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
suiteName?: string | null | undefined;
|
|
7
|
+
scenarioName?: string | null | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
suiteName?: string | null | undefined;
|
|
10
|
+
scenarioName?: string | null | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
type CreateIntegrationScenarioPayload = z.infer<typeof CreateIntegrationScenarioPayloadSchema>;
|
|
13
|
+
export { CreateIntegrationScenarioPayload, CreateIntegrationScenarioPayloadSchema };
|
|
14
|
+
//# sourceMappingURL=createIntegrationScenarioPayload.interface.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateIntegrationScenarioPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const CreateIntegrationScenarioPayloadSchema = zod_1.z.object({
|
|
6
|
+
suiteName: zod_1.z.string().nullable().optional(),
|
|
7
|
+
scenarioName: zod_1.z.string().nullable().optional(),
|
|
8
|
+
});
|
|
9
|
+
exports.CreateIntegrationScenarioPayloadSchema = CreateIntegrationScenarioPayloadSchema;
|
|
10
|
+
//# sourceMappingURL=createIntegrationScenarioPayload.interface.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const CreateIntegrationStepPayloadSchema: z.ZodObject<{
|
|
3
|
+
imageBase64: z.ZodString;
|
|
4
|
+
stepName: z.ZodString;
|
|
5
|
+
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
customTags: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
pixelToPixelDiffTolerance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
+
scenarioName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
suiteName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
viewport: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
imageBase64: string;
|
|
13
|
+
stepName: string;
|
|
14
|
+
suiteName?: string | null | undefined;
|
|
15
|
+
scenarioName?: string | null | undefined;
|
|
16
|
+
comment?: string | null | undefined;
|
|
17
|
+
customTags?: string | null | undefined;
|
|
18
|
+
pixelToPixelDiffTolerance?: number | null | undefined;
|
|
19
|
+
viewport?: string | null | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
imageBase64: string;
|
|
22
|
+
stepName: string;
|
|
23
|
+
suiteName?: string | null | undefined;
|
|
24
|
+
scenarioName?: string | null | undefined;
|
|
25
|
+
comment?: string | null | undefined;
|
|
26
|
+
customTags?: string | null | undefined;
|
|
27
|
+
pixelToPixelDiffTolerance?: number | null | undefined;
|
|
28
|
+
viewport?: string | null | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
type CreateIntegrationStepPayload = z.infer<typeof CreateIntegrationStepPayloadSchema>;
|
|
31
|
+
export { CreateIntegrationStepPayload, CreateIntegrationStepPayloadSchema };
|
|
32
|
+
//# sourceMappingURL=createIntegrationStepPayload.interface.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateIntegrationStepPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const CreateIntegrationStepPayloadSchema = zod_1.z.object({
|
|
6
|
+
imageBase64: zod_1.z.string(),
|
|
7
|
+
stepName: zod_1.z.string(),
|
|
8
|
+
comment: zod_1.z.string().nullable().optional(),
|
|
9
|
+
customTags: zod_1.z.string().nullable().optional(),
|
|
10
|
+
pixelToPixelDiffTolerance: zod_1.z.number().nullable().optional(),
|
|
11
|
+
scenarioName: zod_1.z.string().nullable().optional(),
|
|
12
|
+
suiteName: zod_1.z.string().nullable().optional(),
|
|
13
|
+
viewport: zod_1.z.string().nullable().optional(),
|
|
14
|
+
});
|
|
15
|
+
exports.CreateIntegrationStepPayloadSchema = CreateIntegrationStepPayloadSchema;
|
|
16
|
+
//# sourceMappingURL=createIntegrationStepPayload.interface.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const CreateIntegrationSuitePayloadSchema: z.ZodObject<{
|
|
3
|
+
suiteName: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
suiteName: string;
|
|
6
|
+
}, {
|
|
7
|
+
suiteName: string;
|
|
8
|
+
}>;
|
|
9
|
+
type CreateIntegrationSuitePayload = z.infer<typeof CreateIntegrationSuitePayloadSchema>;
|
|
10
|
+
export { CreateIntegrationSuitePayload, CreateIntegrationSuitePayloadSchema };
|
|
11
|
+
//# sourceMappingURL=createIntegrationSuitePayload.interface.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateIntegrationSuitePayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const CreateIntegrationSuitePayloadSchema = zod_1.z.object({
|
|
6
|
+
suiteName: zod_1.z.string(),
|
|
7
|
+
});
|
|
8
|
+
exports.CreateIntegrationSuitePayloadSchema = CreateIntegrationSuitePayloadSchema;
|
|
9
|
+
//# sourceMappingURL=createIntegrationSuitePayload.interface.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CreateIntegrationScenarioPayload } from './createIntegrationScenarioPayload.interface';
|
|
2
|
+
import { CreateIntegrationScenarioPayloadSchema } from './createIntegrationScenarioPayload.interface';
|
|
3
|
+
import { CreateIntegrationStepPayload } from './createIntegrationStepPayload.interface';
|
|
4
|
+
import { CreateIntegrationStepPayloadSchema } from './createIntegrationStepPayload.interface';
|
|
5
|
+
import { CreateIntegrationSuitePayload } from './createIntegrationSuitePayload.interface';
|
|
6
|
+
import { CreateIntegrationSuitePayloadSchema } from './createIntegrationSuitePayload.interface';
|
|
7
|
+
import { IntegrationScenario } from './integrationScenario.interface';
|
|
8
|
+
import { IntegrationScenarioSchema } from './integrationScenario.interface';
|
|
9
|
+
import { IntegrationStep } from './integrationStep.interface';
|
|
10
|
+
import { IntegrationStepSchema } from './integrationStep.interface';
|
|
11
|
+
import { IntegrationSuite } from './integrationSuite.interface';
|
|
12
|
+
import { IntegrationSuiteSchema } from './integrationSuite.interface';
|
|
13
|
+
export { CreateIntegrationScenarioPayload, CreateIntegrationStepPayload, CreateIntegrationScenarioPayloadSchema, CreateIntegrationStepPayloadSchema, CreateIntegrationSuitePayloadSchema, CreateIntegrationSuitePayload, IntegrationScenario, IntegrationStep, IntegrationScenarioSchema, IntegrationStepSchema, IntegrationSuiteSchema, IntegrationSuite, };
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntegrationSuiteSchema = exports.IntegrationStepSchema = exports.IntegrationScenarioSchema = exports.CreateIntegrationSuitePayloadSchema = exports.CreateIntegrationStepPayloadSchema = exports.CreateIntegrationScenarioPayloadSchema = void 0;
|
|
4
|
+
const createIntegrationScenarioPayload_interface_1 = require("./createIntegrationScenarioPayload.interface");
|
|
5
|
+
Object.defineProperty(exports, "CreateIntegrationScenarioPayloadSchema", { enumerable: true, get: function () { return createIntegrationScenarioPayload_interface_1.CreateIntegrationScenarioPayloadSchema; } });
|
|
6
|
+
const createIntegrationStepPayload_interface_1 = require("./createIntegrationStepPayload.interface");
|
|
7
|
+
Object.defineProperty(exports, "CreateIntegrationStepPayloadSchema", { enumerable: true, get: function () { return createIntegrationStepPayload_interface_1.CreateIntegrationStepPayloadSchema; } });
|
|
8
|
+
const createIntegrationSuitePayload_interface_1 = require("./createIntegrationSuitePayload.interface");
|
|
9
|
+
Object.defineProperty(exports, "CreateIntegrationSuitePayloadSchema", { enumerable: true, get: function () { return createIntegrationSuitePayload_interface_1.CreateIntegrationSuitePayloadSchema; } });
|
|
10
|
+
const integrationScenario_interface_1 = require("./integrationScenario.interface");
|
|
11
|
+
Object.defineProperty(exports, "IntegrationScenarioSchema", { enumerable: true, get: function () { return integrationScenario_interface_1.IntegrationScenarioSchema; } });
|
|
12
|
+
const integrationStep_interface_1 = require("./integrationStep.interface");
|
|
13
|
+
Object.defineProperty(exports, "IntegrationStepSchema", { enumerable: true, get: function () { return integrationStep_interface_1.IntegrationStepSchema; } });
|
|
14
|
+
const integrationSuite_interface_1 = require("./integrationSuite.interface");
|
|
15
|
+
Object.defineProperty(exports, "IntegrationSuiteSchema", { enumerable: true, get: function () { return integrationSuite_interface_1.IntegrationSuiteSchema; } });
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const IntegrationScenarioSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
name: string;
|
|
7
|
+
uuid: string;
|
|
8
|
+
}, {
|
|
9
|
+
name: string;
|
|
10
|
+
uuid: string;
|
|
11
|
+
}>;
|
|
12
|
+
type IntegrationScenario = z.infer<typeof IntegrationScenarioSchema>;
|
|
13
|
+
export { IntegrationScenario, IntegrationScenarioSchema };
|
|
14
|
+
//# sourceMappingURL=integrationScenario.interface.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntegrationScenarioSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const IntegrationScenarioSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.string(),
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
});
|
|
9
|
+
exports.IntegrationScenarioSchema = IntegrationScenarioSchema;
|
|
10
|
+
//# sourceMappingURL=integrationScenario.interface.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare enum ValidationStatus {
|
|
3
|
+
AUTO_APPROVED = "autoApproved",
|
|
4
|
+
NEW = "new",
|
|
5
|
+
OK = "ok",
|
|
6
|
+
UNRESOLVED = "unresolved"
|
|
7
|
+
}
|
|
8
|
+
declare const ValidationStatusSchema: z.ZodNativeEnum<typeof ValidationStatus>;
|
|
9
|
+
declare const IntegrationStepSchema: z.ZodObject<{
|
|
10
|
+
stepName: z.ZodString;
|
|
11
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ValidationStatus>>>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
stepName: string;
|
|
15
|
+
status?: ValidationStatus | null | undefined;
|
|
16
|
+
imageUrl?: string | null | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
stepName: string;
|
|
19
|
+
status?: ValidationStatus | null | undefined;
|
|
20
|
+
imageUrl?: string | null | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
type IntegrationStep = z.infer<typeof IntegrationStepSchema>;
|
|
23
|
+
export { ValidationStatus, IntegrationStep, ValidationStatusSchema, IntegrationStepSchema };
|
|
24
|
+
//# sourceMappingURL=integrationStep.interface.d.ts.map
|