@sridharkikkeri/playwright-common 1.0.25 → 1.0.27
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.
|
@@ -97,7 +97,7 @@ const packageJson = {
|
|
|
97
97
|
'lint': 'eslint . --ext .ts'
|
|
98
98
|
},
|
|
99
99
|
dependencies: {
|
|
100
|
-
'@sridharkikkeri/playwright-common': '^1.0.
|
|
100
|
+
'@sridharkikkeri/playwright-common': '^1.0.27',
|
|
101
101
|
'@playwright/test': '^1.42.0',
|
|
102
102
|
'allure-playwright': '^3.4.5'
|
|
103
103
|
},
|
|
@@ -114,12 +114,7 @@ fs.writeFileSync(path.join(projectPath, 'package.json'), JSON.stringify(packageJ
|
|
|
114
114
|
const baseConfig = { healingEnabled: true, environment: 'dev', baseUrl: 'https://example.com', apiUrl: 'https://api.example.com', timeout: 30000 };
|
|
115
115
|
fs.writeFileSync(path.join(projectPath, 'framework.config.json'), JSON.stringify(baseConfig, null, 2));
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
const environments = ['dev', 'qa', 'auto', 'staging', 'prod'];
|
|
119
|
-
environments.forEach(env => {
|
|
120
|
-
const config = { ...baseConfig, environment: env, baseUrl: `https://${env}.example.com`, apiUrl: `https://api-${env}.example.com` };
|
|
121
|
-
fs.writeFileSync(path.join(projectPath, `framework.config.${env}.json`), JSON.stringify(config, null, 2));
|
|
122
|
-
});
|
|
117
|
+
|
|
123
118
|
|
|
124
119
|
const playwrightConfig = `import { defineConfig } from '@playwright/test';
|
|
125
120
|
export default defineConfig({
|
|
@@ -142,7 +137,7 @@ fs.writeFileSync(path.join(projectPath, 'tsconfig.json'), JSON.stringify(tsConfi
|
|
|
142
137
|
const gitignore = `node_modules/\nallure-results/\nallure-report/\n.env\n*.log\n`;
|
|
143
138
|
fs.writeFileSync(path.join(projectPath, '.gitignore'), gitignore);
|
|
144
139
|
|
|
145
|
-
console.log('\n✅
|
|
140
|
+
console.log('\n✅ Enterprise Project Structure Created');
|
|
146
141
|
console.log('📦 Installing dependencies...\n');
|
|
147
142
|
|
|
148
143
|
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.27",
|
|
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",
|