Move /e2e -> /e2e-tests
Этот коммит содержится в:
92
e2e-tests/playwright/playwright.config.ts
Обычный файл
92
e2e-tests/playwright/playwright.config.ts
Обычный файл
@@ -0,0 +1,92 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import {defineConfig, devices} from '@playwright/test';
|
||||
|
||||
import {duration} from '@e2e-support/util';
|
||||
import testConfig from '@e2e-test.config';
|
||||
|
||||
const defaultOutputFolder = 'playwright-report';
|
||||
|
||||
export default defineConfig({
|
||||
globalSetup: require.resolve('./global_setup'),
|
||||
forbidOnly: testConfig.isCI,
|
||||
outputDir: './test-results',
|
||||
testDir: 'tests',
|
||||
timeout: duration.one_min,
|
||||
workers: testConfig.workers,
|
||||
expect: {
|
||||
timeout: duration.ten_sec,
|
||||
toMatchSnapshot: {
|
||||
threshold: 0.4,
|
||||
maxDiffPixelRatio: 0.0001,
|
||||
},
|
||||
},
|
||||
use: {
|
||||
baseURL: testConfig.baseURL,
|
||||
ignoreHTTPSErrors: true,
|
||||
headless: testConfig.headless,
|
||||
locale: 'en-US',
|
||||
launchOptions: {
|
||||
args: ['--use-fake-device-for-media-stream', '--use-fake-ui-for-media-stream'],
|
||||
firefoxUserPrefs: {
|
||||
'media.navigator.streams.fake': true,
|
||||
'permissions.default.microphone': 1,
|
||||
'permissions.default.camera': 1,
|
||||
},
|
||||
slowMo: testConfig.slowMo,
|
||||
},
|
||||
screenshot: 'only-on-failure',
|
||||
timezoneId: 'America/Los_Angeles',
|
||||
trace: 'off',
|
||||
video: 'on-first-retry',
|
||||
actionTimeout: duration.half_min,
|
||||
storageState: {
|
||||
cookies: [],
|
||||
origins: [
|
||||
{
|
||||
origin: testConfig.baseURL,
|
||||
localStorage: [{name: '__landingPageSeen__', value: 'true'}],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
projects: [
|
||||
{
|
||||
name: 'iphone',
|
||||
use: {
|
||||
browserName: 'chromium',
|
||||
...devices['iPhone 13 Pro'],
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'ipad',
|
||||
use: {
|
||||
browserName: 'chromium',
|
||||
...devices['iPad Pro 11'],
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'chrome',
|
||||
use: {
|
||||
browserName: 'chromium',
|
||||
permissions: ['notifications'],
|
||||
viewport: {width: 1280, height: 1024},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'firefox',
|
||||
use: {
|
||||
browserName: 'firefox',
|
||||
permissions: ['notifications'],
|
||||
viewport: {width: 1280, height: 1024},
|
||||
},
|
||||
},
|
||||
],
|
||||
reporter: [
|
||||
['html', {open: 'never', outputFolder: defaultOutputFolder}],
|
||||
['json', {outputFile: `${defaultOutputFolder}/results.json`}],
|
||||
['junit', {outputFile: `${defaultOutputFolder}/results.xml`}],
|
||||
['list'],
|
||||
],
|
||||
});
|
||||
Ссылка в новой задаче
Block a user