Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

update detox and jest

ammarahm-ed2d7f9c6f8db4
diff --git a/apps/mobile/e2e/tests/index.e2e.js b/apps/mobile/e2e/tests/index.e2e.js
index fa3f6f691..1a48800f8 100644
--- a/apps/mobile/e2e/tests/index.e2e.js
+++ b/apps/mobile/e2e/tests/index.e2e.js
@@ -1,6 +1,15 @@
const detox = require("detox");
const { LaunchApp } = require("./misc.e2e");
-it('App Launch', async () => {
+
+beforeAll(
+ async () => {
+ await detox.init();
+ await detox.device.launchApp();
+ },
+ 30 * 1000,
+);
+
+it('App should launch successfully', async () => {
await LaunchApp();
});
\ No newline at end of file
diff --git a/apps/mobile/e2e/tests/misc.e2e.js b/apps/mobile/e2e/tests/misc.e2e.js
index f0ed3c9f9..aa1db84ac 100644
--- a/apps/mobile/e2e/tests/misc.e2e.js
+++ b/apps/mobile/e2e/tests/misc.e2e.js
@@ -2,8 +2,6 @@ const {notesnook} = require('../test.ids');
const {sleep} = require('./utils.test');
export async function LaunchApp() {
- device.launchApp();
- await sleep(5000);
await expect(element(by.id(notesnook.ids.default.root))).toBeVisible();
}
/*