Removes Playwright testing setup from core project
Removes Playwright testing setup, configurations, and related dependencies from the core project. Introduces a dedicated 'playwright-tests' directory to contain the testing framework, isolating test-related dependencies and configurations from the core application. This change aims to keep the core project lean and focused on application logic while promoting a more modular and maintainable testing approach.
This commit is contained in:
parent
fa93335cc6
commit
0756390830
6 changed files with 4094 additions and 1384 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -16,6 +16,7 @@ pnpm-debug.log*
|
|||
# Playwright
|
||||
/test-results/
|
||||
/playwright-report/
|
||||
/playwright-tests/test-results/
|
||||
/blob-report/
|
||||
/playwright/.cache/
|
||||
artifacts/
|
||||
|
|
|
|||
1376
package-lock.json
generated
1376
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -8,8 +8,7 @@
|
|||
"build": "vue-cli-service build",
|
||||
"test:unit": "vue-cli-service test:unit --coverage --ci",
|
||||
"test:unit:lite": "vue-cli-service test:unit --ci",
|
||||
"lint": "vue-cli-service lint",
|
||||
"test:playwright": "playwright test --config=playwright-tests/playwright.config.ts"
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@iframe-resizer/child": "^5.3.3",
|
||||
|
|
@ -31,8 +30,6 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@babel/eslint-parser": "^7.25.1",
|
||||
"@faker-js/faker": "^9.7.0",
|
||||
"@playwright/test": "^1.52.0",
|
||||
"@vue/cli-plugin-babel": "~5.0.8",
|
||||
"@vue/cli-plugin-eslint": "~5.0.8",
|
||||
"@vue/cli-plugin-unit-jest": "~5.0.8",
|
||||
|
|
@ -41,13 +38,9 @@
|
|||
"@vue/eslint-config-prettier": "^9.0.0",
|
||||
"@vue/test-utils": "^2.4.6",
|
||||
"@vue/vue3-jest": "^27.0.0",
|
||||
"axios-retry": "^4.5.0",
|
||||
"dotenv-safe": "^9.1.0",
|
||||
"eslint": "8.57",
|
||||
"eslint-plugin-prettier": "^5.2.1",
|
||||
"eslint-plugin-vue": "^9.27.0",
|
||||
"luxon": "^3.6.1",
|
||||
"ortoni-report": "^3.0.2",
|
||||
"prettier": "^3.3.3",
|
||||
"sass": "^1.77.8",
|
||||
"sass-loader": "^8.0.2",
|
||||
|
|
|
|||
4042
playwright-tests/package-lock.json
generated
Normal file
4042
playwright-tests/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
37
playwright-tests/package.json
Normal file
37
playwright-tests/package.json
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"name": "safelite-nextgen-playwright-tests",
|
||||
"version": "0.1.0",
|
||||
"description": "Automated testing framework for Safelite FMG using Playwright with TypeScript",
|
||||
"directories": {
|
||||
"test": "tests"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "playwright test",
|
||||
"test:headed": "playwright test --headed",
|
||||
"test:debug": "playwright test --debug",
|
||||
"test:smoke": "playwright test --grep @smoke",
|
||||
"test:report": "playwright test --grep @test_report",
|
||||
"report": "playwright show-report",
|
||||
"install": "playwright install",
|
||||
"install:deps": "playwright install-deps"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Your Name <your.email@example.com>",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"axios": "^1.9.0",
|
||||
"axios-retry": "^4.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@faker-js/faker": "^9.8.0",
|
||||
"@playwright/test": "^1.52.0",
|
||||
"@types/dotenv-safe": "^8.1.6",
|
||||
"@types/node": "^22.15.30",
|
||||
"dotenv-safe": "^9.1.0",
|
||||
"eslint": "^9.28.0",
|
||||
"luxon": "^3.6.1",
|
||||
"ortoni-report": "^3.0.2",
|
||||
"typescript": "^5.8.3"
|
||||
},
|
||||
"private": "true"
|
||||
}
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
"noImplicitAny": false,
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"baseUrl": ".",
|
||||
"rootDirs": [
|
||||
"./impl",
|
||||
"./business-logic"
|
||||
|
|
@ -56,7 +57,15 @@
|
|||
],
|
||||
"@utils/*": [
|
||||
"./impl/utils/*"
|
||||
],
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"**/*.ts",
|
||||
"**/*.js"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"artifacts"
|
||||
]
|
||||
}
|
||||
Loading…
Reference in a new issue