* MM-35355 Detox/E2E: Add e2e for channels settings * Added disabling of non prepackaged plugins to init * Fix apiGetChannelByName doc parameter
23 lines
696 B
JavaScript
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',
|
|
},
|
|
});
|
|
});
|