mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
* add testcontainers to playwright-lib * include retry mechanism for transient failures * - Introduced a new command `testcontainers:up` in package.json to run Playwright tests with Testcontainers. - Created a standalone Playwright configuration file `playwright.testcontainers-up.config.ts` for managing Testcontainers. - Added a no-op test `testcontainers_up.spec.ts` to ensure the Testcontainers stack is up during the test run. - Implemented a global setup script `testcontainers_up_global_setup.ts` to start and stop the Testcontainers stack. - Updated dependencies in package.json, including adding `chalk` for logging. * fix package-lock * fix tsc and restore waiting for all migrations to complete --------- Co-authored-by: Mattermost Build <[email protected]>
16 lines
810 B
TypeScript
16 lines
810 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {defineConfig} from '@playwright/test';
|
|
|
|
// Standalone config for `npm run testcontainers:up`: brings up (or reuses) the Testcontainers
|
|
// stack via its own global setup — deliberately not the real suite's global_setup.ts, so the
|
|
// server comes up fresh and untouched by baseGlobalSetup()'s admin/sysadmin bootstrap. Runs a
|
|
// single no-op test so Playwright has something to execute global setup/teardown around, without
|
|
// pulling in the main playwright.config.ts's projects/browsers or touching its `specs` testDir.
|
|
export default defineConfig({
|
|
globalSetup: './script/testcontainers_up_global_setup.ts',
|
|
testDir: './script',
|
|
testMatch: /testcontainers_up\.spec\.ts/,
|
|
});
|