ToolJet/package.json
Mohini Dahiya 80145bd315
[Cypress] Fix existing tests on Editor (#728)
* Test try git

* Updated 'editor-navigation-bar.spec.js' tests

Fixes #718
1. Removes test for hiding left sidebar.
2. Fixes test - resize canvas
3. Fixes test - switch to dark theme

* Updated index.js and cypress.json files

1. Added viewport to cypress.json file to support macbook pro 16.
2. Updated index.js file to do golobal import of cypress-drag-drop.
3. Merged custom method from dev branch to command.js file.

* Add cypress. reference type to index.js

* Fixes 'editor-datasource-postgres.spec.js'

1. Updated test with new UI changes.
2. Updated 'addPostgresDataSource' method in 'command.js' file to mark SSL box unchecked.
2021-09-15 08:21:56 +05:30

37 lines
1.5 KiB
JSON

{
"lint-staged": {
"./frontend/src/**/*.jsx": [
"eslint --fix"
]
},
"devDependencies": {
"@4tw/cypress-drag-drop": "^1.8.0",
"@babel/core": "^7.4.3",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/preset-env": "^7.4.3",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.5",
"html-webpack-plugin": "^3.2.0",
"path": "^0.12.7",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12"
},
"dependencies": {
"@nestjs/cli": "^8.1.0",
"eslint": "^7.25.0",
"ts-node": "^10.1.0"
},
"scripts": {
"build": "npm --prefix frontend install && NODE_ENV=production npm --prefix frontend run build && npm --prefix server install && NODE_ENV=production npm --prefix server run build",
"start:prod": "npm --prefix server run start:prod",
"db:create": "npm --prefix server run db:create",
"db:migrate": "npm --prefix server run db:migrate",
"db:reset": "npm --prefix server run db:reset",
"db:drop": "npm --prefix server run db:drop",
"deploy": "cp -a frontend/build/. public/",
"heroku-postbuild": "npm run build && npm run deploy",
"heroku-prebuild": "npm --prefix frontend install && npm --prefix server install ",
"cy:run": "cypress run --env db.name=$TEST_PG_DB,db.user=$TEST_PG_USERNAME,db.password=$TEST_PG_PASSWORD",
"cy:open": "cypress open --env db.name=$TEST_PG_DB,db.user=$TEST_PG_USERNAME,db.password=$TEST_PG_PASSWORD"
}
}