-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecept.conf.js
More file actions
28 lines (24 loc) · 865 Bytes
/
Copy pathcodecept.conf.js
File metadata and controls
28 lines (24 loc) · 865 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
const { setHeadlessWhen, setCommonPlugins } = require('@codeceptjs/configure');
// Setup headless mode via environment variable
exports.config = {
helpers: {
Playwright: {
url: 'http://localhost',
browser: 'chromium',
show: false, // Change to false if running in headless mode
},
MySQLHelper: {
require: 'codeceptjs-dbhelper',
host: process.env.SOURCE_DB_HOST || '127.0.0.1',
database: process.env.SOURCE_DB_NAME || 'source_db',
user: process.env.SOURCE_DB_USER || 'root',
password: process.env.SOURCE_DB_PASSWORD || '&&Adlerqa9713',
port: 3306
}
},
tests: './*_test.js',
output: './output',
name: 'codeceptjs-playwright-project',
};
// Note: Replace your credentials with environment variables in the .env file
// Example: SOURCE_DB_USER='root', SOURCE_DB_PASSWORD='password123'