diff --git a/.detoxrc.json b/.detoxrc.json index 43dd86a..b449721 100644 --- a/.detoxrc.json +++ b/.detoxrc.json @@ -1,12 +1,29 @@ { "testRunner": "jest", "runnerConfig": "e2e/config.json", + "apps": { + "ios.debug": { + "type": "ios.app", + "binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/poc_e2e.app", + "build": "xcodebuild -project ios/poc_e2e.xcodeproj -UseNewBuildSystem=NO -scheme poc_e2e -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build" + } + }, + "devices": { + "simulator": { + "type": "ios.simulator", + "device": "iPhone 13" + } + }, "configurations": { "android.emu.debug": { "type": "android.attached", "name": "192.168.58.102:5555", "binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk", "build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd .." + }, + "ios.sim.debug": { + "app": "ios.debug", + "device": "simulator" } } -} \ No newline at end of file +} diff --git a/e2e/plan.e2e.js b/e2e/plan.e2e.js index 4f729a3..ea74ab1 100644 --- a/e2e/plan.e2e.js +++ b/e2e/plan.e2e.js @@ -17,7 +17,7 @@ describe('My first suite tests E2E', () => { await element(by.id('keyboard')).tap(); await element(by.id('button-subscribe')).tap(); - await device.takeScreenshot('snapshot-premium-plan-test'); + // await device.takeScreenshot('snapshot-premium-plan-test'); await expect(element(by.id('confirmation-message'))).toBeVisible(); }); });