[tests][android][perf] add delay to work around detox relaunch issue

This commit is contained in:
Salakar
2018-09-24 03:10:40 +01:00
parent 9ac86f96a3
commit 4b50be30a3

View File

@@ -2,11 +2,14 @@ describe('perf()', () => {
describe('setPerformanceCollectionEnabled()', () => {
it('true', async () => {
await firebase.perf().setPerformanceCollectionEnabled(true);
await sleep(2000);
});
it('false', async () => {
await firebase.perf().setPerformanceCollectionEnabled(false);
await sleep(2000);
await firebase.perf().setPerformanceCollectionEnabled(true);
await sleep(2000);
await device.launchApp({ newInstance: true });
});