mattermost-mobile/detox/e2e/init.js
Joseph Baylon 53050595dd
MM-35355 Detox/E2E: Add e2e for channels settings (#5377)
* MM-35355 Detox/E2E: Add e2e for channels settings

* Added disabling of non prepackaged plugins to init

* Fix apiGetChannelByName doc parameter
2021-05-12 08:04:01 -07:00

23 lines
696 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {Plugin, System, User} from '@support/server_api';
beforeAll(async () => {
// Login as sysadmin and reset server configuration
await System.apiCheckSystemHealth();
await User.apiAdminLogin();
await System.apiUpdateConfig();
await Plugin.apiDisableNonPrepackagedPlugins();
await device.launchApp({
newInstance: false,
launchArgs: {detoxPrintBusyIdleResources: 'YES'},
permissions: {
notifications: 'YES',
camera: 'YES',
medialibrary: 'YES',
photos: 'YES',
},
});
});