react-google-maps-api icon indicating copy to clipboard operation
react-google-maps-api copied to clipboard

Create E2E tests with `cypress` or `puppeteer` against dev docs, and run it before each commit.

Open JustFly1984 opened this issue 5 years ago • 2 comments

Currently we have no tests implemented at all. We have Typescript, Eslint, docs generation and gatsby.js example

We can't use dom based tests with node.js environment, cos we need to have window.google global object created by google-maps-api script, loaded in runtime by <LoadScript /> component.

We need to run headless browser tests with cypress against dev docs build before each commit with husky and lint-staged

JustFly1984 avatar May 08 '19 20:05 JustFly1984

There is a gatsby-plugin-cypress, which we can leverage for testing gatsby-example

JustFly1984 avatar May 08 '19 20:05 JustFly1984

We could use puppeteer https://www.youtube.com/watch?v=MbnATLCuKI4

JustFly1984 avatar May 10 '19 07:05 JustFly1984