* Detox/E2E: Initial e2e tests in Gekidou * Change Local Server to Server 1 * Renamed variables for consistency * Added team display name verification on channel list screen * Simplified login by email setup * Simplified smoke test server login steps
24 lines
785 B
JavaScript
24 lines
785 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';
|
|
import {siteOneUrl} from '@support/test_config';
|
|
|
|
beforeAll(async () => {
|
|
// Login as sysadmin and reset server configuration
|
|
await System.apiCheckSystemHealth(siteOneUrl);
|
|
await User.apiAdminLogin(siteOneUrl);
|
|
await System.apiUpdateConfig(siteOneUrl);
|
|
await Plugin.apiDisableNonPrepackagedPlugins(siteOneUrl);
|
|
|
|
await device.launchApp({
|
|
newInstance: false,
|
|
launchArgs: {detoxPrintBusyIdleResources: 'YES'},
|
|
permissions: {
|
|
notifications: 'YES',
|
|
camera: 'YES',
|
|
medialibrary: 'YES',
|
|
photos: 'YES',
|
|
},
|
|
});
|
|
});
|