mattermost-mobile/detox/.detoxrc.json
yasser khan 3cbde1663d
E2E feature schedule posts (#8709)
- Fix iOS and Android CI.
- Fixes E2E tests on both platform
- Added tests for scheduled draft feature.
2025-04-23 12:10:37 +05:30

94 lines
2.3 KiB
JSON

{
"testRunner": {
"$0": "jest",
"args": {
"config": "e2e/config.js"
}
},
"apps": {
"ios.debug": {
"type": "ios.app",
"binaryPath": "../mobile-artifacts/Mattermost.app"
},
"ios.release": {
"type": "ios.app",
"binaryPath": "../ios/Build/Products/Release-iphonesimulator/Mattermost.app",
"build": "cd .. && npm run build:ios-sim && cd detox"
},
"android.debug": {
"type": "android.apk",
"binaryPath": "../android/app/build/outputs/apk/debug/app-debug.apk",
"build": "cd .. && ./node_modules/.bin/jetify && cd android && ./gradlew clean && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ../detox"
},
"android.release": {
"type": "android.apk",
"binaryPath": "../android/app/build/outputs/apk/release/app-release.apk",
"build": "cd .. && ./node_modules/.bin/jetify && cd android && ./gradlew clean && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ../detox"
}
},
"devices": {
"ios.simulator": {
"type": "ios.simulator",
"device": {
"type": "__DEVICE_NAME__",
"os": "__DEVICE_OS_VERSION__"
}
},
"android.emulator": {
"type": "android.emulator",
"device": {
"avdName": "detox_pixel_4_xl_api_34"
}
}
},
"configurations": {
"ios.sim.debug": {
"device": "ios.simulator",
"app": "ios.debug"
},
"ios.sim.release": {
"device": "ios.simulator",
"app": "ios.release"
},
"android.emu.debug": {
"device": "android.emulator",
"app": "android.debug"
},
"android.emu.release": {
"device": "android.emulator",
"app": "android.release"
}
},
"artifacts": {
"pathBuilder": "./e2e/path_builder.js",
"plugins": {
"screenshot": {
"shouldTakeAutomaticSnapshots": true,
"keepOnlyFailedTestsArtifacts": true
},
"video": {
"enabled": false
},
"log": {
"enabled": true
}
}
},
"behavior": {
"init": {
"reinstallApp": true,
"launchApp": false
},
"cleanup": {
"shutdownDevice": false
}
},
"session": {
"sessionId": "mobile-test-session",
"debugSynchronization": 5000,
"autoStart": true
},
"visibility": {
"threshold": 75
}
}