The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/playwright.config.ts

46 lines
1.3 KiB

import type { PlaywrightTestConfig } from '@playwright/test';
import * as constants from './tests/e2e/config/constants';
export default {
globalSetup: require.resolve('./tests/e2e/config/global-setup.ts'),
use: {
headless: true,
ignoreHTTPSErrors: true,
trace: 'retain-on-failure',
baseURL: constants.BASE_URL,
screenshot: process.env.CI ? 'off' : 'only-on-failure',
video: process.env.CI ? 'off' : 'retain-on-failure',
channel: 'chrome',
launchOptions: {
// force GPU hardware acceleration
// (even in headless mode)
args: ['--use-gl=egl', '--use-fake-ui-for-media-stream'],
},
permissions: ['microphone'],
},
outputDir: 'tests/e2e/.playwright',
reporter: [
['list'],
// process.env.CI ? ['github'] : ['list'],
[
'playwright-qase-reporter',
{
apiToken: `${process.env.QASE_API_TOKEN}`,
rootSuiteTitle: 'Rocket.chat automation',
projectCode: 'RC',
runComplete: true,
basePath: 'https://api.qase.io/v1',
logging: true,
uploadAttachments: false,
environmentId: '1',
},
],
],
testDir: 'tests/e2e',
testIgnore: 'tests/e2e/federation/**',
workers: 1,
timeout: 60 * 1000,
globalTimeout: (process.env.IS_EE === 'true' ? 50 : 40) * 60 * 1000,
maxFailures: process.env.CI ? 5 : undefined,
} as PlaywrightTestConfig;