2022-01-29 07:12:23 +03:00
|
|
|
/**
|
|
|
|
* Copyright (c) Microsoft Corporation.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
2024-08-15 00:37:09 +03:00
|
|
|
import { defineConfig } from '@playwright/test';
|
2023-01-10 21:50:05 +03:00
|
|
|
import { WorkerOptions } from './tests/utils';
|
2022-01-29 07:07:30 +03:00
|
|
|
|
2024-08-15 00:37:09 +03:00
|
|
|
export default defineConfig<WorkerOptions>({
|
2022-01-29 07:07:30 +03:00
|
|
|
testDir: './tests',
|
2024-02-21 20:36:45 +03:00
|
|
|
outputDir: './test-results/inner',
|
2022-10-22 08:26:23 +03:00
|
|
|
fullyParallel: true,
|
2022-01-29 07:07:30 +03:00
|
|
|
forbidOnly: !!process.env.CI,
|
|
|
|
workers: process.env.CI ? 1 : undefined,
|
2023-08-24 23:46:55 +03:00
|
|
|
reporter: process.env.CI ? [
|
|
|
|
['line'],
|
|
|
|
['blob'],
|
|
|
|
] : [
|
|
|
|
['line']
|
|
|
|
],
|
2022-10-22 21:28:27 +03:00
|
|
|
projects: [
|
|
|
|
{
|
2024-04-24 01:27:33 +03:00
|
|
|
name: 'default',
|
2024-02-22 04:04:33 +03:00
|
|
|
},
|
|
|
|
{
|
2024-04-24 01:27:33 +03:00
|
|
|
name: 'default-reuse',
|
2024-02-22 04:04:33 +03:00
|
|
|
use: {
|
|
|
|
showBrowser: true,
|
|
|
|
}
|
2022-10-22 21:28:27 +03:00
|
|
|
},
|
2024-08-15 00:37:09 +03:00
|
|
|
{
|
|
|
|
name: 'default-trace',
|
|
|
|
use: {
|
|
|
|
showTrace: 'spawn',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'default-trace-embedded',
|
|
|
|
testMatch: '*trace-viewer*.spec.ts',
|
|
|
|
use: {
|
|
|
|
showTrace: 'embedded',
|
|
|
|
}
|
|
|
|
},
|
2022-10-22 21:28:27 +03:00
|
|
|
{
|
2024-04-24 01:27:33 +03:00
|
|
|
name: 'legacy',
|
2022-10-22 21:28:27 +03:00
|
|
|
use: {
|
2024-05-21 01:03:47 +03:00
|
|
|
overridePlaywrightVersion: 1.43,
|
2022-10-22 21:28:27 +03:00
|
|
|
}
|
2024-02-22 04:04:33 +03:00
|
|
|
},
|
|
|
|
{
|
2024-04-24 01:27:33 +03:00
|
|
|
name: 'legacy-reuse',
|
2024-02-22 04:04:33 +03:00
|
|
|
use: {
|
2024-05-21 01:03:47 +03:00
|
|
|
overridePlaywrightVersion: 1.43,
|
2024-02-22 04:04:33 +03:00
|
|
|
showBrowser: true,
|
|
|
|
}
|
|
|
|
},
|
2024-08-15 00:37:09 +03:00
|
|
|
{
|
|
|
|
name: 'legacy-trace',
|
|
|
|
use: {
|
|
|
|
overridePlaywrightVersion: 1.43,
|
|
|
|
showTrace: 'spawn',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'legacy-trace-embedded',
|
|
|
|
testMatch: '*trace-viewer*.spec.ts',
|
|
|
|
use: {
|
|
|
|
overridePlaywrightVersion: 1.43,
|
|
|
|
showTrace: 'embedded',
|
|
|
|
}
|
|
|
|
},
|
2022-10-22 21:28:27 +03:00
|
|
|
]
|
2024-08-15 00:37:09 +03:00
|
|
|
});
|