forked from tagspaces/tagspaces
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.web.js
More file actions
28 lines (26 loc) · 906 Bytes
/
playwright.config.web.js
File metadata and controls
28 lines (26 loc) · 906 Bytes
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
import { defineConfig } from '@playwright/test';
import pwConfig from './playwright.config.common';
//const dotenv = require('dotenv');
//dotenv.config({ path: path.resolve(__dirname, 'tests', 'env', 'web.env') });
global.isWeb = true;
global.isWin = /win32|mswin(?!ce)|mingw|bccwin|cygwin/i.test(process.platform);
global.isHeadlessMode = process.env.HEADLESS_MODE === 'true';
global.isMinio = false;
global.isS3 = true;
global.isElectron = false;
global.isUnitTest = false;
const config = defineConfig({
...pwConfig,
/*global: {
isWeb: true,
isWin: /win32|mswin(?!ce)|mingw|bccwin|cygwin/i.test(process.platform),
isHeadlessMode: process.env.HEADLESS_MODE === 'true',
isMinio: false,
isS3: true,
isElectron: false,
isUnitTest: false
}*/
// globalSetup: './tests/global-setup-web.js',
// globalTeardown: './tests/global-teardown-web.js',
});
export default config;