Rocket.Chat.ReactNative/e2e/tests/init.js

14 lines
344 B
JavaScript
Raw Normal View History

2018-05-23 13:39:18 +00:00
const detox = require('detox');
const config = require('../../package.json').detox;
const dataSetup = require('../helpers/data_setup')
2018-05-23 13:39:18 +00:00
before(async() => {
await dataSetup()
2019-01-29 19:52:56 +00:00
await detox.init(config, { launchApp: false });
2018-05-23 13:39:18 +00:00
await device.launchApp({ permissions: { notifications: 'YES' } });
});
after(async() => {
await detox.cleanup();
});