checkly / headless-recorder

Chrome extension that records your browser interactions and generates a Playwright or Puppeteer script.
https://checklyhq.com/headless-recorder
MIT License
15.03k stars 722 forks source link

Add Jest template next to puppeteer and Playwright #177

Closed dolfje closed 2 years ago

dolfje commented 2 years ago

Description

As jest is more and more used for e2e testing, it would be awesome to also have this template.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

internal use

Checklist:

ianaya89 commented 2 years ago

Thanks again for your contribution. Can you point me to any example/docs about E2E tests with Jest? I think would be a good addition but would like to dive into this workaround first

dolfje commented 2 years ago

I'm using the jest with puppeteer for creating tests: https://jestjs.io/docs/puppeteer

ianaya89 commented 2 years ago

I think creating a new tab for this does not make sense and is a little bit misleading because is not standalone jest and is jest-puppeteer

If we move forward wit this, we will also need to create a tab for jest-playwright and I don't think is the right direction. One possible workaround, could be to have an option that allows users to use jest alternatives for both tools (puppeteer and playwright). Instead of adding new tabs, we keep the same tabs we have but update the output depending on this new setting.

P.S: Anyway, thank you very much for your contribution ❤️