@wopee-io/wopee.wdio 4.0.0 → 4.6.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/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
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ports/index
|
|
18
|
-
__exportStar(require("./domain/index
|
|
17
|
+
__exportStar(require("./ports/index"), exports);
|
|
18
|
+
__exportStar(require("./domain/index"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CreateIntegrationScenarioPayload, CreateIntegrationStepPayload, CreateIntegrationSuitePayload, IntegrationScenario, IntegrationStep, IntegrationSuite } from '../domain/entities';
|
|
2
|
+
export declare abstract class ApiPort {
|
|
3
|
+
/** ApiPort is an abstract base class providing a template for integration management.
|
|
4
|
+
* This class includes methods for starting and stopping integration suites and scenarios,
|
|
5
|
+
* as well as creating integration steps. The specific implementations of these methods
|
|
6
|
+
* need to be provided by subclasses.
|
|
7
|
+
*/
|
|
8
|
+
abstract get suite(): IntegrationSuite;
|
|
9
|
+
abstract get scenario(): IntegrationScenario;
|
|
10
|
+
abstract createIntegrationSuite(payload: CreateIntegrationSuitePayload): Promise<IntegrationSuite>;
|
|
11
|
+
abstract stopIntegrationSuite(): Promise<void>;
|
|
12
|
+
abstract createIntegrationScenario(payload: CreateIntegrationScenarioPayload): Promise<IntegrationScenario>;
|
|
13
|
+
abstract stopIntegrationScenario(): Promise<void>;
|
|
14
|
+
abstract createIntegrationStep(payload: CreateIntegrationStepPayload): Promise<IntegrationStep>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { LoggerPort } from './logger
|
|
3
|
-
export {
|
|
1
|
+
import { ApiPort } from './api';
|
|
2
|
+
import { LoggerPort } from './logger';
|
|
3
|
+
export { ApiPort, LoggerPort };
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LoggerPort = exports.
|
|
4
|
-
const
|
|
5
|
-
Object.defineProperty(exports, "
|
|
6
|
-
const
|
|
7
|
-
Object.defineProperty(exports, "LoggerPort", { enumerable: true, get: function () { return
|
|
3
|
+
exports.LoggerPort = exports.ApiPort = void 0;
|
|
4
|
+
const api_1 = require("./api");
|
|
5
|
+
Object.defineProperty(exports, "ApiPort", { enumerable: true, get: function () { return api_1.ApiPort; } });
|
|
6
|
+
const logger_1 = require("./logger");
|
|
7
|
+
Object.defineProperty(exports, "LoggerPort", { enumerable: true, get: function () { return logger_1.LoggerPort; } });
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
1
|
+
import 'process/browser';
|
|
2
|
+
export * from './shared';
|
|
3
|
+
export * from './core';
|
|
4
|
+
export * from './infrastructure';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -14,7 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
__exportStar(require("./
|
|
17
|
+
require("process/browser");
|
|
18
|
+
// needed for LS compatibility
|
|
19
|
+
__exportStar(require("./shared"), exports);
|
|
20
|
+
__exportStar(require("./core"), exports);
|
|
21
|
+
__exportStar(require("./infrastructure"), exports);
|
|
20
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ApiPort, CreateIntegrationScenarioPayload, CreateIntegrationStepPayload, CreateIntegrationSuitePayload, IntegrationScenario, IntegrationStep, IntegrationSuite, LoggerPort } from '../../../core';
|
|
2
|
+
import { ApolloAdapterConfig } from './interface';
|
|
3
|
+
declare class ApolloAdapter extends ApiPort {
|
|
4
|
+
private _config;
|
|
5
|
+
private _logger;
|
|
6
|
+
private _scenario;
|
|
7
|
+
private _suite;
|
|
8
|
+
constructor(config: ApolloAdapterConfig, logger: LoggerPort);
|
|
9
|
+
private _post;
|
|
10
|
+
get suite(): IntegrationSuite;
|
|
11
|
+
get scenario(): IntegrationScenario;
|
|
12
|
+
createIntegrationSuite(payload: CreateIntegrationSuitePayload): Promise<IntegrationSuite>;
|
|
13
|
+
stopIntegrationSuite(): Promise<void>;
|
|
14
|
+
createIntegrationScenario(payload: CreateIntegrationScenarioPayload): Promise<IntegrationScenario>;
|
|
15
|
+
stopIntegrationScenario(): Promise<void>;
|
|
16
|
+
createIntegrationStep(payload: CreateIntegrationStepPayload): Promise<IntegrationStep>;
|
|
17
|
+
}
|
|
18
|
+
export { ApolloAdapter };
|
|
19
|
+
//# sourceMappingURL=adapter.d.ts.map
|
package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ApolloAdapter = void 0;
|
|
7
|
+
const core_1 = require("../../../core");
|
|
8
|
+
const shared_1 = require("../../../shared");
|
|
9
|
+
const factories_1 = require("./factories");
|
|
10
|
+
const interface_1 = require("./interface");
|
|
11
|
+
const mutations_1 = require("./mutations");
|
|
12
|
+
const axios_1 = __importDefault(require("axios"));
|
|
13
|
+
class ApolloAdapter extends core_1.ApiPort {
|
|
14
|
+
_config;
|
|
15
|
+
_logger;
|
|
16
|
+
_scenario = null;
|
|
17
|
+
_suite = null;
|
|
18
|
+
constructor(config, logger) {
|
|
19
|
+
super();
|
|
20
|
+
this._logger = logger;
|
|
21
|
+
this._config = config;
|
|
22
|
+
}
|
|
23
|
+
async _post(query, variables) {
|
|
24
|
+
try {
|
|
25
|
+
return await axios_1.default.post(this._config.apiUrl, { query, variables }, {
|
|
26
|
+
headers: { api_key: this._config.apiKey },
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
if (axios_1.default.isAxiosError(error)) {
|
|
31
|
+
const status = error.response?.status;
|
|
32
|
+
throw new shared_1.WopeeError(`API request failed with status code: ${status}.`);
|
|
33
|
+
}
|
|
34
|
+
throw new Error('Unexpected error occurred during API call.');
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
get suite() {
|
|
38
|
+
return this._suite;
|
|
39
|
+
}
|
|
40
|
+
get scenario() {
|
|
41
|
+
return this._scenario;
|
|
42
|
+
}
|
|
43
|
+
async createIntegrationSuite(payload) {
|
|
44
|
+
const query = mutations_1.createIntegrationSuiteMutation;
|
|
45
|
+
const variables = (0, factories_1.createIntegrationSuiteApolloPayloadFactory)(this._config, payload);
|
|
46
|
+
const response = await this._post(query, variables);
|
|
47
|
+
const rawSuite = response.data.data.createIntegrationSuite;
|
|
48
|
+
this._suite = core_1.IntegrationSuiteSchema.parse(rawSuite);
|
|
49
|
+
this._logger.info(`Suite(name=${this._suite.name}, uuid=${this._suite.uuid}) is activated.`);
|
|
50
|
+
return this._suite;
|
|
51
|
+
}
|
|
52
|
+
async stopIntegrationSuite() {
|
|
53
|
+
throw new Error('Not implemented');
|
|
54
|
+
}
|
|
55
|
+
async createIntegrationScenario(payload) {
|
|
56
|
+
if (!this._suite) {
|
|
57
|
+
if (payload.suiteName) {
|
|
58
|
+
const createSuitePayload = core_1.CreateIntegrationSuitePayloadSchema.parse({ suiteName: payload.suiteName });
|
|
59
|
+
this._suite = await this.createIntegrationSuite(createSuitePayload);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
throw new shared_1.WopeeError('There is no Suite started, and no suiteName provided. Use startSuite before startScenario or provide suiteName.');
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const query = mutations_1.createIntegrationScenarioMutation;
|
|
66
|
+
const variables = (0, factories_1.createIntegrationScenarioApolloPayloadFactory)(this._config, this._suite, payload);
|
|
67
|
+
const response = await this._post(query, variables);
|
|
68
|
+
const rawScenario = response.data.data.createIntegrationScenario;
|
|
69
|
+
this._scenario = core_1.IntegrationScenarioSchema.parse(rawScenario);
|
|
70
|
+
this._logger.info(`Scenario(name=${this._scenario.name}, uuid=${this._scenario.uuid}) is started.`);
|
|
71
|
+
return this._scenario;
|
|
72
|
+
}
|
|
73
|
+
async stopIntegrationScenario() {
|
|
74
|
+
if (this._scenario) {
|
|
75
|
+
const query = mutations_1.stopIntegrationScenarioMutation;
|
|
76
|
+
const variables = (0, factories_1.stopIntegrationScenarioApolloPayloadFactory)(this._config, this._scenario);
|
|
77
|
+
const response = await this._post(query, variables);
|
|
78
|
+
const data = response.data.data.stopIntegrationScenario;
|
|
79
|
+
this._scenario = null;
|
|
80
|
+
this._logger.info(`Scenario(name=${data.name}, uuid=${data.uuid}) is stopped.`);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
async createIntegrationStep(payload) {
|
|
84
|
+
if (!this._suite) {
|
|
85
|
+
if (!this._scenario) {
|
|
86
|
+
if (payload.suiteName && payload.scenarioName) {
|
|
87
|
+
const startSuitePayload = core_1.CreateIntegrationSuitePayloadSchema.parse({
|
|
88
|
+
suiteName: payload.suiteName,
|
|
89
|
+
});
|
|
90
|
+
this._suite = await this.createIntegrationSuite(startSuitePayload);
|
|
91
|
+
const startScenarioPayload = core_1.CreateIntegrationScenarioPayloadSchema.parse({
|
|
92
|
+
scenarioName: payload.scenarioName,
|
|
93
|
+
});
|
|
94
|
+
this._scenario = await this.createIntegrationScenario(startScenarioPayload);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
throw new shared_1.WopeeError('There is no Suite and no Scenario started, and no suiteName and no scenarioName provided. Use startSuite and startScenario before createIntegrationStep or provide suiteName and scenarioName.');
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
else if (!this._scenario) {
|
|
102
|
+
if (payload.scenarioName) {
|
|
103
|
+
const startScenarioPayload = core_1.CreateIntegrationScenarioPayloadSchema.parse({
|
|
104
|
+
scenarioName: payload.scenarioName,
|
|
105
|
+
});
|
|
106
|
+
this._scenario = await this.createIntegrationScenario(startScenarioPayload);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
throw new shared_1.WopeeError('There is no Scenario started, and no scenarioName provided. Use startScenario before createIntegrationStep or provide scenarioName.');
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
const query = mutations_1.createIntegrationStepMutation;
|
|
113
|
+
const variables = (0, factories_1.createIntegrationStepApolloPayloadFactory)(this._config, this._scenario, payload);
|
|
114
|
+
const response = await this._post(query, { input: variables });
|
|
115
|
+
const data = response.data.data.createIntegrationStep;
|
|
116
|
+
const createIntegrationStepApolloResponse = interface_1.CreateIntegrationStepApolloResponseSchema.parse(data);
|
|
117
|
+
const integrationStep = (0, factories_1.integrationStepFactory)(createIntegrationStepApolloResponse);
|
|
118
|
+
this._logger.info(`Tracking response: ${JSON.stringify(integrationStep)}`);
|
|
119
|
+
return integrationStep;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
exports.ApolloAdapter = ApolloAdapter;
|
|
123
|
+
//# sourceMappingURL=adapter.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateIntegrationScenarioPayload, CreateIntegrationStepPayload, CreateIntegrationSuitePayload, IntegrationScenario, IntegrationStep, IntegrationSuite } from '../../../core';
|
|
2
|
+
import { ApolloAdapterConfig, CreateIntegrationScenarioApolloPayload, CreateIntegrationStepApolloPayload, CreateIntegrationStepApolloResponse, CreateIntegrationSuiteApolloPayload, StopIntegrationScenarioApolloPayload } from './interface';
|
|
3
|
+
declare function createIntegrationSuiteApolloPayloadFactory(config: ApolloAdapterConfig, createIntegrationSuitePayload: CreateIntegrationSuitePayload): CreateIntegrationSuiteApolloPayload;
|
|
4
|
+
declare function createIntegrationScenarioApolloPayloadFactory(config: ApolloAdapterConfig, integrationSuite: IntegrationSuite, createIntegrationScenarioPayload: CreateIntegrationScenarioPayload): CreateIntegrationScenarioApolloPayload;
|
|
5
|
+
declare function stopIntegrationScenarioApolloPayloadFactory(config: ApolloAdapterConfig, integrationScenario: IntegrationScenario): StopIntegrationScenarioApolloPayload;
|
|
6
|
+
declare function createIntegrationStepApolloPayloadFactory(config: ApolloAdapterConfig, integrationScenario: IntegrationScenario, createIntegrationStepPayload: CreateIntegrationStepPayload): CreateIntegrationStepApolloPayload;
|
|
7
|
+
declare function integrationStepFactory(createIntegrationStepApolloResponse: CreateIntegrationStepApolloResponse): IntegrationStep;
|
|
8
|
+
export { createIntegrationSuiteApolloPayloadFactory, createIntegrationScenarioApolloPayloadFactory, stopIntegrationScenarioApolloPayloadFactory, createIntegrationStepApolloPayloadFactory, integrationStepFactory, };
|
|
9
|
+
//# sourceMappingURL=factories.d.ts.map
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createIntegrationSuiteApolloPayloadFactory = createIntegrationSuiteApolloPayloadFactory;
|
|
4
|
+
exports.createIntegrationScenarioApolloPayloadFactory = createIntegrationScenarioApolloPayloadFactory;
|
|
5
|
+
exports.stopIntegrationScenarioApolloPayloadFactory = stopIntegrationScenarioApolloPayloadFactory;
|
|
6
|
+
exports.createIntegrationStepApolloPayloadFactory = createIntegrationStepApolloPayloadFactory;
|
|
7
|
+
exports.integrationStepFactory = integrationStepFactory;
|
|
8
|
+
const core_1 = require("../../../core");
|
|
9
|
+
const shared_1 = require("../../../shared");
|
|
10
|
+
const interface_1 = require("./interface");
|
|
11
|
+
function createIntegrationSuiteApolloPayloadFactory(config, createIntegrationSuitePayload) {
|
|
12
|
+
/** Create a payload for starting a new integration suite in Apollo.
|
|
13
|
+
*
|
|
14
|
+
* Parameters
|
|
15
|
+
* ----------
|
|
16
|
+
* config : ApolloAdapterConfig
|
|
17
|
+
* Configuration for the Apollo tracker adapter.
|
|
18
|
+
* createIntegrationSuitePayload : CreateIntegrationSuitePayload
|
|
19
|
+
* The payload containing the name of the integration suite to start.
|
|
20
|
+
*
|
|
21
|
+
* Returns
|
|
22
|
+
* -------
|
|
23
|
+
* CreateIntegrationSuiteApolloPayload
|
|
24
|
+
* The payload for the Apollo API to create a new integration suite.
|
|
25
|
+
*/
|
|
26
|
+
const suiteIntegrationConfig = interface_1.SuiteIntegrationConfigApolloPayloadSchema.parse({
|
|
27
|
+
branchName: config.branchName,
|
|
28
|
+
});
|
|
29
|
+
return interface_1.CreateIntegrationSuiteApolloPayloadSchema.parse({
|
|
30
|
+
projectUuid: config.projectUuid,
|
|
31
|
+
name: createIntegrationSuitePayload.suiteName,
|
|
32
|
+
suiteIntegrationConfig: suiteIntegrationConfig,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function createIntegrationScenarioApolloPayloadFactory(config, integrationSuite, createIntegrationScenarioPayload) {
|
|
36
|
+
/** Create a payload for starting a new integration scenario in Apollo.
|
|
37
|
+
*
|
|
38
|
+
* Parameters
|
|
39
|
+
* ----------
|
|
40
|
+
* config : ApolloAdapterConfig
|
|
41
|
+
* Configuration for the Apollo tracker adapter.
|
|
42
|
+
* integrationSuite : IntegrationSuite
|
|
43
|
+
* The integration suite within which the scenario will be created.
|
|
44
|
+
* createIntegrationScenarioPayload : CreateIntegrationScenarioPayload
|
|
45
|
+
* The payload containing the name of the integration scenario to start.
|
|
46
|
+
*
|
|
47
|
+
* Returns
|
|
48
|
+
* -------
|
|
49
|
+
* CreateIntegrationScenarioApolloPayload
|
|
50
|
+
* The payload for the Apollo API to create a new integration scenario.
|
|
51
|
+
*/
|
|
52
|
+
return interface_1.CreateIntegrationScenarioApolloPayloadSchema.parse({
|
|
53
|
+
name: createIntegrationScenarioPayload.scenarioName,
|
|
54
|
+
projectUuid: config.projectUuid,
|
|
55
|
+
suiteUuid: integrationSuite.uuid,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function stopIntegrationScenarioApolloPayloadFactory(config, integrationScenario) {
|
|
59
|
+
/** Create a payload for stopping an existing integration scenario in Apollo.
|
|
60
|
+
*
|
|
61
|
+
* Parameters
|
|
62
|
+
* ----------
|
|
63
|
+
* config : ApolloAdapterConfig
|
|
64
|
+
* Configuration for the Apollo tracker adapter.
|
|
65
|
+
* integrationScenario : IntegrationScenario
|
|
66
|
+
* The integration scenario to be stopped.
|
|
67
|
+
*
|
|
68
|
+
* Returns
|
|
69
|
+
* -------
|
|
70
|
+
* StopIntegrationScenarioApolloPayload
|
|
71
|
+
* The payload for the Apollo API to stop an existing integration scenario.
|
|
72
|
+
*/
|
|
73
|
+
return interface_1.StopIntegrationScenarioApolloPayloadSchema.parse({
|
|
74
|
+
projectUuid: config.projectUuid,
|
|
75
|
+
scenarioUuid: integrationScenario.uuid,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function createIntegrationStepApolloPayloadFactory(config, integrationScenario, createIntegrationStepPayload) {
|
|
79
|
+
/** Create a payload for adding a new integration step in Apollo.
|
|
80
|
+
*
|
|
81
|
+
* Parameters
|
|
82
|
+
* ----------
|
|
83
|
+
* config : ApolloAdapterConfig
|
|
84
|
+
* Configuration for the Apollo tracker adapter.
|
|
85
|
+
* integrationScenario : IntegrationScenario
|
|
86
|
+
* The integration scenario within which the step will be created.
|
|
87
|
+
* createIntegrationStepPayload : CreateIntegrationStepPayload
|
|
88
|
+
* The payload containing the details of the integration step to create.
|
|
89
|
+
*
|
|
90
|
+
* Returns
|
|
91
|
+
* -------
|
|
92
|
+
* CreateIntegrationStepApolloPayload
|
|
93
|
+
* The payload for the Apollo API to create a new integration step.
|
|
94
|
+
*/
|
|
95
|
+
const globalConfigPayload = (0, shared_1.filterNoneValues)({
|
|
96
|
+
browser: config.browser,
|
|
97
|
+
comment: config.comment,
|
|
98
|
+
customTags: config.customTags,
|
|
99
|
+
device: config.device,
|
|
100
|
+
os: config.os,
|
|
101
|
+
pixelToPixelDiffTolerance: config.pixelToPixelDiffTolerance,
|
|
102
|
+
viewport: config.viewport,
|
|
103
|
+
});
|
|
104
|
+
const localConfigPayload = (0, shared_1.filterNoneValues)({
|
|
105
|
+
comment: createIntegrationStepPayload.comment,
|
|
106
|
+
customTags: createIntegrationStepPayload.customTags,
|
|
107
|
+
pixelToPixelDiffTolerance: createIntegrationStepPayload.pixelToPixelDiffTolerance,
|
|
108
|
+
viewport: createIntegrationStepPayload.viewport,
|
|
109
|
+
});
|
|
110
|
+
const rawConfigPayload = (0, shared_1.mergeDicts)(globalConfigPayload, localConfigPayload);
|
|
111
|
+
const configPayload = interface_1.CreateIntegrationStepConfigApolloPayloadSchema.parse(rawConfigPayload);
|
|
112
|
+
return interface_1.CreateIntegrationStepApolloPayloadSchema.parse({
|
|
113
|
+
browser: configPayload.browser,
|
|
114
|
+
comment: configPayload.comment,
|
|
115
|
+
customTags: configPayload.customTags,
|
|
116
|
+
imageBase64: createIntegrationStepPayload.imageBase64,
|
|
117
|
+
pixelToPixelDiffTolerance: configPayload.pixelToPixelDiffTolerance,
|
|
118
|
+
projectUuid: config.projectUuid,
|
|
119
|
+
scenarioUuid: integrationScenario.uuid,
|
|
120
|
+
stepName: createIntegrationStepPayload.stepName,
|
|
121
|
+
trackName: `${integrationScenario.name}-${createIntegrationStepPayload.stepName}`,
|
|
122
|
+
viewport: configPayload.viewport,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
function integrationStepFactory(createIntegrationStepApolloResponse) {
|
|
126
|
+
/** Create an IntegrationStep entity from the Apollo API response.
|
|
127
|
+
*
|
|
128
|
+
* Parameters
|
|
129
|
+
* ----------
|
|
130
|
+
* createIntegrationStepApolloResponse : CreateIntegrationStepApolloResponse
|
|
131
|
+
* The response from the Apollo API after creating an integration step.
|
|
132
|
+
*
|
|
133
|
+
* Returns
|
|
134
|
+
* -------
|
|
135
|
+
* IntegrationStep
|
|
136
|
+
* The created integration step entity.
|
|
137
|
+
*/
|
|
138
|
+
return core_1.IntegrationStepSchema.parse({
|
|
139
|
+
stepName: createIntegrationStepApolloResponse.stepName,
|
|
140
|
+
imageUrl: createIntegrationStepApolloResponse.url,
|
|
141
|
+
status: createIntegrationStepApolloResponse.status,
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=factories.js.map
|
package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApolloAdapterConfigSchema = exports.ApolloAdapter = void 0;
|
|
4
|
+
const adapter_1 = require("./adapter");
|
|
5
|
+
Object.defineProperty(exports, "ApolloAdapter", { enumerable: true, get: function () { return adapter_1.ApolloAdapter; } });
|
|
6
|
+
const interface_1 = require("./interface");
|
|
7
|
+
Object.defineProperty(exports, "ApolloAdapterConfigSchema", { enumerable: true, get: function () { return interface_1.ApolloAdapterConfigSchema; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const ApolloAdapterConfigSchema: z.ZodObject<{
|
|
3
|
+
apiKey: z.ZodString;
|
|
4
|
+
apiUrl: z.ZodDefault<z.ZodString>;
|
|
5
|
+
branchName: z.ZodDefault<z.ZodString>;
|
|
6
|
+
browser: z.ZodOptional<z.ZodString>;
|
|
7
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
8
|
+
customTags: z.ZodOptional<z.ZodString>;
|
|
9
|
+
device: z.ZodOptional<z.ZodString>;
|
|
10
|
+
enableSoftAssert: z.ZodDefault<z.ZodType<boolean, z.ZodTypeDef, boolean>>;
|
|
11
|
+
os: z.ZodOptional<z.ZodString>;
|
|
12
|
+
pixelToPixelDiffTolerance: z.ZodOptional<z.ZodType<number, z.ZodTypeDef, number>>;
|
|
13
|
+
projectUuid: z.ZodString;
|
|
14
|
+
viewport: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
apiKey: string;
|
|
17
|
+
apiUrl: string;
|
|
18
|
+
branchName: string;
|
|
19
|
+
enableSoftAssert: boolean;
|
|
20
|
+
projectUuid: string;
|
|
21
|
+
browser?: string | undefined;
|
|
22
|
+
comment?: string | undefined;
|
|
23
|
+
customTags?: string | undefined;
|
|
24
|
+
pixelToPixelDiffTolerance?: number | undefined;
|
|
25
|
+
viewport?: string | undefined;
|
|
26
|
+
device?: string | undefined;
|
|
27
|
+
os?: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
apiKey: string;
|
|
30
|
+
projectUuid: string;
|
|
31
|
+
browser?: string | undefined;
|
|
32
|
+
comment?: string | undefined;
|
|
33
|
+
customTags?: string | undefined;
|
|
34
|
+
pixelToPixelDiffTolerance?: number | undefined;
|
|
35
|
+
viewport?: string | undefined;
|
|
36
|
+
apiUrl?: string | undefined;
|
|
37
|
+
branchName?: string | undefined;
|
|
38
|
+
device?: string | undefined;
|
|
39
|
+
enableSoftAssert?: boolean | undefined;
|
|
40
|
+
os?: string | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
type ApolloAdapterConfig = z.infer<typeof ApolloAdapterConfigSchema>;
|
|
43
|
+
declare const SuiteIntegrationConfigApolloPayloadSchema: z.ZodObject<{
|
|
44
|
+
branchName: z.ZodString;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
branchName: string;
|
|
47
|
+
}, {
|
|
48
|
+
branchName: string;
|
|
49
|
+
}>;
|
|
50
|
+
type SuiteIntegrationConfigApolloPayload = z.infer<typeof SuiteIntegrationConfigApolloPayloadSchema>;
|
|
51
|
+
declare const CreateIntegrationSuiteApolloPayloadSchema: z.ZodObject<{
|
|
52
|
+
name: z.ZodString;
|
|
53
|
+
projectUuid: z.ZodString;
|
|
54
|
+
suiteIntegrationConfig: z.ZodObject<{
|
|
55
|
+
branchName: z.ZodString;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
branchName: string;
|
|
58
|
+
}, {
|
|
59
|
+
branchName: string;
|
|
60
|
+
}>;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
name: string;
|
|
63
|
+
projectUuid: string;
|
|
64
|
+
suiteIntegrationConfig: {
|
|
65
|
+
branchName: string;
|
|
66
|
+
};
|
|
67
|
+
}, {
|
|
68
|
+
name: string;
|
|
69
|
+
projectUuid: string;
|
|
70
|
+
suiteIntegrationConfig: {
|
|
71
|
+
branchName: string;
|
|
72
|
+
};
|
|
73
|
+
}>;
|
|
74
|
+
type CreateIntegrationSuiteApolloPayload = z.infer<typeof CreateIntegrationSuiteApolloPayloadSchema>;
|
|
75
|
+
declare const CreateIntegrationScenarioApolloPayloadSchema: z.ZodObject<{
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
projectUuid: z.ZodString;
|
|
78
|
+
suiteUuid: z.ZodString;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
name: string;
|
|
81
|
+
projectUuid: string;
|
|
82
|
+
suiteUuid: string;
|
|
83
|
+
}, {
|
|
84
|
+
name: string;
|
|
85
|
+
projectUuid: string;
|
|
86
|
+
suiteUuid: string;
|
|
87
|
+
}>;
|
|
88
|
+
type CreateIntegrationScenarioApolloPayload = z.infer<typeof CreateIntegrationScenarioApolloPayloadSchema>;
|
|
89
|
+
declare const StopIntegrationScenarioApolloPayloadSchema: z.ZodObject<{
|
|
90
|
+
projectUuid: z.ZodString;
|
|
91
|
+
scenarioUuid: z.ZodString;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
projectUuid: string;
|
|
94
|
+
scenarioUuid: string;
|
|
95
|
+
}, {
|
|
96
|
+
projectUuid: string;
|
|
97
|
+
scenarioUuid: string;
|
|
98
|
+
}>;
|
|
99
|
+
type StopIntegrationScenarioApolloPayload = z.infer<typeof StopIntegrationScenarioApolloPayloadSchema>;
|
|
100
|
+
declare const IgnoreAreaApolloPayloadSchema: z.ZodObject<{
|
|
101
|
+
height: z.ZodPipeline<z.ZodType<number, z.ZodTypeDef, number>, z.ZodNumber>;
|
|
102
|
+
innerHeight: z.ZodNumber;
|
|
103
|
+
width: z.ZodPipeline<z.ZodType<number, z.ZodTypeDef, number>, z.ZodNumber>;
|
|
104
|
+
x: z.ZodPipeline<z.ZodType<number, z.ZodTypeDef, number>, z.ZodNumber>;
|
|
105
|
+
y: z.ZodPipeline<z.ZodType<number, z.ZodTypeDef, number>, z.ZodNumber>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
height: number;
|
|
108
|
+
width: number;
|
|
109
|
+
x: number;
|
|
110
|
+
y: number;
|
|
111
|
+
innerHeight: number;
|
|
112
|
+
}, {
|
|
113
|
+
height: number;
|
|
114
|
+
width: number;
|
|
115
|
+
x: number;
|
|
116
|
+
y: number;
|
|
117
|
+
innerHeight: number;
|
|
118
|
+
}>;
|
|
119
|
+
type IgnoreAreaApolloPayload = z.infer<typeof IgnoreAreaApolloPayloadSchema>;
|
|
120
|
+
declare const CreateIntegrationStepConfigApolloPayloadSchema: z.ZodObject<{
|
|
121
|
+
browser: z.ZodOptional<z.ZodString>;
|
|
122
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
123
|
+
customTags: z.ZodOptional<z.ZodString>;
|
|
124
|
+
device: z.ZodOptional<z.ZodString>;
|
|
125
|
+
os: z.ZodOptional<z.ZodString>;
|
|
126
|
+
pixelToPixelDiffTolerance: z.ZodOptional<z.ZodType<number, z.ZodTypeDef, number>>;
|
|
127
|
+
viewport: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
browser?: string | undefined;
|
|
130
|
+
comment?: string | undefined;
|
|
131
|
+
customTags?: string | undefined;
|
|
132
|
+
pixelToPixelDiffTolerance?: number | undefined;
|
|
133
|
+
viewport?: string | undefined;
|
|
134
|
+
device?: string | undefined;
|
|
135
|
+
os?: string | undefined;
|
|
136
|
+
}, {
|
|
137
|
+
browser?: string | undefined;
|
|
138
|
+
comment?: string | undefined;
|
|
139
|
+
customTags?: string | undefined;
|
|
140
|
+
pixelToPixelDiffTolerance?: number | undefined;
|
|
141
|
+
viewport?: string | undefined;
|
|
142
|
+
device?: string | undefined;
|
|
143
|
+
os?: string | undefined;
|
|
144
|
+
}>;
|
|
145
|
+
type CreateIntegrationStepConfigApolloPayload = z.infer<typeof CreateIntegrationStepConfigApolloPayloadSchema>;
|
|
146
|
+
declare const CreateIntegrationStepApolloPayloadSchema: z.ZodObject<{
|
|
147
|
+
browser: z.ZodOptional<z.ZodString>;
|
|
148
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
149
|
+
customTags: z.ZodOptional<z.ZodString>;
|
|
150
|
+
ignoreAreas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
151
|
+
height: z.ZodPipeline<z.ZodType<number, z.ZodTypeDef, number>, z.ZodNumber>;
|
|
152
|
+
innerHeight: z.ZodNumber;
|
|
153
|
+
width: z.ZodPipeline<z.ZodType<number, z.ZodTypeDef, number>, z.ZodNumber>;
|
|
154
|
+
x: z.ZodPipeline<z.ZodType<number, z.ZodTypeDef, number>, z.ZodNumber>;
|
|
155
|
+
y: z.ZodPipeline<z.ZodType<number, z.ZodTypeDef, number>, z.ZodNumber>;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
height: number;
|
|
158
|
+
width: number;
|
|
159
|
+
x: number;
|
|
160
|
+
y: number;
|
|
161
|
+
innerHeight: number;
|
|
162
|
+
}, {
|
|
163
|
+
height: number;
|
|
164
|
+
width: number;
|
|
165
|
+
x: number;
|
|
166
|
+
y: number;
|
|
167
|
+
innerHeight: number;
|
|
168
|
+
}>, "many">>;
|
|
169
|
+
imageBase64: z.ZodString;
|
|
170
|
+
pixelToPixel_diff_tolerance: z.ZodOptional<z.ZodType<number, z.ZodTypeDef, number>>;
|
|
171
|
+
projectUuid: z.ZodString;
|
|
172
|
+
scenarioUuid: z.ZodString;
|
|
173
|
+
stepName: z.ZodString;
|
|
174
|
+
trackName: z.ZodString;
|
|
175
|
+
viewport: z.ZodOptional<z.ZodString>;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
imageBase64: string;
|
|
178
|
+
stepName: string;
|
|
179
|
+
projectUuid: string;
|
|
180
|
+
scenarioUuid: string;
|
|
181
|
+
trackName: string;
|
|
182
|
+
browser?: string | undefined;
|
|
183
|
+
comment?: string | undefined;
|
|
184
|
+
customTags?: string | undefined;
|
|
185
|
+
viewport?: string | undefined;
|
|
186
|
+
ignoreAreas?: {
|
|
187
|
+
height: number;
|
|
188
|
+
width: number;
|
|
189
|
+
x: number;
|
|
190
|
+
y: number;
|
|
191
|
+
innerHeight: number;
|
|
192
|
+
}[] | undefined;
|
|
193
|
+
pixelToPixel_diff_tolerance?: number | undefined;
|
|
194
|
+
}, {
|
|
195
|
+
imageBase64: string;
|
|
196
|
+
stepName: string;
|
|
197
|
+
projectUuid: string;
|
|
198
|
+
scenarioUuid: string;
|
|
199
|
+
trackName: string;
|
|
200
|
+
browser?: string | undefined;
|
|
201
|
+
comment?: string | undefined;
|
|
202
|
+
customTags?: string | undefined;
|
|
203
|
+
viewport?: string | undefined;
|
|
204
|
+
ignoreAreas?: {
|
|
205
|
+
height: number;
|
|
206
|
+
width: number;
|
|
207
|
+
x: number;
|
|
208
|
+
y: number;
|
|
209
|
+
innerHeight: number;
|
|
210
|
+
}[] | undefined;
|
|
211
|
+
pixelToPixel_diff_tolerance?: number | undefined;
|
|
212
|
+
}>;
|
|
213
|
+
type CreateIntegrationStepApolloPayload = z.infer<typeof CreateIntegrationStepApolloPayloadSchema>;
|
|
214
|
+
declare const CreateIntegrationStepApolloResponseSchema: z.ZodObject<{
|
|
215
|
+
diffPercent: z.ZodOptional<z.ZodNullable<z.ZodType<number, z.ZodTypeDef, number>>>;
|
|
216
|
+
stepName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
|
+
pixelToPixelDiffTolerance: z.ZodOptional<z.ZodNullable<z.ZodType<number, z.ZodTypeDef, number>>>;
|
|
218
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
url?: string | null | undefined;
|
|
222
|
+
status?: string | null | undefined;
|
|
223
|
+
stepName?: string | null | undefined;
|
|
224
|
+
pixelToPixelDiffTolerance?: number | null | undefined;
|
|
225
|
+
diffPercent?: number | null | undefined;
|
|
226
|
+
}, {
|
|
227
|
+
url?: string | null | undefined;
|
|
228
|
+
status?: string | null | undefined;
|
|
229
|
+
stepName?: string | null | undefined;
|
|
230
|
+
pixelToPixelDiffTolerance?: number | null | undefined;
|
|
231
|
+
diffPercent?: number | null | undefined;
|
|
232
|
+
}>;
|
|
233
|
+
type CreateIntegrationStepApolloResponse = z.infer<typeof CreateIntegrationStepApolloResponseSchema>;
|
|
234
|
+
export { ApolloAdapterConfig, ApolloAdapterConfigSchema, CreateIntegrationScenarioApolloPayload, CreateIntegrationScenarioApolloPayloadSchema, CreateIntegrationStepApolloPayload, CreateIntegrationStepApolloPayloadSchema, CreateIntegrationStepApolloResponse, CreateIntegrationStepApolloResponseSchema, CreateIntegrationStepConfigApolloPayload, CreateIntegrationStepConfigApolloPayloadSchema, CreateIntegrationSuiteApolloPayload, CreateIntegrationSuiteApolloPayloadSchema, IgnoreAreaApolloPayload, IgnoreAreaApolloPayloadSchema, StopIntegrationScenarioApolloPayload, StopIntegrationScenarioApolloPayloadSchema, SuiteIntegrationConfigApolloPayload, SuiteIntegrationConfigApolloPayloadSchema, };
|
|
235
|
+
//# sourceMappingURL=interface.d.ts.map
|