make tests work on Rn 0.68

This commit is contained in:
ammarahm-ed
2022-05-11 12:06:32 +05:00
parent 05c90262ba
commit 18bf3bb373
4 changed files with 12 additions and 12 deletions

View File

@@ -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": {

View File

@@ -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');

View File

@@ -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();
}

View File

@@ -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(
() => {