Use node 10.15.0
npm install
npm start
-
First run React-app using 3000 port
-
go to tests folder, to run all testcases you can run cmd:
npm run test
- https://pptr.dev/#?product=Puppeteer&version=v2.0.0&show=api-pagegotourl-options
- https://jestjs.io/docs/en/puppeteer
- https://github.com/LouisMoore-agGrid/react-jest-enzyme-ag-grid-v22
- https://github.com/AhmedAGadir/ag-grid-react-testing-library-example/
- https://github.com/seanlandsman/ag-grid-testing/blob/master/src/ag-grid.utils.ts
- https://www.tools4testing.com/contents/puppeteer/puppeteer-relative-xpath-by-attribute
- https://github.com/puppeteer/examples
- npm script should be as below,
"test": "react-scripts test --verbose=false --env=jsdom-fourteen",
package.json
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",