Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrodyHughes committed Apr 16, 2024
1 parent 5d91d5e commit 4ddcfbe
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 130 deletions.
18 changes: 9 additions & 9 deletions e2e/init.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import { exec } from 'child_process';
// import { exec } from 'child_process';
import { device } from 'detox';

require('dotenv').config({ path: '.env' });

beforeAll(async () => {
if (device.getPlatform() === 'android') {
// connecting to metro
await device.reverseTcpPort(8081);
// connecting to hardhat
await device.reverseTcpPort(8545); // TODO: WIP for android connecting in dev
// if (device.getPlatform() === 'android') {
// // connecting to metro
// await device.reverseTcpPort(8081);
// // connecting to hardhat
// await device.reverseTcpPort(8545); // TODO: WIP for android connecting in dev

// make sure we don't have gesture navigation what might cause collisions
exec('yarn adb-all shell cmd overlay enable com.android.internal.systemui.navbar.threebutton');
}
// // make sure we don't have gesture navigation what might cause collisions
// exec('yarn adb-all shell cmd overlay enable com.android.internal.systemui.navbar.threebutton');
// }
await device.clearKeychain();
await device.launchApp({ newInstance: true, delete: true });
await device.setURLBlacklist([
Expand Down
Loading

0 comments on commit 4ddcfbe

Please sign in to comment.