chahuadev-framework-en / playwright.config.js
chahuadev
Update README
857cdcf
const { defineConfig } = require('@playwright/test');
/**
* Playwright Configuration for Chahuadev Framework E2E Testing
* @see https://playwright.dev/docs/test-configuration
*/
module.exports = defineConfig({
testDir: './tests',
// กำหนดไฟล์ทดสอบที่ต้องข้าม
testIgnore: [
'**/*.system.spec.js', // ทดสอบส่วนประกอบระบบภายใน
'**/*.framework.spec.js', // ทดสอบ Framework เอง
'**/fixtures*.spec.js' // ทดสอบในข้อมูลตัวอย่าง
],
timeout: 30000,
fullyParallel: false, // Electron apps ควรรันแบบ sequential
workers: 1,
reporter: [
['list'],
['html', { outputFolder: 'test-results' }]
],
use: {
// Global test settings
trace: 'on-first-retry',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},
projects: [
{
name: 'electron',
// ไม่ทดสอบไฟล์ระบบโดยตรง
testMatch: [
'tests/app-behavior.spec.js',
'tests/plugin-*.spec.js'
],
use: {
// Electron-specific settings
}
}
]
});