mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
test: Migrate UI tests from Cypress -> Playwright (no-changelog) (#18201)
This commit is contained in:
@@ -5,7 +5,7 @@ export default [
|
||||
...baseConfig,
|
||||
playwrightPlugin.configs['flat/recommended'],
|
||||
{
|
||||
ignores: ['playwright-report/**/*'],
|
||||
ignores: ['playwright-report/**/*', 'ms-playwright-cache/**/*'],
|
||||
},
|
||||
{
|
||||
rules: {
|
||||
@@ -22,6 +22,43 @@ export default [
|
||||
'playwright/max-nested-describe': 'warn',
|
||||
'playwright/no-conditional-in-test': 'error',
|
||||
'playwright/no-skipped-test': 'warn',
|
||||
// Allow any naming convention for TestRequirements object properties
|
||||
// This is specifically for workflow filenames and intercept keys that may not follow camelCase
|
||||
'@typescript-eslint/naming-convention': [
|
||||
'error',
|
||||
{
|
||||
selector: 'default',
|
||||
format: ['camelCase'],
|
||||
leadingUnderscore: 'allow',
|
||||
trailingUnderscore: 'allow',
|
||||
},
|
||||
{
|
||||
selector: 'variable',
|
||||
format: ['camelCase', 'UPPER_CASE'],
|
||||
},
|
||||
{
|
||||
selector: 'typeLike',
|
||||
format: ['PascalCase'],
|
||||
},
|
||||
{
|
||||
selector: 'property',
|
||||
format: ['camelCase', 'snake_case', 'UPPER_CASE'],
|
||||
filter: {
|
||||
// Allow any format for properties in TestRequirements objects (workflow files, intercept keys, etc.)
|
||||
regex: '^(workflow|intercepts|storage|config)$',
|
||||
match: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
selector: 'objectLiteralProperty',
|
||||
format: null, // Allow any format for object literal properties in TestRequirements
|
||||
filter: {
|
||||
// This allows workflow filenames and intercept keys to use any naming convention
|
||||
regex: '\\.(json|spec\\.ts)$|[a-zA-Z0-9_-]+',
|
||||
match: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
'import-x/no-extraneous-dependencies': [
|
||||
'error',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user