diff --git a/.gitignore b/.gitignore index 60652963..71cc656a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ -node_modules -dist +node_modules/ +dist/ NOTES.md Dockerfile .dockerignore .DS_Store -html-report +html-report/ +testplane-report/ diff --git a/.testplane.conf.js b/.testplane.conf.ts similarity index 87% rename from .testplane.conf.js rename to .testplane.conf.ts index 8b59cb78..75a90957 100644 --- a/.testplane.conf.js +++ b/.testplane.conf.ts @@ -1,4 +1,4 @@ -module.exports = { +export default { sets: { desktop: { files: "test/testplane", @@ -10,6 +10,7 @@ module.exports = { automationProtocol: "devtools", desiredCapabilities: { browserName: "chrome", + headless: false, }, }, }, diff --git a/package.json b/package.json index 112e14b4..c6c3150f 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "version": "1.0.0", "scripts": { "start": "nodemon ./src/server/index.ts", - "test": "jest", + "test:jest": "jest", + "test:tp": "testplane", + "test:tp:gui": "testplane gui", "build": "webpack --mode=production --node-env=production", "watch": "webpack --watch" }, @@ -19,6 +21,7 @@ "react-dom": "^18.3.1", "react-helmet": "^6.1.0", "react-redux": "^9.1.2", + "react-router": "^6.24.1", "react-router-dom": "^6.23.1", "redux": "^5.0.1", "redux-observable": "^3.0.0-rc.2", @@ -30,13 +33,13 @@ "@testing-library/react": "^16.0.0", "@types/express": "^4.17.21", "@types/jest": "^29.2.4", - "@types/mini-css-extract-plugin": "^2.5.0", "@types/node": "^20.13.0", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@types/react-helmet": "^6.1.11", "@types/webpack": "^5.28.5", "css-loader": "^7.1.2", + "html-reporter": "^10.3.2", "html-webpack-plugin": "^5.6.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", @@ -45,6 +48,7 @@ "sass": "^1.77.4", "sass-loader": "^14.2.1", "style-loader": "^4.0.0", + "testplane": "^8.15.0", "ts-jest": "^29.1.5", "ts-loader": "^9.5.1", "ts-node": "^10.9.2", diff --git a/test/testplane/tsconfig.json b/test/testplane/tsconfig.json new file mode 100644 index 00000000..3ffd6a0b --- /dev/null +++ b/test/testplane/tsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "types": [ + "testplane" + ] + } +} \ No newline at end of file