forked from ryanrosello-og/playwright-slack-report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playwright.config.ts
50 lines (48 loc) · 1.24 KB
/
playwright.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// playwright.config.ts
import { PlaywrightTestConfig, devices } from '@playwright/test';
// eslint-disable-next-line import/no-unresolved, import/extensions
// import { generateCustomLayout } from './src/custom_block/my_block';
require('dotenv').config();
const config: PlaywrightTestConfig = {
forbidOnly: !!process.env.CI,
use: {
trace: 'on',
screenshot: 'on',
video: 'on',
},
projects: [
{
name: 'Nightly_Regression',
use: { ...devices['Desktop Chrome'] },
},
],
reporter: [
[
'./src/SlackReporter.ts',
{
channels: ['qa-automation'],
sendResults: 'always', // "always" , "on-failure", "off"
maxNumberOfFailuresToShow: 0,
showInThread: true,
// layout: generateCustomLayout,
meta: [
{
key: 'BuildID',
value: '0181ec91-6d2e-4ac9-8587-7612858a57a7',
},
{
key: 'Branch',
value: 'feat/create-secondary-account',
},
{
key: 'HTML Results',
value:
'<https://buildkite-artifacts.playwright.dev/pw/23887/playwright-report/index.html|📊>',
},
],
},
],
['dot'],
],
};
export default config;