@sridharkikkeri/playwright-common 1.0.29 ā 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/create-healthedge-tests.js +14 -13
- package/package.json +1 -1
|
@@ -26,8 +26,7 @@ function copyRecursiveSync(src, dest) {
|
|
|
26
26
|
// 1. Create Clean Directory Structure
|
|
27
27
|
const baseDirs = [
|
|
28
28
|
'src/core',
|
|
29
|
-
'src/pages',
|
|
30
|
-
'src/tests',
|
|
29
|
+
'src/tests/pages',
|
|
31
30
|
'src/fixtures',
|
|
32
31
|
'src/i18n',
|
|
33
32
|
'src/utils',
|
|
@@ -51,8 +50,16 @@ if (fs.existsSync(frameworkSrc)) {
|
|
|
51
50
|
console.log('š Copying framework source logic...');
|
|
52
51
|
copyRecursiveSync(path.join(frameworkSrc, 'core'), path.join(projectPath, 'src/core'));
|
|
53
52
|
copyRecursiveSync(path.join(frameworkSrc, 'fixtures'), path.join(projectPath, 'src/fixtures'));
|
|
53
|
+
|
|
54
|
+
// Mapping quality/pages to tests/pages as requested
|
|
54
55
|
if (fs.existsSync(path.join(frameworkSrc, 'quality/pages'))) {
|
|
55
|
-
|
|
56
|
+
console.log('š Copying quality pages to src/tests/pages...');
|
|
57
|
+
copyRecursiveSync(path.join(frameworkSrc, 'quality/pages'), path.join(projectPath, 'src/tests/pages'));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Copy Sample Tests
|
|
61
|
+
if (fs.existsSync(path.join(frameworkSrc, 'tests'))) {
|
|
62
|
+
copyRecursiveSync(path.join(frameworkSrc, 'tests'), path.join(projectPath, 'src/tests'));
|
|
56
63
|
}
|
|
57
64
|
}
|
|
58
65
|
|
|
@@ -88,7 +95,7 @@ const packageJson = {
|
|
|
88
95
|
'lint': 'eslint . --ext .ts'
|
|
89
96
|
},
|
|
90
97
|
dependencies: {
|
|
91
|
-
'@sridharkikkeri/playwright-common': '^1.0.
|
|
98
|
+
'@sridharkikkeri/playwright-common': '^1.0.31',
|
|
92
99
|
'@playwright/test': '^1.42.0',
|
|
93
100
|
'allure-playwright': '^3.4.5'
|
|
94
101
|
},
|
|
@@ -101,14 +108,8 @@ const packageJson = {
|
|
|
101
108
|
};
|
|
102
109
|
fs.writeFileSync(path.join(projectPath, 'package.json'), JSON.stringify(packageJson, null, 2));
|
|
103
110
|
|
|
104
|
-
// Single Framework Config
|
|
105
|
-
const config = {
|
|
106
|
-
healingEnabled: true,
|
|
107
|
-
environment: 'dev',
|
|
108
|
-
baseUrl: 'https://example.com',
|
|
109
|
-
apiUrl: 'https://api.example.com',
|
|
110
|
-
timeout: 30000
|
|
111
|
-
};
|
|
111
|
+
// Single Framework Config
|
|
112
|
+
const config = { healingEnabled: true, environment: 'dev', baseUrl: 'https://example.com', apiUrl: 'https://api.example.com', timeout: 30000 };
|
|
112
113
|
fs.writeFileSync(path.join(projectPath, 'framework.config.json'), JSON.stringify(config, null, 2));
|
|
113
114
|
|
|
114
115
|
const playwrightConfig = `import { defineConfig } from '@playwright/test';
|
|
@@ -129,7 +130,7 @@ fs.writeFileSync(path.join(projectPath, 'tsconfig.json'), JSON.stringify(tsConfi
|
|
|
129
130
|
const gitignore = `node_modules/\nallure-results/\nallure-report/\n.env\n*.log\n`;
|
|
130
131
|
fs.writeFileSync(path.join(projectPath, '.gitignore'), gitignore);
|
|
131
132
|
|
|
132
|
-
console.log('\nā
Enterprise Project
|
|
133
|
+
console.log('\nā
Enterprise Project Created (Corrected Folder Mapping)');
|
|
133
134
|
console.log('š¦ Installing dependencies...\n');
|
|
134
135
|
|
|
135
136
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sridharkikkeri/playwright-common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"description": "Production-grade Playwright framework with AI-powered self-healing, visual regression, and enterprise features",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|