docusaurus/argos/playwright.config.ts
Greg Bergé 2bb4fd0a65
chore(ci): use new Argos playwright integration (#9419)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-10-20 17:03:37 +02:00

38 lines
827 B
TypeScript

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {devices} from '@playwright/test';
import type {PlaywrightTestConfig} from '@playwright/test';
/**
* See https://playwright.dev/docs/test-configuration.
*/
const config: PlaywrightTestConfig = {
testDir: './tests',
reporter: [['list'], ['@argos-ci/playwright/reporter']],
// Run website production built
// Need to run "yarn website:build:fast" before
webServer: {
cwd: '..',
port: 3000,
command: 'yarn serve:website',
},
// Browsers: only Chrome for now
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
},
},
],
};
export default config;