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