mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
* move "e2e-tests/playwright/test" to "e2e-tests/playwright/test" and expose "ensurePluginsLoaded" * add test setup, and expose ensurePluginsLoaded and ensureServerDeployment to pw
22 lines
668 B
TypeScript
22 lines
668 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {baseGlobalSetup, testConfig} from '@mattermost/playwright-lib';
|
|
|
|
async function globalSetup() {
|
|
try {
|
|
await baseGlobalSetup();
|
|
} catch (error: unknown) {
|
|
// eslint-disable-next-line no-console
|
|
console.error(error);
|
|
throw new Error(
|
|
`Global setup failed.\n\tEnsure the server at ${testConfig.baseURL} is running and accessible.\n\tPlease check the logs for more details.`,
|
|
);
|
|
}
|
|
|
|
return function () {
|
|
// placeholder for teardown setup
|
|
};
|
|
}
|
|
|
|
export default globalSetup;
|