From 3147dc2ce8b66040a62fa4afdd80236807eb0632 Mon Sep 17 00:00:00 2001 From: mobilewix Date: Sun, 14 Jan 2024 08:50:05 +0000 Subject: [PATCH] Deploy website - based on 688d24f952937c0a257aa02616c015a508aeb9d0 --- 404.html | 4 ++-- assets/js/398b3246.18f89764.js | 1 + assets/js/398b3246.e3816650.js | 1 - ...runtime~main.02c6e6f4.js => runtime~main.f70c24d5.js} | 2 +- blog/2022/11/10/detox-20-is-out/index.html | 4 ++-- blog/archive/index.html | 4 ++-- blog/index.html | 4 ++-- blog/tags/genymotion/index.html | 4 ++-- blog/tags/index.html | 4 ++-- blog/tags/major-release/index.html | 4 ++-- docs/19.x/api/actions-on-element/index.html | 4 ++-- docs/19.x/api/artifacts/index.html | 4 ++-- docs/19.x/api/detox-cli/index.html | 4 ++-- docs/19.x/api/detox-object-api/index.html | 4 ++-- docs/19.x/api/device-object-api/index.html | 4 ++-- docs/19.x/api/expect/index.html | 4 ++-- docs/19.x/api/launch-args/index.html | 4 ++-- docs/19.x/api/matchers/index.html | 4 ++-- docs/19.x/api/mocking-open-with-url/index.html | 4 ++-- docs/19.x/api/mocking-user-activity/index.html | 4 ++-- docs/19.x/api/mocking-user-notifications/index.html | 4 ++-- docs/19.x/api/screenshots/index.html | 4 ++-- docs/19.x/api/test-lifecycle/index.html | 4 ++-- docs/19.x/config/overview/index.html | 4 ++-- docs/19.x/contributing/index.html | 4 ++-- docs/19.x/guide/debugging-in-android-studio/index.html | 4 ++-- docs/19.x/guide/debugging-in-xcode/index.html | 4 ++-- .../19.x/guide/developing-while-writing-tests/index.html | 4 ++-- docs/19.x/guide/expo/index.html | 4 ++-- docs/19.x/guide/jest/index.html | 4 ++-- docs/19.x/guide/migration/index.html | 4 ++-- docs/19.x/guide/mocha/index.html | 4 ++-- docs/19.x/guide/mocking/index.html | 4 ++-- docs/19.x/guide/parallel-test-execution/index.html | 4 ++-- docs/19.x/guide/running-locally/index.html | 4 ++-- docs/19.x/guide/running-on-ci/index.html | 4 ++-- docs/19.x/guide/third-party-drivers/index.html | 4 ++-- docs/19.x/guide/uninstalling/index.html | 4 ++-- docs/19.x/index.html | 4 ++-- docs/19.x/introduction/android-dev-env/index.html | 4 ++-- docs/19.x/introduction/android/index.html | 4 ++-- docs/19.x/introduction/design-principles/index.html | 4 ++-- docs/19.x/introduction/getting-started/index.html | 4 ++-- docs/19.x/introduction/how-detox-works/index.html | 4 ++-- docs/19.x/introduction/ios-dev-env/index.html | 4 ++-- docs/19.x/introduction/ios/index.html | 4 ++-- docs/19.x/introduction/workflows/index.html | 4 ++-- docs/19.x/introduction/writing-first-test/index.html | 4 ++-- docs/19.x/troubleshooting/building-the-app/index.html | 4 ++-- docs/19.x/troubleshooting/flakiness/index.html | 4 ++-- docs/19.x/troubleshooting/running-tests/index.html | 4 ++-- docs/19.x/troubleshooting/synchronization/index.html | 4 ++-- docs/19.x/troubleshooting/troubleshooting/index.html | 4 ++-- docs/api/actions/index.html | 4 ++-- docs/api/device/index.html | 4 ++-- docs/api/expect/index.html | 4 ++-- docs/api/internals/index.html | 4 ++-- docs/api/logger/index.html | 4 ++-- docs/api/matchers/index.html | 4 ++-- docs/api/webviews/index.html | 4 ++-- docs/articles/design-principles/index.html | 4 ++-- docs/articles/how-detox-works/index.html | 4 ++-- docs/articles/third-party-drivers/index.html | 4 ++-- docs/cli/build-framework-cache/index.html | 4 ++-- docs/cli/build/index.html | 4 ++-- docs/cli/clean-framework-cache/index.html | 4 ++-- docs/cli/init/index.html | 4 ++-- docs/cli/overview/index.html | 4 ++-- docs/cli/rebuild-framework-cache/index.html | 4 ++-- docs/cli/recorder/index.html | 4 ++-- docs/cli/reset-lock-file/index.html | 4 ++-- docs/cli/run-server/index.html | 4 ++-- docs/cli/start/index.html | 4 ++-- docs/cli/test/index.html | 4 ++-- docs/config/apps/index.html | 4 ++-- docs/config/artifacts/index.html | 4 ++-- docs/config/behavior/index.html | 4 ++-- docs/config/devices/index.html | 4 ++-- docs/config/logger/index.html | 4 ++-- docs/config/overview/index.html | 4 ++-- docs/config/session/index.html | 4 ++-- docs/config/testRunner/index.html | 4 ++-- docs/contributing/code-of-conduct/index.html | 4 ++-- docs/contributing/code/building-and-testing/index.html | 4 ++-- docs/contributing/code/example-projects/index.html | 4 ++-- docs/contributing/code/overview/index.html | 4 ++-- .../contributing/code/reviewing-pull-requests/index.html | 4 ++-- .../code/setting-up-the-dev-environment/index.html | 4 ++-- .../code/submitting-pull-requests/index.html | 4 ++-- docs/contributing/documentation/index.html | 4 ++-- docs/contributing/feature-requests/index.html | 4 ++-- docs/contributing/index.html | 4 ++-- .../questions/answering-questions/index.html | 4 ++-- docs/contributing/questions/asking-questions/index.html | 4 ++-- docs/contributing/reporting-bugs/index.html | 4 ++-- docs/demo/index.html | 4 ++-- docs/guide/android-dev-env/index.html | 4 ++-- docs/guide/cucumber-js-integration/index.html | 4 ++-- docs/guide/developing-while-writing-tests/index.html | 4 ++-- docs/guide/genymotion-saas/index.html | 4 ++-- docs/guide/investigating-test-failure/index.html | 4 ++-- docs/guide/launch-args/index.html | 4 ++-- docs/guide/migration/index.html | 4 ++-- docs/guide/mocking-open-with-url/index.html | 4 ++-- docs/guide/mocking-user-activity/index.html | 4 ++-- docs/guide/mocking-user-notifications/index.html | 4 ++-- docs/guide/mocking/index.html | 4 ++-- docs/guide/parallel-test-execution/index.html | 4 ++-- docs/guide/proguard-configuration/index.html | 4 ++-- docs/guide/taking-screenshots/index.html | 4 ++-- docs/guide/test-id/index.html | 4 ++-- docs/guide/typescript/index.html | 4 ++-- docs/guide/uninstalling/index.html | 4 ++-- docs/introduction/debugging/index.html | 4 ++-- docs/introduction/environment-setup/index.html | 4 ++-- docs/introduction/getting-started/index.html | 4 ++-- docs/introduction/preparing-for-ci/index.html | 4 ++-- docs/introduction/project-setup/index.html | 4 ++-- docs/introduction/your-first-test/index.html | 4 ++-- docs/next/api/actions/index.html | 4 ++-- docs/next/api/device/index.html | 9 +++++---- docs/next/api/expect/index.html | 4 ++-- docs/next/api/internals/index.html | 4 ++-- docs/next/api/logger/index.html | 4 ++-- docs/next/api/matchers/index.html | 4 ++-- docs/next/api/webviews/index.html | 4 ++-- docs/next/articles/design-principles/index.html | 4 ++-- docs/next/articles/how-detox-works/index.html | 4 ++-- docs/next/articles/third-party-drivers/index.html | 4 ++-- docs/next/cli/build-framework-cache/index.html | 4 ++-- docs/next/cli/build/index.html | 4 ++-- docs/next/cli/clean-framework-cache/index.html | 4 ++-- docs/next/cli/init/index.html | 4 ++-- docs/next/cli/overview/index.html | 4 ++-- docs/next/cli/rebuild-framework-cache/index.html | 4 ++-- docs/next/cli/recorder/index.html | 4 ++-- docs/next/cli/reset-lock-file/index.html | 4 ++-- docs/next/cli/run-server/index.html | 4 ++-- docs/next/cli/start/index.html | 4 ++-- docs/next/cli/test/index.html | 4 ++-- docs/next/config/apps/index.html | 4 ++-- docs/next/config/artifacts/index.html | 4 ++-- docs/next/config/behavior/index.html | 4 ++-- docs/next/config/devices/index.html | 4 ++-- docs/next/config/logger/index.html | 4 ++-- docs/next/config/overview/index.html | 4 ++-- docs/next/config/session/index.html | 4 ++-- docs/next/config/testRunner/index.html | 4 ++-- docs/next/contributing/code-of-conduct/index.html | 4 ++-- .../contributing/code/building-and-testing/index.html | 4 ++-- docs/next/contributing/code/example-projects/index.html | 4 ++-- docs/next/contributing/code/overview/index.html | 4 ++-- .../contributing/code/reviewing-pull-requests/index.html | 4 ++-- .../code/setting-up-the-dev-environment/index.html | 4 ++-- .../code/submitting-pull-requests/index.html | 4 ++-- docs/next/contributing/documentation/index.html | 4 ++-- docs/next/contributing/feature-requests/index.html | 4 ++-- docs/next/contributing/index.html | 4 ++-- .../questions/answering-questions/index.html | 4 ++-- .../contributing/questions/asking-questions/index.html | 4 ++-- docs/next/contributing/reporting-bugs/index.html | 4 ++-- docs/next/demo/index.html | 4 ++-- docs/next/guide/android-dev-env/index.html | 4 ++-- docs/next/guide/cucumber-js-integration/index.html | 4 ++-- .../next/guide/developing-while-writing-tests/index.html | 4 ++-- docs/next/guide/genymotion-saas/index.html | 4 ++-- docs/next/guide/investigating-test-failure/index.html | 4 ++-- docs/next/guide/launch-args/index.html | 4 ++-- docs/next/guide/migration/index.html | 4 ++-- docs/next/guide/mocking-open-with-url/index.html | 4 ++-- docs/next/guide/mocking-user-activity/index.html | 4 ++-- docs/next/guide/mocking-user-notifications/index.html | 4 ++-- docs/next/guide/mocking/index.html | 4 ++-- docs/next/guide/parallel-test-execution/index.html | 4 ++-- docs/next/guide/proguard-configuration/index.html | 4 ++-- docs/next/guide/taking-screenshots/index.html | 4 ++-- docs/next/guide/test-id/index.html | 4 ++-- docs/next/guide/typescript/index.html | 4 ++-- docs/next/guide/uninstalling/index.html | 4 ++-- docs/next/introduction/debugging/index.html | 4 ++-- docs/next/introduction/environment-setup/index.html | 4 ++-- docs/next/introduction/getting-started/index.html | 4 ++-- docs/next/introduction/preparing-for-ci/index.html | 4 ++-- docs/next/introduction/project-setup/index.html | 4 ++-- docs/next/introduction/your-first-test/index.html | 4 ++-- docs/next/troubleshooting/artifacts/index.html | 4 ++-- docs/next/troubleshooting/building-the-app/index.html | 4 ++-- docs/next/troubleshooting/flakiness/index.html | 4 ++-- docs/next/troubleshooting/running-tests/index.html | 4 ++-- docs/next/troubleshooting/synchronization/index.html | 4 ++-- docs/troubleshooting/artifacts/index.html | 4 ++-- docs/troubleshooting/building-the-app/index.html | 4 ++-- docs/troubleshooting/flakiness/index.html | 4 ++-- docs/troubleshooting/running-tests/index.html | 4 ++-- docs/troubleshooting/synchronization/index.html | 4 ++-- index.html | 4 ++-- search/index.html | 4 ++-- showcase/index.html | 4 ++-- 198 files changed, 395 insertions(+), 394 deletions(-) create mode 100644 assets/js/398b3246.18f89764.js delete mode 100644 assets/js/398b3246.e3816650.js rename assets/js/{runtime~main.02c6e6f4.js => runtime~main.f70c24d5.js} (99%) diff --git a/404.html b/404.html index 694243d146..bd3ed43169 100644 --- a/404.html +++ b/404.html @@ -11,13 +11,13 @@ - +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- + \ No newline at end of file diff --git a/assets/js/398b3246.18f89764.js b/assets/js/398b3246.18f89764.js new file mode 100644 index 0000000000..0da513a48b --- /dev/null +++ b/assets/js/398b3246.18f89764.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[694],{3905:(e,t,n)=>{n.d(t,{Zo:()=>d,kt:()=>m});var a=n(67294);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var s=a.createContext({}),c=function(e){var t=a.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):r(r({},t),e)),n},d=function(e){var t=c(e.components);return a.createElement(s.Provider,{value:t},e.children)},p="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},h=a.forwardRef((function(e,t){var n=e.components,i=e.mdxType,l=e.originalType,s=e.parentName,d=o(e,["components","mdxType","originalType","parentName"]),p=c(n),h=i,m=p["".concat(s,".").concat(h)]||p[h]||u[h]||l;return n?a.createElement(m,r(r({ref:t},d),{},{components:n})):a.createElement(m,r({ref:t},d))}));function m(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var l=n.length,r=new Array(l);r[0]=h;var o={};for(var s in t)hasOwnProperty.call(t,s)&&(o[s]=t[s]);o.originalType=e,o[p]="string"==typeof e?e:i,r[1]=o;for(var c=2;c{n.r(t),n.d(t,{assets:()=>s,contentTitle:()=>r,default:()=>u,frontMatter:()=>l,metadata:()=>o,toc:()=>c});var a=n(87462),i=(n(67294),n(3905));const l={},r="Device",o={unversionedId:"api/device",id:"api/device",title:"Device",description:"The device object is globally available in every test file, unless you use exposeGlobals: false in the behavior config,",source:"@site/../docs/api/device.md",sourceDirName:"api",slug:"/api/device",permalink:"/Detox/docs/next/api/device",draft:!1,editUrl:"https://github.com/wix/Detox/edit/master/docs/../docs/api/device.md",tags:[],version:"current",frontMatter:{},sidebar:"apiSidebar",previous:{title:"detox run-server",permalink:"/Detox/docs/next/cli/run-server"},next:{title:"Matchers",permalink:"/Detox/docs/next/api/matchers"}},s={},c=[{value:"Public Properties",id:"public-properties",level:2},{value:"device.id",id:"deviceid",level:3},{value:"device.name",id:"devicename",level:3},{value:"device.appLaunchArgs",id:"deviceapplaunchargs",level:3},{value:"Methods",id:"methods",level:2},{value:"device.selectApp(name)",id:"deviceselectappname",level:3},{value:"device.launchApp(params)",id:"devicelaunchappparams",level:3},{value:"1. newInstance\u2014Launching a New Instance of the App",id:"1-newinstancelaunching-a-new-instance-of-the-app",level:4},{value:"2. permissions\u2014Set Runtime Permissions (iOS Only)",id:"2-permissionsset-runtime-permissions-ios-only",level:4},{value:"Supported Permissions",id:"supported-permissions",level:5},{value:"3. url\u2014Launching with URL",id:"3-urllaunching-with-url",level:4},{value:"4. userNotification\u2014Launching with User Notifications",id:"4-usernotificationlaunching-with-user-notifications",level:4},{value:"5. userActivity\u2014Launch with User Activity (iOS Only)",id:"5-useractivitylaunch-with-user-activity-ios-only",level:4},{value:"6. delete\u2014Delete and Reinstall Application Before Launching",id:"6-deletedelete-and-reinstall-application-before-launching",level:4},{value:"7. launchArgs\u2014Additional Process Launch Arguments",id:"7-launchargsadditional-process-launch-arguments",level:4},{value:"8. disableTouchIndicators\u2014Disable Touch Indicators (iOS Only)",id:"8-disabletouchindicatorsdisable-touch-indicators-ios-only",level:4},{value:"9. languageAndLocale\u2014Launch with a Specific Language and/or Local (iOS Only)",id:"9-languageandlocalelaunch-with-a-specific-language-andor-local-ios-only",level:4},{value:"10. detoxEnableSynchronization\u2014Initialize Detox with synchronization enabled or disabled at app launch",id:"10-detoxenablesynchronizationinitialize-detox-with-synchronization-enabled-or-disabled-at-app-launch",level:4},{value:"11. detoxURLBlacklistRegex\u2014Initialize the URL Blacklist at app launch",id:"11-detoxurlblacklistregexinitialize-the-url-blacklist-at-app-launch",level:4},{value:"device.terminateApp()",id:"deviceterminateapp",level:3},{value:"device.sendToHome()",id:"devicesendtohome",level:3},{value:"device.reloadReactNative()",id:"devicereloadreactnative",level:3},{value:"device.installApp()",id:"deviceinstallapp",level:3},{value:"device.uninstallApp()",id:"deviceuninstallapp",level:3},{value:"device.openURL({url, sourceApp[optional]})",id:"deviceopenurlurl-sourceappoptional",level:3},{value:"device.sendUserNotification(params)",id:"devicesendusernotificationparams",level:3},{value:"device.sendUserActivity(params) iOS Only",id:"devicesenduseractivityparams-ios-only",level:3},{value:"device.setOrientation(orientation)",id:"devicesetorientationorientation",level:3},{value:"device.setLocation(lat, lon)",id:"devicesetlocationlat-lon",level:3},{value:"device.disableSynchronization()",id:"devicedisablesynchronization",level:3},{value:"device.enableSynchronization()",id:"deviceenablesynchronization",level:3},{value:"device.setURLBlacklist([urls])",id:"deviceseturlblacklisturls",level:3},{value:"device.resetContentAndSettings() iOS Only",id:"deviceresetcontentandsettings-ios-only",level:3},{value:"device.getPlatform()",id:"devicegetplatform",level:3},{value:"device.takeScreenshot([name])",id:"devicetakescreenshotname",level:3},{value:"device.captureViewHierarchy([name])",id:"devicecaptureviewhierarchyname",level:3},{value:"device.shake() iOS Only",id:"deviceshake-ios-only",level:3},{value:"device.setBiometricEnrollment(bool) iOS Only",id:"devicesetbiometricenrollmentbool-ios-only",level:3},{value:"device.matchFace() iOS Only",id:"devicematchface-ios-only",level:3},{value:"device.unmatchFace() iOS Only",id:"deviceunmatchface-ios-only",level:3},{value:"device.matchFinger() iOS Only",id:"devicematchfinger-ios-only",level:3},{value:"device.unmatchFinger() iOS Only",id:"deviceunmatchfinger-ios-only",level:3},{value:"device.clearKeychain() iOS Only",id:"deviceclearkeychain-ios-only",level:3},{value:"device.setStatusBar() iOS Only",id:"devicesetstatusbar-ios-only",level:3},{value:"device.resetStatusBar() iOS Only",id:"deviceresetstatusbar-ios-only",level:3},{value:"device.reverseTcpPort() Android Only",id:"devicereversetcpport-android-only",level:3},{value:"device.unreverseTcpPort() Android Only",id:"deviceunreversetcpport-android-only",level:3},{value:"device.pressBack() Android Only",id:"devicepressback-android-only",level:3},{value:"device.getUiDevice() Android Only",id:"devicegetuidevice-android-only",level:3}],d={toc:c},p="wrapper";function u(e){let{components:t,...n}=e;return(0,i.kt)(p,(0,a.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"device"},"Device"),(0,i.kt)("p",null,"The ",(0,i.kt)("inlineCode",{parentName:"p"},"device")," object is globally available in every test file, unless you use ",(0,i.kt)("inlineCode",{parentName:"p"},"exposeGlobals: false")," in the behavior config,\nand even then you can import it from Detox package:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"const { device } = require('detox');\n")),(0,i.kt)("p",null,"It enables control over the current attached device."),(0,i.kt)("h2",{id:"public-properties"},"Public Properties"),(0,i.kt)("h3",{id:"deviceid"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.id")),(0,i.kt)("p",null,"Holds the environment-unique ID of the device - namely, the ",(0,i.kt)("inlineCode",{parentName:"p"},"adb")," ID on Android (e.g. ",(0,i.kt)("inlineCode",{parentName:"p"},"emulator-5554"),") and the Mac-global simulator UDID on iOS, as used by ",(0,i.kt)("inlineCode",{parentName:"p"},"simctl")," (e.g. ",(0,i.kt)("inlineCode",{parentName:"p"},"AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE"),")."),(0,i.kt)("p",null,"The value will be ",(0,i.kt)("inlineCode",{parentName:"p"},"undefined")," until the device is properly ",(0,i.kt)("em",{parentName:"p"},"prepared")," (i.e. in ",(0,i.kt)("inlineCode",{parentName:"p"},"detox.init()"),")."),(0,i.kt)("h3",{id:"devicename"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.name")),(0,i.kt)("p",null,"Holds a descriptive name of the device. Example: ",(0,i.kt)("inlineCode",{parentName:"p"},"emulator-5554 (Pixel_API_26)")),(0,i.kt)("p",null,"The value will be ",(0,i.kt)("inlineCode",{parentName:"p"},"undefined")," until the device is properly ",(0,i.kt)("em",{parentName:"p"},"prepared")," (i.e. in ",(0,i.kt)("inlineCode",{parentName:"p"},"detox.init()"),")."),(0,i.kt)("h3",{id:"deviceapplaunchargs"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.appLaunchArgs")),(0,i.kt)("p",null,"Access the launch-arguments predefined by the user in preliminary, static scopes such as the Detox ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/config/apps"},"configuration file"),"\nand ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/cli/test"},"command-line arguments"),". This access allows, through dedicated methods, for both value-querying and modification:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"// Modify some of the predefined arguments:\ndevice.appLaunchArgs.modify({\n mockServerPort: 1234,\n});\n// Retrieve the arguments:\ndevice.appLaunchArgs.get(); // ==> { mockServerPort: 1234 }\n// Reset (i.e. remove all arguments):\ndevice.appLaunchArgs.reset();\n")),(0,i.kt)("p",null,"In multi-app environments, you might want to persist your values between ",(0,i.kt)("inlineCode",{parentName:"p"},"device.selectApp(name)")," calls:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"device.appLaunchArgs.modify({ transientArg: 'value' });\ndevice.appLaunchArgs.shared.modify({\n permanentMockServerPort: 1234,\n};\n\ndevice.appLaunchArgs.get(); // ==> { permanentMockServerPort: 1234, transientArg: 'value' }\ndevice.appLaunchArgs.shared.get(); // ==> { permanentMockServerPort: 1234 }\n\nawait device.selectApp('anotherApp');\ndevice.appLaunchArgs.get(); // ==> { permanentMockServerPort: 1234 }\ndevice.appLaunchArgs.reset();\ndevice.appLaunchArgs.get(); // ==> { permanentMockServerPort: 1234 }\ndevice.appLaunchArgs.shared.reset();\ndevice.appLaunchArgs.get(); // ==> {}\n")),(0,i.kt)("p",null,"This is the most flexible way of editing the launch arguments. Refer to the ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/launch-args"},"launch arguments guide")," for complete details."),(0,i.kt)("h2",{id:"methods"},"Methods"),(0,i.kt)("h3",{id:"deviceselectappname"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.selectApp(name)")),(0,i.kt)("p",null,"Use ",(0,i.kt)("strong",{parentName:"p"},"only for advanced multi-app configs")," when you need to switch between your apps\nwithin the same test scenario. Refer to the ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/config/apps"},"configuration doc"),"\nto discover how to define multiple apps with different ",(0,i.kt)("inlineCode",{parentName:"p"},"name"),"s."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.selectApp('myAppName');\n")),(0,i.kt)("p",null,"As a side effect (due to the current architectural limitation) running ",(0,i.kt)("inlineCode",{parentName:"p"},"device.selectApp")," terminates the previous\napp that had been running before."),(0,i.kt)("h3",{id:"devicelaunchappparams"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.launchApp(params)")),(0,i.kt)("p",null,"Launch the app defined in the current ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/config/overview"},(0,i.kt)("inlineCode",{parentName:"a"},"configuration")),"."),(0,i.kt)("p",null,(0,i.kt)("inlineCode",{parentName:"p"},"params"),"\u2014object, containing one of more of the following keys and values:"),(0,i.kt)("h4",{id:"1-newinstancelaunching-a-new-instance-of-the-app"},"1. ",(0,i.kt)("inlineCode",{parentName:"h4"},"newInstance"),"\u2014Launching a New Instance of the App"),(0,i.kt)("p",null,"Terminate the app and launch it again."),(0,i.kt)("p",null,"If set to ",(0,i.kt)("inlineCode",{parentName:"p"},"false"),", the device will try to resume the app (e.g. bring from foreground to background). If the app isn\u2019t running, ",(0,i.kt)("strong",{parentName:"p"},"it will launch a new instance")," nonetheless. ",(0,i.kt)("strong",{parentName:"p"},"Default is ",(0,i.kt)("inlineCode",{parentName:"strong"},"false"),".")),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({newInstance: true});\n")),(0,i.kt)("h4",{id:"2-permissionsset-runtime-permissions-ios-only"},"2. ",(0,i.kt)("inlineCode",{parentName:"h4"},"permissions"),"\u2014Set Runtime Permissions (iOS Only)"),(0,i.kt)("p",null,"Grants or denies runtime permissions to your application. This will cause the app to terminate before permissions are applied."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({permissions: {calendar: 'YES'}});\n")),(0,i.kt)("p",null,"Detox uses ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/AppleSimulatorUtils"},"AppleSimUtils")," and ",(0,i.kt)("a",{parentName:"p",href:"https://nshipster.com/simctl/"},(0,i.kt)("inlineCode",{parentName:"a"},"xcrun simctl"))," to implement this functionality for iOS simulators.\nPlease make sure you have the most recent version of both tools installed, since we rely on their latest versions."),(0,i.kt)("h5",{id:"supported-permissions"},"Supported Permissions"),(0,i.kt)("table",null,(0,i.kt)("thead",{parentName:"table"},(0,i.kt)("tr",{parentName:"thead"},(0,i.kt)("th",{parentName:"tr",align:null},"Permission"),(0,i.kt)("th",{parentName:"tr",align:null},"Values"),(0,i.kt)("th",{parentName:"tr",align:null},"Notes"))),(0,i.kt)("tbody",{parentName:"table"},(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"location"),(0,i.kt)("td",{parentName:"tr",align:null},"always / inuse / never / unset"),(0,i.kt)("td",{parentName:"tr",align:null},"inuse - provides location access only when the app is in use")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"contacts"),(0,i.kt)("td",{parentName:"tr",align:null},"YES / NO / unset / limited"),(0,i.kt)("td",{parentName:"tr",align:null},"limited - grants limited access to contacts")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"photos"),(0,i.kt)("td",{parentName:"tr",align:null},"YES / NO / unset / limited"),(0,i.kt)("td",{parentName:"tr",align:null},"limited - grants limited access to photos")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"calendar"),(0,i.kt)("td",{parentName:"tr",align:null},"YES / NO / unset"),(0,i.kt)("td",{parentName:"tr",align:null})),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"camera"),(0,i.kt)("td",{parentName:"tr",align:null},"YES / NO / unset"),(0,i.kt)("td",{parentName:"tr",align:null})),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"medialibrary"),(0,i.kt)("td",{parentName:"tr",align:null},"YES / NO / unset"),(0,i.kt)("td",{parentName:"tr",align:null})),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"microphone"),(0,i.kt)("td",{parentName:"tr",align:null},"YES / NO / unset"),(0,i.kt)("td",{parentName:"tr",align:null})),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"motion"),(0,i.kt)("td",{parentName:"tr",align:null},"YES / NO / unset"),(0,i.kt)("td",{parentName:"tr",align:null})),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"reminders"),(0,i.kt)("td",{parentName:"tr",align:null},"YES / NO / unset"),(0,i.kt)("td",{parentName:"tr",align:null})),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"siri"),(0,i.kt)("td",{parentName:"tr",align:null},"YES / NO / unset"),(0,i.kt)("td",{parentName:"tr",align:null})),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"notifications"),(0,i.kt)("td",{parentName:"tr",align:null},"YES / NO / unset"),(0,i.kt)("td",{parentName:"tr",align:null},"Requires AppleSimUtils; unsupported by simctl")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"health"),(0,i.kt)("td",{parentName:"tr",align:null},"YES / NO / unset"),(0,i.kt)("td",{parentName:"tr",align:null},"Requires AppleSimUtils; unsupported by simctl")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"homekit"),(0,i.kt)("td",{parentName:"tr",align:null},"YES / NO / unset"),(0,i.kt)("td",{parentName:"tr",align:null},"Requires AppleSimUtils; unsupported by simctl")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"speech"),(0,i.kt)("td",{parentName:"tr",align:null},"YES / NO / unset"),(0,i.kt)("td",{parentName:"tr",align:null},"Requires AppleSimUtils; unsupported by simctl")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"faceid"),(0,i.kt)("td",{parentName:"tr",align:null},"YES / NO / unset"),(0,i.kt)("td",{parentName:"tr",align:null},"Requires AppleSimUtils; unsupported by simctl")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:null},"userTracking"),(0,i.kt)("td",{parentName:"tr",align:null},"YES / NO / unset"),(0,i.kt)("td",{parentName:"tr",align:null},"Requires AppleSimUtils; unsupported by simctl")))),(0,i.kt)("p",null,"Check Detox's ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/blob/master/detox/test/e2e/13.permissions.test.js"},"own test suite")," for usage examples."),(0,i.kt)("h4",{id:"3-urllaunching-with-url"},"3. ",(0,i.kt)("inlineCode",{parentName:"h4"},"url"),"\u2014Launching with URL"),(0,i.kt)("p",null,"Launches the app with the specified URL to test your app\u2019s deep link handling mechanism."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({url});\nawait device.launchApp({url, newInstance: true}); // Launch a new instance of the app\nawait device.launchApp({url, newInstance: false}); // Reuse existing instance\n")),(0,i.kt)("p",null,"Read more ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/mocking-open-with-url"},"here"),". Go back to subsection 1 to read about the full effect of the ",(0,i.kt)("inlineCode",{parentName:"p"},"newInstance")," argument."),(0,i.kt)("h4",{id:"4-usernotificationlaunching-with-user-notifications"},"4. ",(0,i.kt)("inlineCode",{parentName:"h4"},"userNotification"),"\u2014Launching with User Notifications"),(0,i.kt)("p",null,"Launches with the specified user notification."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({userNotification});\nawait device.launchApp({userNotification, newInstance: true}); // Launch a new instance of the app\nawait device.launchApp({userNotification, newInstance: false}); // Reuse existing instance\n")),(0,i.kt)("p",null,"Read more ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/mocking-user-notifications"},"here"),". Go back to subsection 1 to read about the full effect of the ",(0,i.kt)("inlineCode",{parentName:"p"},"newInstance")," argument."),(0,i.kt)("h4",{id:"5-useractivitylaunch-with-user-activity-ios-only"},"5. ",(0,i.kt)("inlineCode",{parentName:"h4"},"userActivity"),"\u2014Launch with User Activity (iOS Only)"),(0,i.kt)("p",null,"Launches the app with the specified user activity."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({userActivity: activity});\nawait device.launchApp({userActivity: activity, newInstance: true}); //Launch a new instance of the app\nawait device.launchApp({userActivity: activity, newInstance: false}); //Reuse existing instance\n")),(0,i.kt)("p",null,"Read more in ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/mocking-user-activity"},"here"),". Go back to subsection 1 to read about the full effect of the ",(0,i.kt)("inlineCode",{parentName:"p"},"newInstance")," argument."),(0,i.kt)("h4",{id:"6-deletedelete-and-reinstall-application-before-launching"},"6. ",(0,i.kt)("inlineCode",{parentName:"h4"},"delete"),"\u2014Delete and Reinstall Application Before Launching"),(0,i.kt)("p",null,"Before launching the application, it is uninstalled and then reinstalled."),(0,i.kt)("p",null,"A flag that enables relaunching into a fresh installation of the app (it will uninstall and install the binary). Default is ",(0,i.kt)("inlineCode",{parentName:"p"},"false"),"."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({delete: true});\n")),(0,i.kt)("h4",{id:"7-launchargsadditional-process-launch-arguments"},"7. ",(0,i.kt)("inlineCode",{parentName:"h4"},"launchArgs"),"\u2014Additional Process Launch Arguments"),(0,i.kt)("p",null,"Launches the app on the device with on-site, user-specified launch arguments:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},'await device.launchApp({\n launchArgs: {\n arg1: 1,\n arg2: "2",\n }\n});\n')),(0,i.kt)("p",null,"This is the most explicit and straightforward way of setting launch arguments. Refer to the ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/launch-args"},"launch arguments guide")," for a complete overview on app launch arguments."),(0,i.kt)("h4",{id:"8-disabletouchindicatorsdisable-touch-indicators-ios-only"},"8. ",(0,i.kt)("inlineCode",{parentName:"h4"},"disableTouchIndicators"),"\u2014Disable Touch Indicators (iOS Only)"),(0,i.kt)("p",null,"Disables touch indicators on iOS. Default is ",(0,i.kt)("inlineCode",{parentName:"p"},"false"),"."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({disableTouchIndicators: true});\n")),(0,i.kt)("h4",{id:"9-languageandlocalelaunch-with-a-specific-language-andor-local-ios-only"},"9. ",(0,i.kt)("inlineCode",{parentName:"h4"},"languageAndLocale"),"\u2014Launch with a Specific Language and/or Local (iOS Only)"),(0,i.kt)("p",null,"Launch the app with a specific system language"),(0,i.kt)("p",null,"Information about accepted values can be found ",(0,i.kt)("a",{parentName:"p",href:"https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html"},"here"),"."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},'await device.launchApp({\n languageAndLocale: {\n language: "es-MX",\n locale: "es-MX"\n }\n});\n')),(0,i.kt)("p",null,"With this API, you can run sets of E2E tests per language. For example:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"describe.each([\n ['es-MX'], ['fr-FR'], ['pt-BR'],\n])(`Test suite (locale: %s)`, (locale) => {\n beforeAll(async () => {\n await device.launchApp({\n newInstance: true,\n languageAndLocale: {\n language: locale,\n locale\n }\n });\n });\n\n test('some description', async () => {\n // \u2026\n });\n});\n")),(0,i.kt)("h4",{id:"10-detoxenablesynchronizationinitialize-detox-with-synchronization-enabled-or-disabled-at-app-launch"},"10. ",(0,i.kt)("inlineCode",{parentName:"h4"},"detoxEnableSynchronization"),"\u2014Initialize Detox with synchronization enabled or disabled at app launch"),(0,i.kt)("p",null,"Launches the app with the synchronization mechanism enabled or disabled. Useful if the app cannot be synchronized during the launch process. Synchronization can later be enabled using ",(0,i.kt)("inlineCode",{parentName:"p"},"device.enableSynchronization()"),"."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({\n newInstance: true,\n launchArgs: { detoxEnableSynchronization: 0 }\n});\n")),(0,i.kt)("h4",{id:"11-detoxurlblacklistregexinitialize-the-url-blacklist-at-app-launch"},"11. ",(0,i.kt)("inlineCode",{parentName:"h4"},"detoxURLBlacklistRegex"),"\u2014Initialize the URL Blacklist at app launch"),(0,i.kt)("p",null,"Launches the app with a URL blacklist to disable network synchronization on certain endpoints.\nUseful if the app makes frequent network calls to blacklisted endpoints upon startup."),(0,i.kt)("blockquote",null,(0,i.kt)("p",{parentName:"blockquote"},"Note that due to the complexity of reg-exps and interoperability concerns, the implementation is fairly sensitive to the format of the string of urls.\nPlease do your best to follow the example below:")),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},'await device.launchApp({\n newInstance: true,\n launchArgs: { detoxURLBlacklistRegex: \'\\\\("^http://192\\.168\\.1\\.253:\\\\d{4}/.*","https://e\\.crashlytics\\.com/spi/v2/events"\\\\)\' },\n});\n')),(0,i.kt)("h3",{id:"deviceterminateapp"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.terminateApp()")),(0,i.kt)("p",null,"By default, ",(0,i.kt)("inlineCode",{parentName:"p"},"terminateApp()")," with no params will terminate the app file defined in the current ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/config/overview"},(0,i.kt)("inlineCode",{parentName:"a"},"configuration")),"."),(0,i.kt)("p",null,"To terminate another app, specify its bundle id"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.terminateApp('other.bundle.id');\n")),(0,i.kt)("h3",{id:"devicesendtohome"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.sendToHome()")),(0,i.kt)("p",null,"Send application to background by bringing ",(0,i.kt)("inlineCode",{parentName:"p"},"com.apple.springboard")," to the foreground.\nCombining ",(0,i.kt)("inlineCode",{parentName:"p"},"sendToHome()")," with ",(0,i.kt)("inlineCode",{parentName:"p"},"launchApp({newInstance: false})")," will simulate app coming back from background.\nCheck out Detox\u2019s ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/test/e2e/06.device.test.js"},"own test suite")),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.sendToHome();\nawait device.launchApp({newInstance: false});\n// app returned from background, do stuff\n")),(0,i.kt)("p",null,"Check out Detox\u2019s ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/test/e2e/06.device.test.js"},"own test suite")),(0,i.kt)("h3",{id:"devicereloadreactnative"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.reloadReactNative()")),(0,i.kt)("p",null,"If this is a React Native app, reload the React Native JS bundle. This action is much faster than ",(0,i.kt)("inlineCode",{parentName:"p"},"device.launchApp()"),", and can be used if you just need to reset your React Native logic."),(0,i.kt)("i",null,"**Note:** This functionality does not work without faults. Under certain conditions, the system may not behave as expected and/or even crash. In these cases, use `device.launchApp()` to launch the app cleanly instead of only reloading the JS bundle."),(0,i.kt)("h3",{id:"deviceinstallapp"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.installApp()")),(0,i.kt)("p",null,"By default, ",(0,i.kt)("inlineCode",{parentName:"p"},"installApp()")," with no params will install the app file defined in the current ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/config/overview"},(0,i.kt)("inlineCode",{parentName:"a"},"configuration")),"."),(0,i.kt)("p",null,"To install another app, specify its path"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.installApp('path/to/other/app');\n")),(0,i.kt)("h3",{id:"deviceuninstallapp"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.uninstallApp()")),(0,i.kt)("p",null,"By default, ",(0,i.kt)("inlineCode",{parentName:"p"},"uninstallApp()")," with no params will uninstall the app defined in the current ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/config/overview"},(0,i.kt)("inlineCode",{parentName:"a"},"configuration")),"."),(0,i.kt)("p",null,"To uninstall another app, specify its bundle id"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.uninstallApp('other.bundle.id');\n")),(0,i.kt)("h3",{id:"deviceopenurlurl-sourceappoptional"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.openURL({url, sourceApp[optional]})")),(0,i.kt)("p",null,"Mock opening the app from URL. ",(0,i.kt)("inlineCode",{parentName:"p"},"sourceApp")," is an optional ",(0,i.kt)("strong",{parentName:"p"},"iOS-only")," parameter to specify source application bundle id."),(0,i.kt)("p",null,"Read more in ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/mocking-open-with-url"},"Mocking Open with URL")," section.\nCheck out Detox\u2019s ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/test/e2e/15.urls.test.js"},"own test suite")),(0,i.kt)("h3",{id:"devicesendusernotificationparams"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.sendUserNotification(params)")),(0,i.kt)("p",null,"Mock handling of a user notification previously received in the system, while the app is already running."),(0,i.kt)("p",null,"Read more in ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/mocking-user-notifications"},"Mocking User Notifications")," section.\nCheck out Detox\u2019s ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/test/e2e/11.user-notifications.test.js"},"own test suite")),(0,i.kt)("h3",{id:"devicesenduseractivityparams-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.sendUserActivity(params)")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Mock handling of received user activity when app is in foreground.\nRead more in ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/mocking-user-activity"},"Mocking User Activity")," section.\nCheck out Detox\u2019s ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/test/e2e/18.user-activities.test.js"},"own test suite")),(0,i.kt)("h3",{id:"devicesetorientationorientation"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.setOrientation(orientation)")),(0,i.kt)("p",null,"Takes ",(0,i.kt)("inlineCode",{parentName:"p"},'"portrait"')," or ",(0,i.kt)("inlineCode",{parentName:"p"},'"landscape"')," and rotates the device to the given orientation."),(0,i.kt)("p",null,(0,i.kt)("strong",{parentName:"p"},"Note:")," Setting device orientation is only supported for iPhone devices, or for apps declared as requiring full screen on iPad. For all other cases, the current test will be failed."),(0,i.kt)("p",null,"Check out Detox\u2019s ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/test/e2e/06.device-orientation.test.js"},"own test suite.")),(0,i.kt)("h3",{id:"devicesetlocationlat-lon"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.setLocation(lat, lon)")),(0,i.kt)("p",null,"Sets the simulator/emulator location to the given latitude and longitude."),(0,i.kt)("blockquote",null,(0,i.kt)("p",{parentName:"blockquote"},"On iOS ",(0,i.kt)("inlineCode",{parentName:"p"},"setLocation")," depends on ",(0,i.kt)("inlineCode",{parentName:"p"},"xcrun simctl"),", and we recommend using its latest version."),(0,i.kt)("p",{parentName:"blockquote"},"On Android ",(0,i.kt)("inlineCode",{parentName:"p"},"setLocation")," will work with both Android Emulator (bundled with Android development tools) and Genymotion. The correct permissions must be set in your app manifest.")),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.setLocation(32.0853, 34.7818);\n")),(0,i.kt)("h3",{id:"devicedisablesynchronization"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.disableSynchronization()")),(0,i.kt)("p",null,"Temporarily disable synchronization (idle/busy monitoring) with the app - namely, stop waiting for the app to go idle before moving forward in the test execution."),(0,i.kt)("p",null,"This API is useful for cases where test assertions must be made in an area of your application where it is okay for it to ever remain partly ",(0,i.kt)("em",{parentName:"p"},"busy")," (e.g. due to an endlessly repeating on-screen animation).\nHowever, using it inherently suggests that you are likely to resort to applying ",(0,i.kt)("inlineCode",{parentName:"p"},"sleep()"),"\u2019s in your test code - testing that area, ",(0,i.kt)("strong",{parentName:"p"},"which is not recommended and can never be 100% stable."),' Therefore, as a rule of thumb, test code running "inside" a sync-disabled mode must be reduced to the bare minimum.'),(0,i.kt)("p",null,"Note: Synchronization is enabled by default, and it gets ",(0,i.kt)("strong",{parentName:"p"},"re-enabled on every launch of a new instance of the app.")),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.disableSynchronization();\n")),(0,i.kt)("h3",{id:"deviceenablesynchronization"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.enableSynchronization()")),(0,i.kt)("p",null,"Re-enable synchronization (idle/busy monitoring) with the app - namely, resume waiting for the app to go idle before moving forward in the test execution, after a previous disabling of it through a call to ",(0,i.kt)("inlineCode",{parentName:"p"},"device.disableSynchronization()"),"."),(0,i.kt)("p",null,"\u26a0\ufe0f Note: Making this call would resume synchronization ",(0,i.kt)("strong",{parentName:"p"},"instantly"),", having its returned promise only resolve when the app becomes idle again. In other words, this ",(0,i.kt)("strong",{parentName:"p"},'must only be called after you navigate back to "the safe zone", where the app should be able to eventually become idle again'),', or it would remain suspended "forever" (i.e. until a safeguard time-out expires).'),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.enableSynchronization();\n")),(0,i.kt)("h3",{id:"deviceseturlblacklisturls"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.setURLBlacklist([urls])")),(0,i.kt)("p",null,"Exclude synchronization with respect to network activity (i.e. don\u2019t wait for network to go idle before moving forward in the test execution) according to ",(0,i.kt)("strong",{parentName:"p"},"specific")," endpoints, denoted as URL reg-exp\u2019s. To disable endpoints at initialization, pass in the black-list as an ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/launch-args"},"app-launch argument")," named ",(0,i.kt)("inlineCode",{parentName:"p"},"detoxURLBlacklistRegex")," (as explained ",(0,i.kt)("a",{parentName:"p",href:"#11-detoxurlblacklistregexinitialize-the-url-blacklist-at-app-launch"},"here"),")."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.setURLBlacklist(['.*127.0.0.1.*', '.*my.ignored.endpoint.*']);\n")),(0,i.kt)("h3",{id:"deviceresetcontentandsettings-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.resetContentAndSettings()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Resets the Simulator to clean state (like the Simulator > Reset Content and Settings... menu item), especially removing\npreviously set permissions."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.resetContentAndSettings();\n")),(0,i.kt)("h3",{id:"devicegetplatform"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.getPlatform()")),(0,i.kt)("p",null,"Returns the current device, ",(0,i.kt)("inlineCode",{parentName:"p"},"ios")," or ",(0,i.kt)("inlineCode",{parentName:"p"},"android"),"."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"if (device.getPlatform() === 'ios') {\n await expect(loopSwitch).toHaveValue('1');\n}\n")),(0,i.kt)("h3",{id:"devicetakescreenshotname"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.takeScreenshot([name])")),(0,i.kt)("p",null,"Takes a screenshot of the device. For full details on taking screenshots with Detox, refer to the ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/taking-screenshots"},"screen-shots guide"),"."),(0,i.kt)("h3",{id:"devicecaptureviewhierarchyname"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.captureViewHierarchy([name])")),(0,i.kt)("p",null,(0,i.kt)("strong",{parentName:"p"},"iOS Only.")," Saves a view hierarchy snapshot (",(0,i.kt)("inlineCode",{parentName:"p"},"*.viewhierarchy"),") of the\ncurrently opened application to a temporary folder and schedules putting it to\nthe artifacts' folder upon the completion of the current test. The file can be\nopened later in Xcode 12.0 and above.\nSee ",(0,i.kt)("a",{parentName:"p",href:"https://developer.apple.com/documentation/xcode-release-notes/xcode-12-release-notes#:~:text=57933113"},"Xcode 12 Release notes: #57933113"),"\nfor more details."),(0,i.kt)("p",null,"The ",(0,i.kt)("inlineCode",{parentName:"p"},"name")," parameter is optional \u2014\xa0by default, it equals to ",(0,i.kt)("inlineCode",{parentName:"p"},"capture"),"."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"test('Capture view hierarchy', async () => {\n const temporaryArtifactPath = await device.captureViewHierarchy('myElements');\n\n // The temporary path will remain valid until the test completion.\n // Afterwards, the artifact will be moved, e.g.:\n // * on success, to: /\u2713 Capture view hierarchy/myElements.viewhierarchy\n // * on failure, to: /\u2717 Capture view hierarchy/myElements.viewhierarchy\n});\n")),(0,i.kt)("h3",{id:"deviceshake-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.shake()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Simulate shake"),(0,i.kt)("h3",{id:"devicesetbiometricenrollmentbool-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.setBiometricEnrollment(bool)")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Toggles device enrollment in biometric authentication (Touch ID or Face ID)."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.setBiometricEnrollment(true);\n// or\nawait device.setBiometricEnrollment(false);\n")),(0,i.kt)("h3",{id:"devicematchface-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.matchFace()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Simulates the success of a face match via Face ID"),(0,i.kt)("h3",{id:"deviceunmatchface-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.unmatchFace()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Simulates the failure of face match via Face ID"),(0,i.kt)("h3",{id:"devicematchfinger-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.matchFinger()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Simulates the success of a finger match via Touch ID"),(0,i.kt)("h3",{id:"deviceunmatchfinger-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.unmatchFinger()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Simulates the failure of a finger match via Touch ID"),(0,i.kt)("h3",{id:"deviceclearkeychain-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.clearKeychain()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Clears the device keychain"),(0,i.kt)("h3",{id:"devicesetstatusbar-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.setStatusBar()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Override simulator\u2019s status bar. Available options:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.setStatusBar({\n time: \"12:34\",\n // Set the date or time to a fixed value.\n // If the string is a valid ISO date string it will also set the date on relevant devices.\n dataNetwork: \"wifi\",\n // If specified must be one of 'hide', 'wifi', '3g', '4g', 'lte', 'lte-a', 'lte+', '5g', '5g+', '5g-uwb', or '5g-uc'.\n wifiMode: \"failed\",\n // If specified must be one of 'searching', 'failed', or 'active'.\n wifiBars: \"2\",\n // If specified must be 0-3.\n cellularMode: \"searching\",\n // If specified must be one of 'notSupported', 'searching', 'failed', or 'active'.\n cellularBars: \"3\",\n // If specified must be 0-4.\n operatorName: \"A1\",\n // Set the cellular operator/carrier name. Use '' for the empty string.\n batteryState: \"charging\",\n // If specified must be one of 'charging', 'charged', or 'discharging'.\n batteryLevel: \"50\",\n // If specified must be 0-100.\n});\n")),(0,i.kt)("h3",{id:"deviceresetstatusbar-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.resetStatusBar()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Resets any override in simulator\u2019s status bar."),(0,i.kt)("h3",{id:"devicereversetcpport-android-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.reverseTcpPort()")," ",(0,i.kt)("strong",{parentName:"h3"},"Android Only")),(0,i.kt)("p",null,"Reverse a TCP port from the device (guest) back to the host-computer, as typically done with the ",(0,i.kt)("inlineCode",{parentName:"p"},"adb reverse")," command. The end result would be that all network requests going from the device to the specified port will be forwarded to the computer."),(0,i.kt)("h3",{id:"deviceunreversetcpport-android-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.unreverseTcpPort()")," ",(0,i.kt)("strong",{parentName:"h3"},"Android Only")),(0,i.kt)("p",null,"Clear a ",(0,i.kt)("em",{parentName:"p"},"reversed")," TCP-port (e.g. previously set using ",(0,i.kt)("inlineCode",{parentName:"p"},"device.reverseTcpPort()"),")."),(0,i.kt)("h3",{id:"devicepressback-android-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.pressBack()")," ",(0,i.kt)("strong",{parentName:"h3"},"Android Only")),(0,i.kt)("p",null,"Simulate press back button."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.pressBack();\n")),(0,i.kt)("h3",{id:"devicegetuidevice-android-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.getUiDevice()")," ",(0,i.kt)("strong",{parentName:"h3"},"Android Only")),(0,i.kt)("p",null,"Exposes ",(0,i.kt)("a",{parentName:"p",href:"https://developer.android.com/reference/androidx/test/uiautomator/UiDevice"},(0,i.kt)("inlineCode",{parentName:"a"},"UiAutomator"),"\u2019s ",(0,i.kt)("inlineCode",{parentName:"a"},"UiDevice")," API"),".\n",(0,i.kt)("strong",{parentName:"p"},"This is not a part of the official Detox API"),", it may break and change whenever an update to ",(0,i.kt)("inlineCode",{parentName:"p"},"UiDevice")," or ",(0,i.kt)("inlineCode",{parentName:"p"},"UiAutomator")," Gradle dependencies (",(0,i.kt)("inlineCode",{parentName:"p"},"androidx.test.uiautomator:uiautomator"),") is introduced."),(0,i.kt)("p",null,(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/src/android/espressoapi/UIDevice.js"},(0,i.kt)("inlineCode",{parentName:"a"},"UiDevice"),"\u2019s autogenerated code")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/398b3246.e3816650.js b/assets/js/398b3246.e3816650.js deleted file mode 100644 index b62e36e26d..0000000000 --- a/assets/js/398b3246.e3816650.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[694],{3905:(e,t,n)=>{n.d(t,{Zo:()=>d,kt:()=>m});var a=n(67294);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var c=a.createContext({}),s=function(e){var t=a.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},d=function(e){var t=s(e.components);return a.createElement(c.Provider,{value:t},e.children)},p="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},h=a.forwardRef((function(e,t){var n=e.components,i=e.mdxType,o=e.originalType,c=e.parentName,d=r(e,["components","mdxType","originalType","parentName"]),p=s(n),h=i,m=p["".concat(c,".").concat(h)]||p[h]||u[h]||o;return n?a.createElement(m,l(l({ref:t},d),{},{components:n})):a.createElement(m,l({ref:t},d))}));function m(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var o=n.length,l=new Array(o);l[0]=h;var r={};for(var c in t)hasOwnProperty.call(t,c)&&(r[c]=t[c]);r.originalType=e,r[p]="string"==typeof e?e:i,l[1]=r;for(var s=2;s{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>l,default:()=>u,frontMatter:()=>o,metadata:()=>r,toc:()=>s});var a=n(87462),i=(n(67294),n(3905));const o={},l="Device",r={unversionedId:"api/device",id:"api/device",title:"Device",description:"The device object is globally available in every test file, unless you use exposeGlobals: false in the behavior config,",source:"@site/../docs/api/device.md",sourceDirName:"api",slug:"/api/device",permalink:"/Detox/docs/next/api/device",draft:!1,editUrl:"https://github.com/wix/Detox/edit/master/docs/../docs/api/device.md",tags:[],version:"current",frontMatter:{},sidebar:"apiSidebar",previous:{title:"detox run-server",permalink:"/Detox/docs/next/cli/run-server"},next:{title:"Matchers",permalink:"/Detox/docs/next/api/matchers"}},c={},s=[{value:"Public Properties",id:"public-properties",level:2},{value:"device.id",id:"deviceid",level:3},{value:"device.name",id:"devicename",level:3},{value:"device.appLaunchArgs",id:"deviceapplaunchargs",level:3},{value:"Methods",id:"methods",level:2},{value:"device.selectApp(name)",id:"deviceselectappname",level:3},{value:"device.launchApp(params)",id:"devicelaunchappparams",level:3},{value:"1. newInstance\u2014Launching a New Instance of the App",id:"1-newinstancelaunching-a-new-instance-of-the-app",level:4},{value:"2. permissions\u2014Set Runtime Permissions (iOS Only)",id:"2-permissionsset-runtime-permissions-ios-only",level:4},{value:"3. url\u2014Launching with URL",id:"3-urllaunching-with-url",level:4},{value:"4. userNotification\u2014Launching with User Notifications",id:"4-usernotificationlaunching-with-user-notifications",level:4},{value:"5. userActivity\u2014Launch with User Activity (iOS Only)",id:"5-useractivitylaunch-with-user-activity-ios-only",level:4},{value:"6. delete\u2014Delete and Reinstall Application Before Launching",id:"6-deletedelete-and-reinstall-application-before-launching",level:4},{value:"7. launchArgs\u2014Additional Process Launch Arguments",id:"7-launchargsadditional-process-launch-arguments",level:4},{value:"8. disableTouchIndicators\u2014Disable Touch Indicators (iOS Only)",id:"8-disabletouchindicatorsdisable-touch-indicators-ios-only",level:4},{value:"9. languageAndLocale\u2014Launch with a Specific Language and/or Local (iOS Only)",id:"9-languageandlocalelaunch-with-a-specific-language-andor-local-ios-only",level:4},{value:"10. detoxEnableSynchronization\u2014Initialize Detox with synchronization enabled or disabled at app launch",id:"10-detoxenablesynchronizationinitialize-detox-with-synchronization-enabled-or-disabled-at-app-launch",level:4},{value:"11. detoxURLBlacklistRegex\u2014Initialize the URL Blacklist at app launch",id:"11-detoxurlblacklistregexinitialize-the-url-blacklist-at-app-launch",level:4},{value:"device.terminateApp()",id:"deviceterminateapp",level:3},{value:"device.sendToHome()",id:"devicesendtohome",level:3},{value:"device.reloadReactNative()",id:"devicereloadreactnative",level:3},{value:"device.installApp()",id:"deviceinstallapp",level:3},{value:"device.uninstallApp()",id:"deviceuninstallapp",level:3},{value:"device.openURL({url, sourceApp[optional]})",id:"deviceopenurlurl-sourceappoptional",level:3},{value:"device.sendUserNotification(params)",id:"devicesendusernotificationparams",level:3},{value:"device.sendUserActivity(params) iOS Only",id:"devicesenduseractivityparams-ios-only",level:3},{value:"device.setOrientation(orientation)",id:"devicesetorientationorientation",level:3},{value:"device.setLocation(lat, lon)",id:"devicesetlocationlat-lon",level:3},{value:"device.disableSynchronization()",id:"devicedisablesynchronization",level:3},{value:"device.enableSynchronization()",id:"deviceenablesynchronization",level:3},{value:"device.setURLBlacklist([urls])",id:"deviceseturlblacklisturls",level:3},{value:"device.resetContentAndSettings() iOS Only",id:"deviceresetcontentandsettings-ios-only",level:3},{value:"device.getPlatform()",id:"devicegetplatform",level:3},{value:"device.takeScreenshot([name])",id:"devicetakescreenshotname",level:3},{value:"device.captureViewHierarchy([name])",id:"devicecaptureviewhierarchyname",level:3},{value:"device.shake() iOS Only",id:"deviceshake-ios-only",level:3},{value:"device.setBiometricEnrollment(bool) iOS Only",id:"devicesetbiometricenrollmentbool-ios-only",level:3},{value:"device.matchFace() iOS Only",id:"devicematchface-ios-only",level:3},{value:"device.unmatchFace() iOS Only",id:"deviceunmatchface-ios-only",level:3},{value:"device.matchFinger() iOS Only",id:"devicematchfinger-ios-only",level:3},{value:"device.unmatchFinger() iOS Only",id:"deviceunmatchfinger-ios-only",level:3},{value:"device.clearKeychain() iOS Only",id:"deviceclearkeychain-ios-only",level:3},{value:"device.setStatusBar() iOS Only",id:"devicesetstatusbar-ios-only",level:3},{value:"device.resetStatusBar() iOS Only",id:"deviceresetstatusbar-ios-only",level:3},{value:"device.reverseTcpPort() Android Only",id:"devicereversetcpport-android-only",level:3},{value:"device.unreverseTcpPort() Android Only",id:"deviceunreversetcpport-android-only",level:3},{value:"device.pressBack() Android Only",id:"devicepressback-android-only",level:3},{value:"device.getUiDevice() Android Only",id:"devicegetuidevice-android-only",level:3}],d={toc:s},p="wrapper";function u(e){let{components:t,...n}=e;return(0,i.kt)(p,(0,a.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"device"},"Device"),(0,i.kt)("p",null,"The ",(0,i.kt)("inlineCode",{parentName:"p"},"device")," object is globally available in every test file, unless you use ",(0,i.kt)("inlineCode",{parentName:"p"},"exposeGlobals: false")," in the behavior config,\nand even then you can import it from Detox package:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"const { device } = require('detox');\n")),(0,i.kt)("p",null,"It enables control over the current attached device."),(0,i.kt)("h2",{id:"public-properties"},"Public Properties"),(0,i.kt)("h3",{id:"deviceid"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.id")),(0,i.kt)("p",null,"Holds the environment-unique ID of the device - namely, the ",(0,i.kt)("inlineCode",{parentName:"p"},"adb")," ID on Android (e.g. ",(0,i.kt)("inlineCode",{parentName:"p"},"emulator-5554"),") and the Mac-global simulator UDID on iOS, as used by ",(0,i.kt)("inlineCode",{parentName:"p"},"simctl")," (e.g. ",(0,i.kt)("inlineCode",{parentName:"p"},"AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE"),")."),(0,i.kt)("p",null,"The value will be ",(0,i.kt)("inlineCode",{parentName:"p"},"undefined")," until the device is properly ",(0,i.kt)("em",{parentName:"p"},"prepared")," (i.e. in ",(0,i.kt)("inlineCode",{parentName:"p"},"detox.init()"),")."),(0,i.kt)("h3",{id:"devicename"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.name")),(0,i.kt)("p",null,"Holds a descriptive name of the device. Example: ",(0,i.kt)("inlineCode",{parentName:"p"},"emulator-5554 (Pixel_API_26)")),(0,i.kt)("p",null,"The value will be ",(0,i.kt)("inlineCode",{parentName:"p"},"undefined")," until the device is properly ",(0,i.kt)("em",{parentName:"p"},"prepared")," (i.e. in ",(0,i.kt)("inlineCode",{parentName:"p"},"detox.init()"),")."),(0,i.kt)("h3",{id:"deviceapplaunchargs"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.appLaunchArgs")),(0,i.kt)("p",null,"Access the launch-arguments predefined by the user in preliminary, static scopes such as the Detox ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/config/apps"},"configuration file"),"\nand ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/cli/test"},"command-line arguments"),". This access allows, through dedicated methods, for both value-querying and modification:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"// Modify some of the predefined arguments:\ndevice.appLaunchArgs.modify({\n mockServerPort: 1234,\n});\n// Retrieve the arguments:\ndevice.appLaunchArgs.get(); // ==> { mockServerPort: 1234 }\n// Reset (i.e. remove all arguments):\ndevice.appLaunchArgs.reset();\n")),(0,i.kt)("p",null,"In multi-app environments, you might want to persist your values between ",(0,i.kt)("inlineCode",{parentName:"p"},"device.selectApp(name)")," calls:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"device.appLaunchArgs.modify({ transientArg: 'value' });\ndevice.appLaunchArgs.shared.modify({\n permanentMockServerPort: 1234,\n};\n\ndevice.appLaunchArgs.get(); // ==> { permanentMockServerPort: 1234, transientArg: 'value' }\ndevice.appLaunchArgs.shared.get(); // ==> { permanentMockServerPort: 1234 }\n\nawait device.selectApp('anotherApp');\ndevice.appLaunchArgs.get(); // ==> { permanentMockServerPort: 1234 }\ndevice.appLaunchArgs.reset();\ndevice.appLaunchArgs.get(); // ==> { permanentMockServerPort: 1234 }\ndevice.appLaunchArgs.shared.reset();\ndevice.appLaunchArgs.get(); // ==> {}\n")),(0,i.kt)("p",null,"This is the most flexible way of editing the launch arguments. Refer to the ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/launch-args"},"launch arguments guide")," for complete details."),(0,i.kt)("h2",{id:"methods"},"Methods"),(0,i.kt)("h3",{id:"deviceselectappname"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.selectApp(name)")),(0,i.kt)("p",null,"Use ",(0,i.kt)("strong",{parentName:"p"},"only for advanced multi-app configs")," when you need to switch between your apps\nwithin the same test scenario. Refer to the ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/config/apps"},"configuration doc"),"\nto discover how to define multiple apps with different ",(0,i.kt)("inlineCode",{parentName:"p"},"name"),"s."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.selectApp('myAppName');\n")),(0,i.kt)("p",null,"As a side effect (due to the current architectural limitation) running ",(0,i.kt)("inlineCode",{parentName:"p"},"device.selectApp")," terminates the previous\napp that had been running before."),(0,i.kt)("h3",{id:"devicelaunchappparams"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.launchApp(params)")),(0,i.kt)("p",null,"Launch the app defined in the current ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/config/overview"},(0,i.kt)("inlineCode",{parentName:"a"},"configuration")),"."),(0,i.kt)("p",null,(0,i.kt)("inlineCode",{parentName:"p"},"params"),"\u2014object, containing one of more of the following keys and values:"),(0,i.kt)("h4",{id:"1-newinstancelaunching-a-new-instance-of-the-app"},"1. ",(0,i.kt)("inlineCode",{parentName:"h4"},"newInstance"),"\u2014Launching a New Instance of the App"),(0,i.kt)("p",null,"Terminate the app and launch it again."),(0,i.kt)("p",null,"If set to ",(0,i.kt)("inlineCode",{parentName:"p"},"false"),", the device will try to resume the app (e.g. bring from foreground to background). If the app isn\u2019t running, ",(0,i.kt)("strong",{parentName:"p"},"it will launch a new instance")," nonetheless. ",(0,i.kt)("strong",{parentName:"p"},"Default is ",(0,i.kt)("inlineCode",{parentName:"strong"},"false"),".")),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({newInstance: true});\n")),(0,i.kt)("h4",{id:"2-permissionsset-runtime-permissions-ios-only"},"2. ",(0,i.kt)("inlineCode",{parentName:"h4"},"permissions"),"\u2014Set Runtime Permissions (iOS Only)"),(0,i.kt)("p",null,"Grants or denies runtime permissions to your application. This will cause the app to terminate before permissions are applied."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({permissions: {calendar: 'YES'}});\n")),(0,i.kt)("p",null,"Detox uses ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/AppleSimulatorUtils"},"AppleSimUtils")," to implement this functionality for iOS simulators. Read about the different types of permissions and how to set them in AppleSimUtils' documentation and by checking out Detox\u2019s ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/test/e2e/13.permissions.test.js"},"own test suite"),"."),(0,i.kt)("h4",{id:"3-urllaunching-with-url"},"3. ",(0,i.kt)("inlineCode",{parentName:"h4"},"url"),"\u2014Launching with URL"),(0,i.kt)("p",null,"Launches the app with the specified URL to test your app\u2019s deep link handling mechanism."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({url});\nawait device.launchApp({url, newInstance: true}); // Launch a new instance of the app\nawait device.launchApp({url, newInstance: false}); // Reuse existing instance\n")),(0,i.kt)("p",null,"Read more ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/mocking-open-with-url"},"here"),". Go back to subsection 1 to read about the full effect of the ",(0,i.kt)("inlineCode",{parentName:"p"},"newInstance")," argument."),(0,i.kt)("h4",{id:"4-usernotificationlaunching-with-user-notifications"},"4. ",(0,i.kt)("inlineCode",{parentName:"h4"},"userNotification"),"\u2014Launching with User Notifications"),(0,i.kt)("p",null,"Launches with the specified user notification."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({userNotification});\nawait device.launchApp({userNotification, newInstance: true}); // Launch a new instance of the app\nawait device.launchApp({userNotification, newInstance: false}); // Reuse existing instance\n")),(0,i.kt)("p",null,"Read more ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/mocking-user-notifications"},"here"),". Go back to subsection 1 to read about the full effect of the ",(0,i.kt)("inlineCode",{parentName:"p"},"newInstance")," argument."),(0,i.kt)("h4",{id:"5-useractivitylaunch-with-user-activity-ios-only"},"5. ",(0,i.kt)("inlineCode",{parentName:"h4"},"userActivity"),"\u2014Launch with User Activity (iOS Only)"),(0,i.kt)("p",null,"Launches the app with the specified user activity."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({userActivity: activity});\nawait device.launchApp({userActivity: activity, newInstance: true}); //Launch a new instance of the app\nawait device.launchApp({userActivity: activity, newInstance: false}); //Reuse existing instance\n")),(0,i.kt)("p",null,"Read more in ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/mocking-user-activity"},"here"),". Go back to subsection 1 to read about the full effect of the ",(0,i.kt)("inlineCode",{parentName:"p"},"newInstance")," argument."),(0,i.kt)("h4",{id:"6-deletedelete-and-reinstall-application-before-launching"},"6. ",(0,i.kt)("inlineCode",{parentName:"h4"},"delete"),"\u2014Delete and Reinstall Application Before Launching"),(0,i.kt)("p",null,"Before launching the application, it is uninstalled and then reinstalled."),(0,i.kt)("p",null,"A flag that enables relaunching into a fresh installation of the app (it will uninstall and install the binary). Default is ",(0,i.kt)("inlineCode",{parentName:"p"},"false"),"."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({delete: true});\n")),(0,i.kt)("h4",{id:"7-launchargsadditional-process-launch-arguments"},"7. ",(0,i.kt)("inlineCode",{parentName:"h4"},"launchArgs"),"\u2014Additional Process Launch Arguments"),(0,i.kt)("p",null,"Launches the app on the device with on-site, user-specified launch arguments:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},'await device.launchApp({\n launchArgs: {\n arg1: 1,\n arg2: "2",\n }\n});\n')),(0,i.kt)("p",null,"This is the most explicit and straightforward way of setting launch arguments. Refer to the ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/launch-args"},"launch arguments guide")," for a complete overview on app launch arguments."),(0,i.kt)("h4",{id:"8-disabletouchindicatorsdisable-touch-indicators-ios-only"},"8. ",(0,i.kt)("inlineCode",{parentName:"h4"},"disableTouchIndicators"),"\u2014Disable Touch Indicators (iOS Only)"),(0,i.kt)("p",null,"Disables touch indicators on iOS. Default is ",(0,i.kt)("inlineCode",{parentName:"p"},"false"),"."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({disableTouchIndicators: true});\n")),(0,i.kt)("h4",{id:"9-languageandlocalelaunch-with-a-specific-language-andor-local-ios-only"},"9. ",(0,i.kt)("inlineCode",{parentName:"h4"},"languageAndLocale"),"\u2014Launch with a Specific Language and/or Local (iOS Only)"),(0,i.kt)("p",null,"Launch the app with a specific system language"),(0,i.kt)("p",null,"Information about accepted values can be found ",(0,i.kt)("a",{parentName:"p",href:"https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html"},"here"),"."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},'await device.launchApp({\n languageAndLocale: {\n language: "es-MX",\n locale: "es-MX"\n }\n});\n')),(0,i.kt)("p",null,"With this API, you can run sets of E2E tests per language. For example:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"describe.each([\n ['es-MX'], ['fr-FR'], ['pt-BR'],\n])(`Test suite (locale: %s)`, (locale) => {\n beforeAll(async () => {\n await device.launchApp({\n newInstance: true,\n languageAndLocale: {\n language: locale,\n locale\n }\n });\n });\n\n test('some description', async () => {\n // \u2026\n });\n});\n")),(0,i.kt)("h4",{id:"10-detoxenablesynchronizationinitialize-detox-with-synchronization-enabled-or-disabled-at-app-launch"},"10. ",(0,i.kt)("inlineCode",{parentName:"h4"},"detoxEnableSynchronization"),"\u2014Initialize Detox with synchronization enabled or disabled at app launch"),(0,i.kt)("p",null,"Launches the app with the synchronization mechanism enabled or disabled. Useful if the app cannot be synchronized during the launch process. Synchronization can later be enabled using ",(0,i.kt)("inlineCode",{parentName:"p"},"device.enableSynchronization()"),"."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.launchApp({\n newInstance: true,\n launchArgs: { detoxEnableSynchronization: 0 }\n});\n")),(0,i.kt)("h4",{id:"11-detoxurlblacklistregexinitialize-the-url-blacklist-at-app-launch"},"11. ",(0,i.kt)("inlineCode",{parentName:"h4"},"detoxURLBlacklistRegex"),"\u2014Initialize the URL Blacklist at app launch"),(0,i.kt)("p",null,"Launches the app with a URL blacklist to disable network synchronization on certain endpoints.\nUseful if the app makes frequent network calls to blacklisted endpoints upon startup."),(0,i.kt)("blockquote",null,(0,i.kt)("p",{parentName:"blockquote"},"Note that due to the complexity of reg-exps and interoperability concerns, the implementation is fairly sensitive to the format of the string of urls.\nPlease do your best to follow the example below:")),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},'await device.launchApp({\n newInstance: true,\n launchArgs: { detoxURLBlacklistRegex: \'\\\\("^http://192\\.168\\.1\\.253:\\\\d{4}/.*","https://e\\.crashlytics\\.com/spi/v2/events"\\\\)\' },\n});\n')),(0,i.kt)("h3",{id:"deviceterminateapp"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.terminateApp()")),(0,i.kt)("p",null,"By default, ",(0,i.kt)("inlineCode",{parentName:"p"},"terminateApp()")," with no params will terminate the app file defined in the current ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/config/overview"},(0,i.kt)("inlineCode",{parentName:"a"},"configuration")),"."),(0,i.kt)("p",null,"To terminate another app, specify its bundle id"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.terminateApp('other.bundle.id');\n")),(0,i.kt)("h3",{id:"devicesendtohome"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.sendToHome()")),(0,i.kt)("p",null,"Send application to background by bringing ",(0,i.kt)("inlineCode",{parentName:"p"},"com.apple.springboard")," to the foreground.\nCombining ",(0,i.kt)("inlineCode",{parentName:"p"},"sendToHome()")," with ",(0,i.kt)("inlineCode",{parentName:"p"},"launchApp({newInstance: false})")," will simulate app coming back from background.\nCheck out Detox\u2019s ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/test/e2e/06.device.test.js"},"own test suite")),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.sendToHome();\nawait device.launchApp({newInstance: false});\n// app returned from background, do stuff\n")),(0,i.kt)("p",null,"Check out Detox\u2019s ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/test/e2e/06.device.test.js"},"own test suite")),(0,i.kt)("h3",{id:"devicereloadreactnative"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.reloadReactNative()")),(0,i.kt)("p",null,"If this is a React Native app, reload the React Native JS bundle. This action is much faster than ",(0,i.kt)("inlineCode",{parentName:"p"},"device.launchApp()"),", and can be used if you just need to reset your React Native logic."),(0,i.kt)("i",null,"**Note:** This functionality does not work without faults. Under certain conditions, the system may not behave as expected and/or even crash. In these cases, use `device.launchApp()` to launch the app cleanly instead of only reloading the JS bundle."),(0,i.kt)("h3",{id:"deviceinstallapp"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.installApp()")),(0,i.kt)("p",null,"By default, ",(0,i.kt)("inlineCode",{parentName:"p"},"installApp()")," with no params will install the app file defined in the current ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/config/overview"},(0,i.kt)("inlineCode",{parentName:"a"},"configuration")),"."),(0,i.kt)("p",null,"To install another app, specify its path"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.installApp('path/to/other/app');\n")),(0,i.kt)("h3",{id:"deviceuninstallapp"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.uninstallApp()")),(0,i.kt)("p",null,"By default, ",(0,i.kt)("inlineCode",{parentName:"p"},"uninstallApp()")," with no params will uninstall the app defined in the current ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/config/overview"},(0,i.kt)("inlineCode",{parentName:"a"},"configuration")),"."),(0,i.kt)("p",null,"To uninstall another app, specify its bundle id"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.uninstallApp('other.bundle.id');\n")),(0,i.kt)("h3",{id:"deviceopenurlurl-sourceappoptional"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.openURL({url, sourceApp[optional]})")),(0,i.kt)("p",null,"Mock opening the app from URL. ",(0,i.kt)("inlineCode",{parentName:"p"},"sourceApp")," is an optional ",(0,i.kt)("strong",{parentName:"p"},"iOS-only")," parameter to specify source application bundle id."),(0,i.kt)("p",null,"Read more in ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/mocking-open-with-url"},"Mocking Open with URL")," section.\nCheck out Detox\u2019s ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/test/e2e/15.urls.test.js"},"own test suite")),(0,i.kt)("h3",{id:"devicesendusernotificationparams"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.sendUserNotification(params)")),(0,i.kt)("p",null,"Mock handling of a user notification previously received in the system, while the app is already running."),(0,i.kt)("p",null,"Read more in ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/mocking-user-notifications"},"Mocking User Notifications")," section.\nCheck out Detox\u2019s ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/test/e2e/11.user-notifications.test.js"},"own test suite")),(0,i.kt)("h3",{id:"devicesenduseractivityparams-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.sendUserActivity(params)")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Mock handling of received user activity when app is in foreground.\nRead more in ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/mocking-user-activity"},"Mocking User Activity")," section.\nCheck out Detox\u2019s ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/test/e2e/18.user-activities.test.js"},"own test suite")),(0,i.kt)("h3",{id:"devicesetorientationorientation"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.setOrientation(orientation)")),(0,i.kt)("p",null,"Takes ",(0,i.kt)("inlineCode",{parentName:"p"},'"portrait"')," or ",(0,i.kt)("inlineCode",{parentName:"p"},'"landscape"')," and rotates the device to the given orientation."),(0,i.kt)("p",null,(0,i.kt)("strong",{parentName:"p"},"Note:")," Setting device orientation is only supported for iPhone devices, or for apps declared as requiring full screen on iPad. For all other cases, the current test will be failed."),(0,i.kt)("p",null,"Check out Detox\u2019s ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/test/e2e/06.device-orientation.test.js"},"own test suite.")),(0,i.kt)("h3",{id:"devicesetlocationlat-lon"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.setLocation(lat, lon)")),(0,i.kt)("p",null,"Sets the simulator/emulator location to the given latitude and longitude."),(0,i.kt)("blockquote",null,(0,i.kt)("p",{parentName:"blockquote"},"On iOS ",(0,i.kt)("inlineCode",{parentName:"p"},"setLocation")," is dependent on ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/facebook/idb/tree/4b7929480c3c0f158f33f78a5b802c1d0e7030d2/fbsimctl"},(0,i.kt)("inlineCode",{parentName:"a"},"fbsimctl"))," which ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/issues/1371"},"is now deprecated"),". If ",(0,i.kt)("inlineCode",{parentName:"p"},"fbsimctl")," is not installed, the command will fail, asking for it to be installed."),(0,i.kt)("p",{parentName:"blockquote"},"On Android ",(0,i.kt)("inlineCode",{parentName:"p"},"setLocation")," will work with both Android Emulator (bundled with Android development tools) and Genymotion. The correct permissions must be set in your app manifest.")),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.setLocation(32.0853, 34.7818);\n")),(0,i.kt)("h3",{id:"devicedisablesynchronization"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.disableSynchronization()")),(0,i.kt)("p",null,"Temporarily disable synchronization (idle/busy monitoring) with the app - namely, stop waiting for the app to go idle before moving forward in the test execution."),(0,i.kt)("p",null,"This API is useful for cases where test assertions must be made in an area of your application where it is okay for it to ever remain partly ",(0,i.kt)("em",{parentName:"p"},"busy")," (e.g. due to an endlessly repeating on-screen animation).\nHowever, using it inherently suggests that you are likely to resort to applying ",(0,i.kt)("inlineCode",{parentName:"p"},"sleep()"),"\u2019s in your test code - testing that area, ",(0,i.kt)("strong",{parentName:"p"},"which is not recommended and can never be 100% stable."),' Therefore, as a rule of thumb, test code running "inside" a sync-disabled mode must be reduced to the bare minimum.'),(0,i.kt)("p",null,"Note: Synchronization is enabled by default, and it gets ",(0,i.kt)("strong",{parentName:"p"},"re-enabled on every launch of a new instance of the app.")),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.disableSynchronization();\n")),(0,i.kt)("h3",{id:"deviceenablesynchronization"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.enableSynchronization()")),(0,i.kt)("p",null,"Re-enable synchronization (idle/busy monitoring) with the app - namely, resume waiting for the app to go idle before moving forward in the test execution, after a previous disabling of it through a call to ",(0,i.kt)("inlineCode",{parentName:"p"},"device.disableSynchronization()"),"."),(0,i.kt)("p",null,"\u26a0\ufe0f Note: Making this call would resume synchronization ",(0,i.kt)("strong",{parentName:"p"},"instantly"),", having its returned promise only resolve when the app becomes idle again. In other words, this ",(0,i.kt)("strong",{parentName:"p"},'must only be called after you navigate back to "the safe zone", where the app should be able to eventually become idle again'),', or it would remain suspended "forever" (i.e. until a safeguard time-out expires).'),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.enableSynchronization();\n")),(0,i.kt)("h3",{id:"deviceseturlblacklisturls"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.setURLBlacklist([urls])")),(0,i.kt)("p",null,"Exclude synchronization with respect to network activity (i.e. don\u2019t wait for network to go idle before moving forward in the test execution) according to ",(0,i.kt)("strong",{parentName:"p"},"specific")," endpoints, denoted as URL reg-exp\u2019s. To disable endpoints at initialization, pass in the black-list as an ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/launch-args"},"app-launch argument")," named ",(0,i.kt)("inlineCode",{parentName:"p"},"detoxURLBlacklistRegex")," (as explained ",(0,i.kt)("a",{parentName:"p",href:"#11-detoxurlblacklistregexinitialize-the-url-blacklist-at-app-launch"},"here"),")."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.setURLBlacklist(['.*127.0.0.1.*', '.*my.ignored.endpoint.*']);\n")),(0,i.kt)("h3",{id:"deviceresetcontentandsettings-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.resetContentAndSettings()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Resets the Simulator to clean state (like the Simulator > Reset Content and Settings... menu item), especially removing\npreviously set permissions."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.resetContentAndSettings();\n")),(0,i.kt)("h3",{id:"devicegetplatform"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.getPlatform()")),(0,i.kt)("p",null,"Returns the current device, ",(0,i.kt)("inlineCode",{parentName:"p"},"ios")," or ",(0,i.kt)("inlineCode",{parentName:"p"},"android"),"."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"if (device.getPlatform() === 'ios') {\n await expect(loopSwitch).toHaveValue('1');\n}\n")),(0,i.kt)("h3",{id:"devicetakescreenshotname"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.takeScreenshot([name])")),(0,i.kt)("p",null,"Takes a screenshot of the device. For full details on taking screenshots with Detox, refer to the ",(0,i.kt)("a",{parentName:"p",href:"/Detox/docs/next/guide/taking-screenshots"},"screen-shots guide"),"."),(0,i.kt)("h3",{id:"devicecaptureviewhierarchyname"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.captureViewHierarchy([name])")),(0,i.kt)("p",null,(0,i.kt)("strong",{parentName:"p"},"iOS Only.")," Saves a view hierarchy snapshot (",(0,i.kt)("inlineCode",{parentName:"p"},"*.viewhierarchy"),") of the\ncurrently opened application to a temporary folder and schedules putting it to\nthe artifacts' folder upon the completion of the current test. The file can be\nopened later in Xcode 12.0 and above.\nSee ",(0,i.kt)("a",{parentName:"p",href:"https://developer.apple.com/documentation/xcode-release-notes/xcode-12-release-notes#:~:text=57933113"},"Xcode 12 Release notes: #57933113"),"\nfor more details."),(0,i.kt)("p",null,"The ",(0,i.kt)("inlineCode",{parentName:"p"},"name")," parameter is optional \u2014\xa0by default, it equals to ",(0,i.kt)("inlineCode",{parentName:"p"},"capture"),"."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"test('Capture view hierarchy', async () => {\n const temporaryArtifactPath = await device.captureViewHierarchy('myElements');\n\n // The temporary path will remain valid until the test completion.\n // Afterwards, the artifact will be moved, e.g.:\n // * on success, to: /\u2713 Capture view hierarchy/myElements.viewhierarchy\n // * on failure, to: /\u2717 Capture view hierarchy/myElements.viewhierarchy\n});\n")),(0,i.kt)("h3",{id:"deviceshake-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.shake()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Simulate shake"),(0,i.kt)("h3",{id:"devicesetbiometricenrollmentbool-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.setBiometricEnrollment(bool)")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Toggles device enrollment in biometric authentication (Touch ID or Face ID)."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.setBiometricEnrollment(true);\n// or\nawait device.setBiometricEnrollment(false);\n")),(0,i.kt)("h3",{id:"devicematchface-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.matchFace()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Simulates the success of a face match via Face ID"),(0,i.kt)("h3",{id:"deviceunmatchface-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.unmatchFace()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Simulates the failure of face match via Face ID"),(0,i.kt)("h3",{id:"devicematchfinger-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.matchFinger()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Simulates the success of a finger match via Touch ID"),(0,i.kt)("h3",{id:"deviceunmatchfinger-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.unmatchFinger()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Simulates the failure of a finger match via Touch ID"),(0,i.kt)("h3",{id:"deviceclearkeychain-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.clearKeychain()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Clears the device keychain"),(0,i.kt)("h3",{id:"devicesetstatusbar-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.setStatusBar()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Override simulator\u2019s status bar. Available options:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.setStatusBar({\n time: \"12:34\",\n // Set the date or time to a fixed value.\n // If the string is a valid ISO date string it will also set the date on relevant devices.\n dataNetwork: \"wifi\",\n // If specified must be one of 'hide', 'wifi', '3g', '4g', 'lte', 'lte-a', 'lte+', '5g', '5g+', '5g-uwb', or '5g-uc'.\n wifiMode: \"failed\",\n // If specified must be one of 'searching', 'failed', or 'active'.\n wifiBars: \"2\",\n // If specified must be 0-3.\n cellularMode: \"searching\",\n // If specified must be one of 'notSupported', 'searching', 'failed', or 'active'.\n cellularBars: \"3\",\n // If specified must be 0-4.\n operatorName: \"A1\",\n // Set the cellular operator/carrier name. Use '' for the empty string.\n batteryState: \"charging\",\n // If specified must be one of 'charging', 'charged', or 'discharging'.\n batteryLevel: \"50\",\n // If specified must be 0-100.\n});\n")),(0,i.kt)("h3",{id:"deviceresetstatusbar-ios-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.resetStatusBar()")," ",(0,i.kt)("strong",{parentName:"h3"},"iOS Only")),(0,i.kt)("p",null,"Resets any override in simulator\u2019s status bar."),(0,i.kt)("h3",{id:"devicereversetcpport-android-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.reverseTcpPort()")," ",(0,i.kt)("strong",{parentName:"h3"},"Android Only")),(0,i.kt)("p",null,"Reverse a TCP port from the device (guest) back to the host-computer, as typically done with the ",(0,i.kt)("inlineCode",{parentName:"p"},"adb reverse")," command. The end result would be that all network requests going from the device to the specified port will be forwarded to the computer."),(0,i.kt)("h3",{id:"deviceunreversetcpport-android-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.unreverseTcpPort()")," ",(0,i.kt)("strong",{parentName:"h3"},"Android Only")),(0,i.kt)("p",null,"Clear a ",(0,i.kt)("em",{parentName:"p"},"reversed")," TCP-port (e.g. previously set using ",(0,i.kt)("inlineCode",{parentName:"p"},"device.reverseTcpPort()"),")."),(0,i.kt)("h3",{id:"devicepressback-android-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.pressBack()")," ",(0,i.kt)("strong",{parentName:"h3"},"Android Only")),(0,i.kt)("p",null,"Simulate press back button."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"await device.pressBack();\n")),(0,i.kt)("h3",{id:"devicegetuidevice-android-only"},(0,i.kt)("inlineCode",{parentName:"h3"},"device.getUiDevice()")," ",(0,i.kt)("strong",{parentName:"h3"},"Android Only")),(0,i.kt)("p",null,"Exposes ",(0,i.kt)("a",{parentName:"p",href:"https://developer.android.com/reference/androidx/test/uiautomator/UiDevice"},(0,i.kt)("inlineCode",{parentName:"a"},"UiAutomator"),"\u2019s ",(0,i.kt)("inlineCode",{parentName:"a"},"UiDevice")," API"),".\n",(0,i.kt)("strong",{parentName:"p"},"This is not a part of the official Detox API"),", it may break and change whenever an update to ",(0,i.kt)("inlineCode",{parentName:"p"},"UiDevice")," or ",(0,i.kt)("inlineCode",{parentName:"p"},"UiAutomator")," Gradle dependencies (",(0,i.kt)("inlineCode",{parentName:"p"},"androidx.test.uiautomator:uiautomator"),") is introduced."),(0,i.kt)("p",null,(0,i.kt)("a",{parentName:"p",href:"https://github.com/wix/Detox/tree/a9a09246c05733f6b91cfcc0dba05a4714abca92/detox/src/android/espressoapi/UIDevice.js"},(0,i.kt)("inlineCode",{parentName:"a"},"UiDevice"),"\u2019s autogenerated code")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.02c6e6f4.js b/assets/js/runtime~main.f70c24d5.js similarity index 99% rename from assets/js/runtime~main.02c6e6f4.js rename to assets/js/runtime~main.f70c24d5.js index f19a06c4cf..676f393bcf 100644 --- a/assets/js/runtime~main.02c6e6f4.js +++ b/assets/js/runtime~main.f70c24d5.js @@ -1 +1 @@ -(()=>{"use strict";var e,a,f,c,d,b={},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var f=t[e]={id:e,loaded:!1,exports:{}};return b[e].call(f.exports,f,f.exports,r),f.loaded=!0,f.exports}r.m=b,e=[],r.O=(a,f,c,d)=>{if(!f){var b=1/0;for(i=0;i=d)&&Object.keys(r.O).every((e=>r.O[e](f[o])))?f.splice(o--,1):(t=!1,d0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[f,c,d]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a:a}),a},f=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var d=Object.create(null);r.r(d);var b={};a=a||[null,f({}),f([]),f(f)];for(var t=2&c&&e;"object"==typeof t&&!~a.indexOf(t);t=f(t))Object.getOwnPropertyNames(t).forEach((a=>b[a]=()=>e[a]));return b.default=()=>e,r.d(d,b),d},r.d=(e,a)=>{for(var f in a)r.o(a,f)&&!r.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,f)=>(r.f[f](e,a),a)),[])),r.u=e=>"assets/js/"+({33:"b49de2ad",38:"a55aca30",53:"935f2afb",101:"00424e3f",161:"e8bfc54f",242:"865d1447",252:"684e0aea",272:"04d1378b",331:"181d712d",378:"f98b7248",441:"f999fa4a",486:"af67069a",511:"19ee85cd",535:"0c7edd3c",572:"8ab53c77",596:"2aa9b0dd",629:"b80a1ac9",656:"1a01fdf1",683:"9a34b858",694:"398b3246",718:"04c33c1d",779:"7accbb75",804:"5eff386f",813:"4d2064e8",891:"ddab1e1f",962:"933bed1e",981:"a8a1de49",1056:"e6bddadc",1131:"2dcc617a",1160:"090a441b",1175:"2ec4e639",1203:"ddb15f76",1244:"6e1398c4",1298:"0ef19a76",1452:"bab8a798",1545:"e6cdcb35",1665:"af558054",1688:"3fb5a56d",1728:"170ab94c",1774:"74a579df",1882:"e9d07a0a",1906:"37fdb427",1908:"d389a7b2",1993:"50214cd4",2028:"120e2fab",2159:"d9683343",2179:"bc243f9c",2232:"c262e01e",2240:"5fcf77d7",2314:"9292650b",2392:"743699a6",2393:"cae448e5",2400:"3c59129e",2409:"9a6ca8b8",2415:"f9078c13",2428:"54c48e38",2492:"3e7ee0fc",2508:"289d965c",2535:"814f3328",2559:"fa42474c",2560:"f431fa1f",2589:"b1c3f2c7",2614:"24602229",2621:"63371bf1",2627:"7b8d824d",2630:"b48043f7",2796:"5e26652b",2826:"ea7b1b31",2849:"e237dedf",2873:"0a02aff3",3012:"f97fefc4",3038:"66c89031",3089:"a6aa9e1f",3257:"7d2f6bd9",3382:"fc9f0a8f",3418:"41e12717",3524:"239f6efa",3560:"f2f4b8a7",3573:"4c76b531",3599:"dc701447",3608:"9e4087bc",3652:"8f43d633",3685:"32a9b7bf",3686:"5bfbde57",3928:"2d84255a",4013:"01a85c17",4060:"7358fe14",4100:"0e97a833",4119:"17f9232f",4161:"df5bc064",4195:"c4f5d8e4",4201:"3498d2db",4217:"cb38042d",4223:"373c35af",4274:"5fc994c2",4296:"a32fb7f5",4357:"b6072cb9",4381:"3b089002",4384:"dcfd3b61",4514:"85addd09",4537:"3abc4359",4647:"86a9c212",4749:"268dddcf",4786:"649c4fa3",4806:"5d2f6d16",4836:"ea9c95e7",4878:"c8447d5b",4925:"fe23c957",4938:"3974811d",4943:"f14c3b1d",5135:"a622d695",5202:"9eb50243",5237:"45e366b7",5299:"7c97e9a2",5475:"d8b689b0",5482:"0b72a6ff",5494:"66491fb6",5495:"d9894068",5675:"18fc5556",5716:"121cced5",5844:"fc323215",5994:"1c545b73",6040:"30a967f3",6064:"9f23071e",6068:"4898f926",6096:"861bdbb6",6103:"ccc49370",6108:"90ca9965",6190:"ba1e31c2",6271:"df8c2417",6320:"3f859f05",6326:"3d4c33f6",6327:"c83bcda6",6367:"4e8770ad",6383:"96997528",6474:"af952e90",6567:"6fb4057b",6587:"5bc90040",6630:"85a74db3",6658:"478bcf42",6711:"5133b137",6724:"851303a1",6865:"328083ea",6881:"40e30cb7",6933:"8e7c33d6",6945:"3f50474f",6961:"23a61782",6978:"79ac7843",7051:"d0f64c9c",7061:"5125c427",7185:"a4761f6f",7249:"0f6ee85b",7250:"f6b2bbb1",7295:"5a9cd6fb",7334:"48c4a2a0",7373:"e453af6e",7478:"0970ca0c",7586:"0b851b4d",7734:"0d1d5dba",7760:"c12557ec",7762:"26368098",7766:"80f9953e",7773:"df0b489b",7811:"06556991",7816:"d350cff3",7857:"656a21b7",7893:"4afa4b8a",7911:"9b67fd78",7918:"17896441",7920:"1a4e3797",7940:"5b12c1a9",8009:"cd796466",8022:"c74a7097",8198:"a6860cb2",8201:"7a99341f",8286:"c7632c1f",8360:"dbe4f0b7",8369:"4a184f52",8382:"ecfe08ed",8421:"1d245f66",8521:"f02f7df4",8545:"9509e94f",8552:"20110cf9",8554:"eb35abdd",8577:"6af18994",8602:"9338ecde",8610:"6875c492",8627:"1c323773",8664:"3bc305d8",8763:"40113ee6",8788:"4aba33e7",8814:"c62bfd53",8854:"6781c826",8875:"2cf03b61",8883:"ae694851",8887:"1373a77b",8928:"e432d2f9",8952:"0a2b2829",9167:"85c7de33",9182:"7dcc0419",9319:"7c823085",9358:"9017a355",9455:"3f3efe2b",9597:"ef7da448",9617:"b9d5de69",9651:"dd5377a3",9737:"f164116d",9775:"329947da",9780:"38bf2aac",9831:"beec6c9a",9906:"881ac13d",9950:"750255a9"}[e]||e)+"."+{33:"73ae903e",38:"385f4c83",53:"0192e000",101:"b3bcd00f",161:"b86dac46",242:"c18fda4c",252:"d9371cc1",272:"503b1a35",331:"4d7707ad",378:"bc2bb882",441:"3622ea69",486:"d1e60930",511:"86403847",535:"f0e90ed0",572:"cbb3fa27",596:"b8cdd693",629:"9b57142f",656:"b5e55309",683:"5a3562dd",694:"e3816650",718:"59159a34",779:"64218cc3",804:"cc0fda29",813:"224ec315",891:"a0161fb6",962:"89ed8752",981:"0cb9c6ce",1056:"b1373cd4",1131:"385bb394",1160:"5f881c20",1175:"eacb4943",1203:"1b16c174",1244:"507dd01c",1298:"ccde7a82",1426:"749b6a04",1452:"486e4bbc",1545:"ab303487",1580:"d8db51bd",1665:"3508c247",1688:"dd8d67d3",1728:"a8f9ee85",1774:"e2c47a11",1882:"ba1dc1e5",1906:"81d6e362",1908:"b27c7b4f",1993:"971d24a9",2028:"13f39980",2159:"3d406ae8",2179:"e65922be",2232:"7752dceb",2240:"2227f784",2314:"c04566ef",2392:"7b6877db",2393:"4fdefac7",2400:"ad0f9727",2403:"4dc445fe",2409:"2edfbf34",2415:"4ec988fe",2428:"614da151",2492:"e24bc7b8",2508:"971df1b9",2535:"9311db57",2559:"83eefb6e",2560:"647acf21",2589:"e3471f17",2614:"39a0ff3f",2621:"7c7565f3",2627:"9ab8e460",2630:"22866cdf",2796:"8b75a93e",2826:"f2c457d0",2849:"14ea00f7",2873:"2a3b1eb5",3012:"ec427960",3038:"99f5f57f",3089:"1243819c",3257:"f66de1f7",3382:"6fb92f73",3418:"d26189d0",3473:"6bdd7223",3524:"e0d8a0f6",3560:"40c155ec",3573:"6e265254",3599:"5ed167db",3608:"68f4c250",3652:"22349c86",3685:"246c83be",3686:"b35b5d26",3928:"4aa6542d",3969:"e132a487",4013:"61a6096c",4060:"6176a771",4100:"13128271",4119:"ede4867d",4161:"19d2d5cc",4195:"05eca37d",4201:"a29410ce",4217:"ca76cbfa",4223:"e800dc7f",4274:"0ac89feb",4296:"4e70f83a",4357:"6343002b",4381:"ecca1acb",4384:"ee2b16f3",4514:"ea3d39fd",4537:"377e0160",4647:"d84584ba",4749:"a3abf543",4786:"f001d724",4806:"676863cd",4836:"37257a08",4878:"83d8ab3d",4925:"557a84cd",4938:"b383af98",4943:"283f6532",4972:"07c42fc3",5135:"cab7f678",5202:"9cb88865",5237:"eec5776b",5299:"7fe8c4e8",5475:"7d864bd1",5482:"eafa0dab",5494:"62b25014",5495:"924bceaf",5675:"568c3c4c",5716:"acb49535",5844:"ba42da5a",5994:"ac283a51",6040:"9fe21dcb",6048:"402a0ca7",6064:"d8f1826f",6068:"c15bcc93",6096:"6bdcc5bd",6103:"fad14a28",6108:"ec572d77",6190:"4738e799",6271:"a618c3e6",6320:"08969d6d",6326:"5e7944d0",6327:"43d5043d",6367:"f9123020",6383:"0b4fcd48",6474:"80125f14",6567:"61f447ba",6587:"ffa7f04e",6630:"3c1bf55c",6658:"d98ed7f3",6711:"fd2f3a7d",6724:"e757283f",6865:"6eca98ae",6881:"1cb5156f",6933:"eb5f2f68",6945:"f70d9518",6961:"b5f465d4",6978:"a2ee5080",7051:"2b7e1e7c",7061:"4dde8e4b",7185:"83588798",7249:"e274100e",7250:"3e57d7fd",7295:"117c438f",7334:"26941f98",7373:"2dc8f9fc",7478:"71bdd71b",7586:"20c86fcf",7734:"a666d0c0",7760:"670c8d36",7762:"883e2b98",7766:"c0185c4e",7773:"44c9f2ad",7811:"6e2355c1",7816:"1b6d20f8",7857:"39cd2145",7893:"c5d16bc0",7911:"1b02ca79",7918:"27cba3cb",7920:"cb6171b6",7940:"70fe5173",8009:"14f0e0dc",8022:"dd3c04f1",8198:"6639f4a9",8201:"b5245fe7",8286:"3e5656d7",8360:"8b1c2a87",8369:"39a678c8",8382:"17dd7219",8421:"d2c220bf",8521:"eb0df1d6",8545:"e83b1184",8552:"796e3c9e",8554:"ee46a43f",8577:"f26a358f",8602:"864835f8",8610:"f84432d4",8627:"355432ec",8664:"7f7e6b56",8763:"07a19272",8788:"057e8887",8814:"37e0f070",8854:"06d960cc",8875:"7d7bda0a",8883:"cb6f7bf4",8887:"c8e0f087",8894:"b9f31e33",8928:"b881975c",8952:"bc548627",9167:"a78fac8a",9182:"e1b89be3",9319:"85890eaa",9358:"f7ff43be",9455:"a1ac6b33",9597:"ae383c78",9617:"33110098",9651:"cdef229e",9737:"7ec930cf",9775:"676331d0",9780:"e6d4f268",9831:"5658b454",9906:"55c83650",9950:"2719f317"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},d="website:",r.l=(e,a,f,b)=>{if(c[e])c[e].push(a);else{var t,o;if(void 0!==f)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(s);var d=c[e];if(delete c[e],t.parentNode&&t.parentNode.removeChild(t),d&&d.forEach((e=>e(f))),a)return a(f)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=u.bind(null,t.onerror),t.onload=u.bind(null,t.onload),o&&document.head.appendChild(t)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.p="/Detox/",r.gca=function(e){return e={17896441:"7918",24602229:"2614",26368098:"7762",96997528:"6383",b49de2ad:"33",a55aca30:"38","935f2afb":"53","00424e3f":"101",e8bfc54f:"161","865d1447":"242","684e0aea":"252","04d1378b":"272","181d712d":"331",f98b7248:"378",f999fa4a:"441",af67069a:"486","19ee85cd":"511","0c7edd3c":"535","8ab53c77":"572","2aa9b0dd":"596",b80a1ac9:"629","1a01fdf1":"656","9a34b858":"683","398b3246":"694","04c33c1d":"718","7accbb75":"779","5eff386f":"804","4d2064e8":"813",ddab1e1f:"891","933bed1e":"962",a8a1de49:"981",e6bddadc:"1056","2dcc617a":"1131","090a441b":"1160","2ec4e639":"1175",ddb15f76:"1203","6e1398c4":"1244","0ef19a76":"1298",bab8a798:"1452",e6cdcb35:"1545",af558054:"1665","3fb5a56d":"1688","170ab94c":"1728","74a579df":"1774",e9d07a0a:"1882","37fdb427":"1906",d389a7b2:"1908","50214cd4":"1993","120e2fab":"2028",d9683343:"2159",bc243f9c:"2179",c262e01e:"2232","5fcf77d7":"2240","9292650b":"2314","743699a6":"2392",cae448e5:"2393","3c59129e":"2400","9a6ca8b8":"2409",f9078c13:"2415","54c48e38":"2428","3e7ee0fc":"2492","289d965c":"2508","814f3328":"2535",fa42474c:"2559",f431fa1f:"2560",b1c3f2c7:"2589","63371bf1":"2621","7b8d824d":"2627",b48043f7:"2630","5e26652b":"2796",ea7b1b31:"2826",e237dedf:"2849","0a02aff3":"2873",f97fefc4:"3012","66c89031":"3038",a6aa9e1f:"3089","7d2f6bd9":"3257",fc9f0a8f:"3382","41e12717":"3418","239f6efa":"3524",f2f4b8a7:"3560","4c76b531":"3573",dc701447:"3599","9e4087bc":"3608","8f43d633":"3652","32a9b7bf":"3685","5bfbde57":"3686","2d84255a":"3928","01a85c17":"4013","7358fe14":"4060","0e97a833":"4100","17f9232f":"4119",df5bc064:"4161",c4f5d8e4:"4195","3498d2db":"4201",cb38042d:"4217","373c35af":"4223","5fc994c2":"4274",a32fb7f5:"4296",b6072cb9:"4357","3b089002":"4381",dcfd3b61:"4384","85addd09":"4514","3abc4359":"4537","86a9c212":"4647","268dddcf":"4749","649c4fa3":"4786","5d2f6d16":"4806",ea9c95e7:"4836",c8447d5b:"4878",fe23c957:"4925","3974811d":"4938",f14c3b1d:"4943",a622d695:"5135","9eb50243":"5202","45e366b7":"5237","7c97e9a2":"5299",d8b689b0:"5475","0b72a6ff":"5482","66491fb6":"5494",d9894068:"5495","18fc5556":"5675","121cced5":"5716",fc323215:"5844","1c545b73":"5994","30a967f3":"6040","9f23071e":"6064","4898f926":"6068","861bdbb6":"6096",ccc49370:"6103","90ca9965":"6108",ba1e31c2:"6190",df8c2417:"6271","3f859f05":"6320","3d4c33f6":"6326",c83bcda6:"6327","4e8770ad":"6367",af952e90:"6474","6fb4057b":"6567","5bc90040":"6587","85a74db3":"6630","478bcf42":"6658","5133b137":"6711","851303a1":"6724","328083ea":"6865","40e30cb7":"6881","8e7c33d6":"6933","3f50474f":"6945","23a61782":"6961","79ac7843":"6978",d0f64c9c:"7051","5125c427":"7061",a4761f6f:"7185","0f6ee85b":"7249",f6b2bbb1:"7250","5a9cd6fb":"7295","48c4a2a0":"7334",e453af6e:"7373","0970ca0c":"7478","0b851b4d":"7586","0d1d5dba":"7734",c12557ec:"7760","80f9953e":"7766",df0b489b:"7773","06556991":"7811",d350cff3:"7816","656a21b7":"7857","4afa4b8a":"7893","9b67fd78":"7911","1a4e3797":"7920","5b12c1a9":"7940",cd796466:"8009",c74a7097:"8022",a6860cb2:"8198","7a99341f":"8201",c7632c1f:"8286",dbe4f0b7:"8360","4a184f52":"8369",ecfe08ed:"8382","1d245f66":"8421",f02f7df4:"8521","9509e94f":"8545","20110cf9":"8552",eb35abdd:"8554","6af18994":"8577","9338ecde":"8602","6875c492":"8610","1c323773":"8627","3bc305d8":"8664","40113ee6":"8763","4aba33e7":"8788",c62bfd53:"8814","6781c826":"8854","2cf03b61":"8875",ae694851:"8883","1373a77b":"8887",e432d2f9:"8928","0a2b2829":"8952","85c7de33":"9167","7dcc0419":"9182","7c823085":"9319","9017a355":"9358","3f3efe2b":"9455",ef7da448:"9597",b9d5de69:"9617",dd5377a3:"9651",f164116d:"9737","329947da":"9775","38bf2aac":"9780",beec6c9a:"9831","881ac13d":"9906","750255a9":"9950"}[e]||e,r.p+r.u(e)},(()=>{var e={1303:0,532:0};r.f.j=(a,f)=>{var c=r.o(e,a)?e[a]:void 0;if(0!==c)if(c)f.push(c[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var d=new Promise(((f,d)=>c=e[a]=[f,d]));f.push(c[2]=d);var b=r.p+r.u(a),t=new Error;r.l(b,(f=>{if(r.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var d=f&&("load"===f.type?"missing":f.type),b=f&&f.target&&f.target.src;t.message="Loading chunk "+a+" failed.\n("+d+": "+b+")",t.name="ChunkLoadError",t.type=d,t.request=b,c[1](t)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,f)=>{var c,d,b=f[0],t=f[1],o=f[2],n=0;if(b.some((a=>0!==e[a]))){for(c in t)r.o(t,c)&&(r.m[c]=t[c]);if(o)var i=o(r)}for(a&&a(f);n{"use strict";var e,a,f,c,d,b={},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var f=t[e]={id:e,loaded:!1,exports:{}};return b[e].call(f.exports,f,f.exports,r),f.loaded=!0,f.exports}r.m=b,e=[],r.O=(a,f,c,d)=>{if(!f){var b=1/0;for(i=0;i=d)&&Object.keys(r.O).every((e=>r.O[e](f[o])))?f.splice(o--,1):(t=!1,d0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[f,c,d]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a:a}),a},f=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var d=Object.create(null);r.r(d);var b={};a=a||[null,f({}),f([]),f(f)];for(var t=2&c&&e;"object"==typeof t&&!~a.indexOf(t);t=f(t))Object.getOwnPropertyNames(t).forEach((a=>b[a]=()=>e[a]));return b.default=()=>e,r.d(d,b),d},r.d=(e,a)=>{for(var f in a)r.o(a,f)&&!r.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,f)=>(r.f[f](e,a),a)),[])),r.u=e=>"assets/js/"+({33:"b49de2ad",38:"a55aca30",53:"935f2afb",101:"00424e3f",161:"e8bfc54f",242:"865d1447",252:"684e0aea",272:"04d1378b",331:"181d712d",378:"f98b7248",441:"f999fa4a",486:"af67069a",511:"19ee85cd",535:"0c7edd3c",572:"8ab53c77",596:"2aa9b0dd",629:"b80a1ac9",656:"1a01fdf1",683:"9a34b858",694:"398b3246",718:"04c33c1d",779:"7accbb75",804:"5eff386f",813:"4d2064e8",891:"ddab1e1f",962:"933bed1e",981:"a8a1de49",1056:"e6bddadc",1131:"2dcc617a",1160:"090a441b",1175:"2ec4e639",1203:"ddb15f76",1244:"6e1398c4",1298:"0ef19a76",1452:"bab8a798",1545:"e6cdcb35",1665:"af558054",1688:"3fb5a56d",1728:"170ab94c",1774:"74a579df",1882:"e9d07a0a",1906:"37fdb427",1908:"d389a7b2",1993:"50214cd4",2028:"120e2fab",2159:"d9683343",2179:"bc243f9c",2232:"c262e01e",2240:"5fcf77d7",2314:"9292650b",2392:"743699a6",2393:"cae448e5",2400:"3c59129e",2409:"9a6ca8b8",2415:"f9078c13",2428:"54c48e38",2492:"3e7ee0fc",2508:"289d965c",2535:"814f3328",2559:"fa42474c",2560:"f431fa1f",2589:"b1c3f2c7",2614:"24602229",2621:"63371bf1",2627:"7b8d824d",2630:"b48043f7",2796:"5e26652b",2826:"ea7b1b31",2849:"e237dedf",2873:"0a02aff3",3012:"f97fefc4",3038:"66c89031",3089:"a6aa9e1f",3257:"7d2f6bd9",3382:"fc9f0a8f",3418:"41e12717",3524:"239f6efa",3560:"f2f4b8a7",3573:"4c76b531",3599:"dc701447",3608:"9e4087bc",3652:"8f43d633",3685:"32a9b7bf",3686:"5bfbde57",3928:"2d84255a",4013:"01a85c17",4060:"7358fe14",4100:"0e97a833",4119:"17f9232f",4161:"df5bc064",4195:"c4f5d8e4",4201:"3498d2db",4217:"cb38042d",4223:"373c35af",4274:"5fc994c2",4296:"a32fb7f5",4357:"b6072cb9",4381:"3b089002",4384:"dcfd3b61",4514:"85addd09",4537:"3abc4359",4647:"86a9c212",4749:"268dddcf",4786:"649c4fa3",4806:"5d2f6d16",4836:"ea9c95e7",4878:"c8447d5b",4925:"fe23c957",4938:"3974811d",4943:"f14c3b1d",5135:"a622d695",5202:"9eb50243",5237:"45e366b7",5299:"7c97e9a2",5475:"d8b689b0",5482:"0b72a6ff",5494:"66491fb6",5495:"d9894068",5675:"18fc5556",5716:"121cced5",5844:"fc323215",5994:"1c545b73",6040:"30a967f3",6064:"9f23071e",6068:"4898f926",6096:"861bdbb6",6103:"ccc49370",6108:"90ca9965",6190:"ba1e31c2",6271:"df8c2417",6320:"3f859f05",6326:"3d4c33f6",6327:"c83bcda6",6367:"4e8770ad",6383:"96997528",6474:"af952e90",6567:"6fb4057b",6587:"5bc90040",6630:"85a74db3",6658:"478bcf42",6711:"5133b137",6724:"851303a1",6865:"328083ea",6881:"40e30cb7",6933:"8e7c33d6",6945:"3f50474f",6961:"23a61782",6978:"79ac7843",7051:"d0f64c9c",7061:"5125c427",7185:"a4761f6f",7249:"0f6ee85b",7250:"f6b2bbb1",7295:"5a9cd6fb",7334:"48c4a2a0",7373:"e453af6e",7478:"0970ca0c",7586:"0b851b4d",7734:"0d1d5dba",7760:"c12557ec",7762:"26368098",7766:"80f9953e",7773:"df0b489b",7811:"06556991",7816:"d350cff3",7857:"656a21b7",7893:"4afa4b8a",7911:"9b67fd78",7918:"17896441",7920:"1a4e3797",7940:"5b12c1a9",8009:"cd796466",8022:"c74a7097",8198:"a6860cb2",8201:"7a99341f",8286:"c7632c1f",8360:"dbe4f0b7",8369:"4a184f52",8382:"ecfe08ed",8421:"1d245f66",8521:"f02f7df4",8545:"9509e94f",8552:"20110cf9",8554:"eb35abdd",8577:"6af18994",8602:"9338ecde",8610:"6875c492",8627:"1c323773",8664:"3bc305d8",8763:"40113ee6",8788:"4aba33e7",8814:"c62bfd53",8854:"6781c826",8875:"2cf03b61",8883:"ae694851",8887:"1373a77b",8928:"e432d2f9",8952:"0a2b2829",9167:"85c7de33",9182:"7dcc0419",9319:"7c823085",9358:"9017a355",9455:"3f3efe2b",9597:"ef7da448",9617:"b9d5de69",9651:"dd5377a3",9737:"f164116d",9775:"329947da",9780:"38bf2aac",9831:"beec6c9a",9906:"881ac13d",9950:"750255a9"}[e]||e)+"."+{33:"73ae903e",38:"385f4c83",53:"0192e000",101:"b3bcd00f",161:"b86dac46",242:"c18fda4c",252:"d9371cc1",272:"503b1a35",331:"4d7707ad",378:"bc2bb882",441:"3622ea69",486:"d1e60930",511:"86403847",535:"f0e90ed0",572:"cbb3fa27",596:"b8cdd693",629:"9b57142f",656:"b5e55309",683:"5a3562dd",694:"18f89764",718:"59159a34",779:"64218cc3",804:"cc0fda29",813:"224ec315",891:"a0161fb6",962:"89ed8752",981:"0cb9c6ce",1056:"b1373cd4",1131:"385bb394",1160:"5f881c20",1175:"eacb4943",1203:"1b16c174",1244:"507dd01c",1298:"ccde7a82",1426:"749b6a04",1452:"486e4bbc",1545:"ab303487",1580:"d8db51bd",1665:"3508c247",1688:"dd8d67d3",1728:"a8f9ee85",1774:"e2c47a11",1882:"ba1dc1e5",1906:"81d6e362",1908:"b27c7b4f",1993:"971d24a9",2028:"13f39980",2159:"3d406ae8",2179:"e65922be",2232:"7752dceb",2240:"2227f784",2314:"c04566ef",2392:"7b6877db",2393:"4fdefac7",2400:"ad0f9727",2403:"4dc445fe",2409:"2edfbf34",2415:"4ec988fe",2428:"614da151",2492:"e24bc7b8",2508:"971df1b9",2535:"9311db57",2559:"83eefb6e",2560:"647acf21",2589:"e3471f17",2614:"39a0ff3f",2621:"7c7565f3",2627:"9ab8e460",2630:"22866cdf",2796:"8b75a93e",2826:"f2c457d0",2849:"14ea00f7",2873:"2a3b1eb5",3012:"ec427960",3038:"99f5f57f",3089:"1243819c",3257:"f66de1f7",3382:"6fb92f73",3418:"d26189d0",3473:"6bdd7223",3524:"e0d8a0f6",3560:"40c155ec",3573:"6e265254",3599:"5ed167db",3608:"68f4c250",3652:"22349c86",3685:"246c83be",3686:"b35b5d26",3928:"4aa6542d",3969:"e132a487",4013:"61a6096c",4060:"6176a771",4100:"13128271",4119:"ede4867d",4161:"19d2d5cc",4195:"05eca37d",4201:"a29410ce",4217:"ca76cbfa",4223:"e800dc7f",4274:"0ac89feb",4296:"4e70f83a",4357:"6343002b",4381:"ecca1acb",4384:"ee2b16f3",4514:"ea3d39fd",4537:"377e0160",4647:"d84584ba",4749:"a3abf543",4786:"f001d724",4806:"676863cd",4836:"37257a08",4878:"83d8ab3d",4925:"557a84cd",4938:"b383af98",4943:"283f6532",4972:"07c42fc3",5135:"cab7f678",5202:"9cb88865",5237:"eec5776b",5299:"7fe8c4e8",5475:"7d864bd1",5482:"eafa0dab",5494:"62b25014",5495:"924bceaf",5675:"568c3c4c",5716:"acb49535",5844:"ba42da5a",5994:"ac283a51",6040:"9fe21dcb",6048:"402a0ca7",6064:"d8f1826f",6068:"c15bcc93",6096:"6bdcc5bd",6103:"fad14a28",6108:"ec572d77",6190:"4738e799",6271:"a618c3e6",6320:"08969d6d",6326:"5e7944d0",6327:"43d5043d",6367:"f9123020",6383:"0b4fcd48",6474:"80125f14",6567:"61f447ba",6587:"ffa7f04e",6630:"3c1bf55c",6658:"d98ed7f3",6711:"fd2f3a7d",6724:"e757283f",6865:"6eca98ae",6881:"1cb5156f",6933:"eb5f2f68",6945:"f70d9518",6961:"b5f465d4",6978:"a2ee5080",7051:"2b7e1e7c",7061:"4dde8e4b",7185:"83588798",7249:"e274100e",7250:"3e57d7fd",7295:"117c438f",7334:"26941f98",7373:"2dc8f9fc",7478:"71bdd71b",7586:"20c86fcf",7734:"a666d0c0",7760:"670c8d36",7762:"883e2b98",7766:"c0185c4e",7773:"44c9f2ad",7811:"6e2355c1",7816:"1b6d20f8",7857:"39cd2145",7893:"c5d16bc0",7911:"1b02ca79",7918:"27cba3cb",7920:"cb6171b6",7940:"70fe5173",8009:"14f0e0dc",8022:"dd3c04f1",8198:"6639f4a9",8201:"b5245fe7",8286:"3e5656d7",8360:"8b1c2a87",8369:"39a678c8",8382:"17dd7219",8421:"d2c220bf",8521:"eb0df1d6",8545:"e83b1184",8552:"796e3c9e",8554:"ee46a43f",8577:"f26a358f",8602:"864835f8",8610:"f84432d4",8627:"355432ec",8664:"7f7e6b56",8763:"07a19272",8788:"057e8887",8814:"37e0f070",8854:"06d960cc",8875:"7d7bda0a",8883:"cb6f7bf4",8887:"c8e0f087",8894:"b9f31e33",8928:"b881975c",8952:"bc548627",9167:"a78fac8a",9182:"e1b89be3",9319:"85890eaa",9358:"f7ff43be",9455:"a1ac6b33",9597:"ae383c78",9617:"33110098",9651:"cdef229e",9737:"7ec930cf",9775:"676331d0",9780:"e6d4f268",9831:"5658b454",9906:"55c83650",9950:"2719f317"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},d="website:",r.l=(e,a,f,b)=>{if(c[e])c[e].push(a);else{var t,o;if(void 0!==f)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(s);var d=c[e];if(delete c[e],t.parentNode&&t.parentNode.removeChild(t),d&&d.forEach((e=>e(f))),a)return a(f)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=u.bind(null,t.onerror),t.onload=u.bind(null,t.onload),o&&document.head.appendChild(t)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.p="/Detox/",r.gca=function(e){return e={17896441:"7918",24602229:"2614",26368098:"7762",96997528:"6383",b49de2ad:"33",a55aca30:"38","935f2afb":"53","00424e3f":"101",e8bfc54f:"161","865d1447":"242","684e0aea":"252","04d1378b":"272","181d712d":"331",f98b7248:"378",f999fa4a:"441",af67069a:"486","19ee85cd":"511","0c7edd3c":"535","8ab53c77":"572","2aa9b0dd":"596",b80a1ac9:"629","1a01fdf1":"656","9a34b858":"683","398b3246":"694","04c33c1d":"718","7accbb75":"779","5eff386f":"804","4d2064e8":"813",ddab1e1f:"891","933bed1e":"962",a8a1de49:"981",e6bddadc:"1056","2dcc617a":"1131","090a441b":"1160","2ec4e639":"1175",ddb15f76:"1203","6e1398c4":"1244","0ef19a76":"1298",bab8a798:"1452",e6cdcb35:"1545",af558054:"1665","3fb5a56d":"1688","170ab94c":"1728","74a579df":"1774",e9d07a0a:"1882","37fdb427":"1906",d389a7b2:"1908","50214cd4":"1993","120e2fab":"2028",d9683343:"2159",bc243f9c:"2179",c262e01e:"2232","5fcf77d7":"2240","9292650b":"2314","743699a6":"2392",cae448e5:"2393","3c59129e":"2400","9a6ca8b8":"2409",f9078c13:"2415","54c48e38":"2428","3e7ee0fc":"2492","289d965c":"2508","814f3328":"2535",fa42474c:"2559",f431fa1f:"2560",b1c3f2c7:"2589","63371bf1":"2621","7b8d824d":"2627",b48043f7:"2630","5e26652b":"2796",ea7b1b31:"2826",e237dedf:"2849","0a02aff3":"2873",f97fefc4:"3012","66c89031":"3038",a6aa9e1f:"3089","7d2f6bd9":"3257",fc9f0a8f:"3382","41e12717":"3418","239f6efa":"3524",f2f4b8a7:"3560","4c76b531":"3573",dc701447:"3599","9e4087bc":"3608","8f43d633":"3652","32a9b7bf":"3685","5bfbde57":"3686","2d84255a":"3928","01a85c17":"4013","7358fe14":"4060","0e97a833":"4100","17f9232f":"4119",df5bc064:"4161",c4f5d8e4:"4195","3498d2db":"4201",cb38042d:"4217","373c35af":"4223","5fc994c2":"4274",a32fb7f5:"4296",b6072cb9:"4357","3b089002":"4381",dcfd3b61:"4384","85addd09":"4514","3abc4359":"4537","86a9c212":"4647","268dddcf":"4749","649c4fa3":"4786","5d2f6d16":"4806",ea9c95e7:"4836",c8447d5b:"4878",fe23c957:"4925","3974811d":"4938",f14c3b1d:"4943",a622d695:"5135","9eb50243":"5202","45e366b7":"5237","7c97e9a2":"5299",d8b689b0:"5475","0b72a6ff":"5482","66491fb6":"5494",d9894068:"5495","18fc5556":"5675","121cced5":"5716",fc323215:"5844","1c545b73":"5994","30a967f3":"6040","9f23071e":"6064","4898f926":"6068","861bdbb6":"6096",ccc49370:"6103","90ca9965":"6108",ba1e31c2:"6190",df8c2417:"6271","3f859f05":"6320","3d4c33f6":"6326",c83bcda6:"6327","4e8770ad":"6367",af952e90:"6474","6fb4057b":"6567","5bc90040":"6587","85a74db3":"6630","478bcf42":"6658","5133b137":"6711","851303a1":"6724","328083ea":"6865","40e30cb7":"6881","8e7c33d6":"6933","3f50474f":"6945","23a61782":"6961","79ac7843":"6978",d0f64c9c:"7051","5125c427":"7061",a4761f6f:"7185","0f6ee85b":"7249",f6b2bbb1:"7250","5a9cd6fb":"7295","48c4a2a0":"7334",e453af6e:"7373","0970ca0c":"7478","0b851b4d":"7586","0d1d5dba":"7734",c12557ec:"7760","80f9953e":"7766",df0b489b:"7773","06556991":"7811",d350cff3:"7816","656a21b7":"7857","4afa4b8a":"7893","9b67fd78":"7911","1a4e3797":"7920","5b12c1a9":"7940",cd796466:"8009",c74a7097:"8022",a6860cb2:"8198","7a99341f":"8201",c7632c1f:"8286",dbe4f0b7:"8360","4a184f52":"8369",ecfe08ed:"8382","1d245f66":"8421",f02f7df4:"8521","9509e94f":"8545","20110cf9":"8552",eb35abdd:"8554","6af18994":"8577","9338ecde":"8602","6875c492":"8610","1c323773":"8627","3bc305d8":"8664","40113ee6":"8763","4aba33e7":"8788",c62bfd53:"8814","6781c826":"8854","2cf03b61":"8875",ae694851:"8883","1373a77b":"8887",e432d2f9:"8928","0a2b2829":"8952","85c7de33":"9167","7dcc0419":"9182","7c823085":"9319","9017a355":"9358","3f3efe2b":"9455",ef7da448:"9597",b9d5de69:"9617",dd5377a3:"9651",f164116d:"9737","329947da":"9775","38bf2aac":"9780",beec6c9a:"9831","881ac13d":"9906","750255a9":"9950"}[e]||e,r.p+r.u(e)},(()=>{var e={1303:0,532:0};r.f.j=(a,f)=>{var c=r.o(e,a)?e[a]:void 0;if(0!==c)if(c)f.push(c[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var d=new Promise(((f,d)=>c=e[a]=[f,d]));f.push(c[2]=d);var b=r.p+r.u(a),t=new Error;r.l(b,(f=>{if(r.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var d=f&&("load"===f.type?"missing":f.type),b=f&&f.target&&f.target.src;t.message="Loading chunk "+a+" failed.\n("+d+": "+b+")",t.name="ChunkLoadError",t.type=d,t.request=b,c[1](t)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,f)=>{var c,d,b=f[0],t=f[1],o=f[2],n=0;if(b.some((a=>0!==e[a]))){for(c in t)r.o(t,c)&&(r.m[c]=t[c]);if(o)var i=o(r)}for(a&&a(f);n