Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test e2e #5633

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading