|
@@ -18,22 +18,20 @@
|
|
|
"i18n": "./i18n-scripts/build-i18n.sh && node ./i18n-scripts/set-english-defaults.js",
|
|
"i18n": "./i18n-scripts/build-i18n.sh && node ./i18n-scripts/set-english-defaults.js",
|
|
|
"test": "LANG=en_US.UTF-8 jest",
|
|
"test": "LANG=en_US.UTF-8 jest",
|
|
|
"lint": "yarn eslint src integration-tests --fix --max-warnings 0 && stylelint 'src/**/*.css' --allow-empty-input --fix",
|
|
"lint": "yarn eslint src integration-tests --fix --max-warnings 0 && stylelint 'src/**/*.css' --allow-empty-input --fix",
|
|
|
- "test-cypress": "cd integration-tests && cypress open",
|
|
|
|
|
- "test-cypress-headless": "cd integration-tests && node --max-old-space-size=4096 ../node_modules/.bin/cypress run --browser ${BRIDGE_E2E_BROWSER_NAME:-electron}",
|
|
|
|
|
- "cypress-merge": "mochawesome-merge ./integration-tests/screenshots/cypress_report*.json > ./integration-tests/screenshots/cypress.json",
|
|
|
|
|
- "cypress-generate": "marge -o ./integration-tests/screenshots/ -f cypress-report -t 'OpenShift Console Plugin Template Cypress Test Results' -p 'OpenShift Cypress Plugin Template Test Results' --showPassed false --assetsDir ./integration-tests/screenshots/cypress/assets ./integration-tests/screenshots/cypress.json",
|
|
|
|
|
- "cypress-postreport": "yarn cypress-merge && yarn cypress-generate",
|
|
|
|
|
|
|
+ "test-e2e": "playwright test --headed",
|
|
|
|
|
+ "test-e2e-headless": "playwright test",
|
|
|
"webpack": "node -r ts-node/register ./node_modules/.bin/webpack"
|
|
"webpack": "node -r ts-node/register ./node_modules/.bin/webpack"
|
|
|
},
|
|
},
|
|
|
"devDependencies": {
|
|
"devDependencies": {
|
|
|
"@babel/core": "^7.29.0",
|
|
"@babel/core": "^7.29.0",
|
|
|
"@babel/preset-env": "^7.29.3",
|
|
"@babel/preset-env": "^7.29.3",
|
|
|
- "@cypress/webpack-preprocessor": "^7.1.0",
|
|
|
|
|
"@openshift-console/dynamic-plugin-sdk": "4.22-latest",
|
|
"@openshift-console/dynamic-plugin-sdk": "4.22-latest",
|
|
|
"@openshift-console/dynamic-plugin-sdk-webpack": "4.22-latest",
|
|
"@openshift-console/dynamic-plugin-sdk-webpack": "4.22-latest",
|
|
|
"@patternfly/react-core": "^6.4.3",
|
|
"@patternfly/react-core": "^6.4.3",
|
|
|
"@patternfly/react-icons": "^6.4.0",
|
|
"@patternfly/react-icons": "^6.4.0",
|
|
|
"@patternfly/react-table": "^6.4.3",
|
|
"@patternfly/react-table": "^6.4.3",
|
|
|
|
|
+ "@playwright/browser-chromium": "^1.59.1",
|
|
|
|
|
+ "@playwright/test": "^1.59.1",
|
|
|
"@swc/core": "^1.15.32",
|
|
"@swc/core": "^1.15.32",
|
|
|
"@swc/jest": "^0.2.39",
|
|
"@swc/jest": "^0.2.39",
|
|
|
"@testing-library/dom": "^10.4.1",
|
|
"@testing-library/dom": "^10.4.1",
|
|
@@ -46,14 +44,12 @@
|
|
|
"babel-loader": "^10.1.1",
|
|
"babel-loader": "^10.1.1",
|
|
|
"copy-webpack-plugin": "^14.0.0",
|
|
"copy-webpack-plugin": "^14.0.0",
|
|
|
"css-loader": "^7.1.4",
|
|
"css-loader": "^7.1.4",
|
|
|
- "cypress": "^15.14.2",
|
|
|
|
|
- "cypress-multi-reporters": "^2.0.5",
|
|
|
|
|
"eslint": "^9.7.0",
|
|
"eslint": "^9.7.0",
|
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
|
- "eslint-plugin-cypress": "^6.4.0",
|
|
|
|
|
"eslint-plugin-import-x": "^4.16.2",
|
|
"eslint-plugin-import-x": "^4.16.2",
|
|
|
"eslint-plugin-jest": "^29.15.2",
|
|
"eslint-plugin-jest": "^29.15.2",
|
|
|
|
|
+ "eslint-plugin-playwright": "^2.10.2",
|
|
|
"eslint-plugin-prettier": "^5.5.5",
|
|
"eslint-plugin-prettier": "^5.5.5",
|
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
@@ -65,10 +61,6 @@
|
|
|
"jest": "^30.3.0",
|
|
"jest": "^30.3.0",
|
|
|
"jest-environment-jsdom": "^30.3.0",
|
|
"jest-environment-jsdom": "^30.3.0",
|
|
|
"jest-junit": "^17.0.0",
|
|
"jest-junit": "^17.0.0",
|
|
|
- "mocha": "^11.7.5",
|
|
|
|
|
- "mocha-junit-reporter": "^2.2.1",
|
|
|
|
|
- "mochawesome": "^7.1.4",
|
|
|
|
|
- "mochawesome-merge": "^5.1.1",
|
|
|
|
|
"pluralize": "^8.0.0",
|
|
"pluralize": "^8.0.0",
|
|
|
"prettier": "^3.8.3",
|
|
"prettier": "^3.8.3",
|
|
|
"prettier-stylelint": "^0.4.2",
|
|
"prettier-stylelint": "^0.4.2",
|
|
@@ -88,7 +80,7 @@
|
|
|
"webpack-dev-server": "^5.2.3"
|
|
"webpack-dev-server": "^5.2.3"
|
|
|
},
|
|
},
|
|
|
"dependenciesMeta": {
|
|
"dependenciesMeta": {
|
|
|
- "cypress": {
|
|
|
|
|
|
|
+ "@playwright/browser-chromium": {
|
|
|
"built": true
|
|
"built": true
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|