Skip to content

Commit

Permalink
feat: setup detox json for support ios together android, not finished
Browse files Browse the repository at this point in the history
  • Loading branch information
andrefangeloni committed Oct 9, 2021
1 parent 7bc1860 commit 712e66f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion .detoxrc.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
2 changes: 1 addition & 1 deletion e2e/plan.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});

0 comments on commit 712e66f

Please sign in to comment.