From 712e66f72f238b81e770f8ac693b87eaa638bf2e Mon Sep 17 00:00:00 2001 From: andrefangeloni Date: Sat, 9 Oct 2021 00:24:23 -0300 Subject: [PATCH] feat: setup detox json for support ios together android, not finished --- .detoxrc.json | 19 ++++++++++++++++++- e2e/plan.e2e.js | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) 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(); }); });