-
Notifications
You must be signed in to change notification settings - Fork 154
/
playwright.config.ts
38 lines (34 loc) · 1006 Bytes
/
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
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import dotenv from 'dotenv';
import testConfig from '@e2e-test.playwright-config';
dotenv.config({path: `${__dirname}/.env`});
// Configuration override for plugin tests
testConfig.testDir = __dirname + '/tests';
testConfig.outputDir = __dirname + '/test-results';
testConfig.testMatch = 'test.list.ts';
testConfig.timeout = 30 * 1000;
if (!testConfig.use) {
testConfig.use = {};
}
testConfig.use.video = {
mode: 'on',
size: {width: 1024, height: 768},
};
testConfig.projects = [
{
name: 'setup',
testMatch: /integrations\.setup\.ts/,
},
{
name: 'chrome',
use: {
browserName: 'chromium',
permissions: ['notifications'],
viewport: {width: 1280, height: 1024},
storageState: __dirname + '/.auth-user.json',
},
dependencies: ['setup'],
},
];
export default testConfig;