mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
make tests work on Rn 0.68
This commit is contained in:
@@ -11,20 +11,19 @@
|
||||
}
|
||||
},
|
||||
"android.emu.debug": {
|
||||
"binaryPath": "android/app/build/outputs/apk/debug/app-arm64-v8a-debug.apk",
|
||||
"build":
|
||||
"cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..",
|
||||
"type": "android.emulator",
|
||||
"name": "emu"
|
||||
},
|
||||
"binaryPath": "android/app/build/outputs/apk/debug/app-arm64-v8a-debug.apk",
|
||||
"build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..",
|
||||
"type": "android.emulator",
|
||||
"name": "emu"
|
||||
},
|
||||
"android.dev.debug": {
|
||||
"binaryPath": "android/app/build/outputs/apk/debug/app-arm64-v8a-debug.apk",
|
||||
"testBinaryPath": "android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk",
|
||||
"build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..",
|
||||
"type": "android.attached",
|
||||
"device": {
|
||||
"adbName": "192.168.10.2:5555",
|
||||
"adbNameAlt":"LMG710ULM3d3678f0"
|
||||
"adbName": "LMG710ULM3d3678f0",
|
||||
"adbNameAlt": "LMG710ULM3d3678f0"
|
||||
}
|
||||
},
|
||||
"android.dev.release": {
|
||||
|
||||
@@ -3,11 +3,11 @@ const { navigate, tapByText, prepare } = require('./utils');
|
||||
const { sleep } = require('./utils');
|
||||
|
||||
describe('APP LAUNCH AND NAVIGATION', () => {
|
||||
it('App should launch successfully & hide welcome screen', async done => {
|
||||
it('App should launch successfully & hide welcome screen', async () => {
|
||||
await prepare();
|
||||
});
|
||||
|
||||
it('Basic navigation should work', async done => {
|
||||
it('Basic navigation should work', async () => {
|
||||
await prepare();
|
||||
await navigate('Notebooks');
|
||||
await tapByText('Skip introduction');
|
||||
|
||||
@@ -12,6 +12,7 @@ export const sleep = duration =>
|
||||
export async function LaunchApp() {
|
||||
await expect(element(by.id(notesnook.ids.default.root))).toBeVisible();
|
||||
await expect(element(by.id('notesnook.splashscreen'))).toBeVisible();
|
||||
await sleep(500);
|
||||
await element(by.text('Get started')).tap();
|
||||
await sleep(500);
|
||||
await element(by.text('Next')).tap();
|
||||
@@ -82,7 +83,7 @@ export async function navigate(screen) {
|
||||
await sleep(500);
|
||||
let menu = elementById(notesnook.ids.default.header.buttons.left);
|
||||
await menu.tap();
|
||||
await sleep(100);
|
||||
await sleep(500);
|
||||
await elementByText(screen).tap();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { TabsHolder } from './tabs-holder';
|
||||
import DialogProvider from '../components/dialog-provider';
|
||||
import { Toast } from '../components/toast';
|
||||
import { TabsHolder } from './tabs-holder';
|
||||
|
||||
export const ApplicationHolder = React.memo(
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user