testing-library / testing-playground

Simple and complete DOM testing playground that encourage good testing practices.
https://testing-playground.com
MIT License
788 stars 62 forks source link

Events recorder with test code output #294

Open petrkrejcik opened 3 years ago

petrkrejcik commented 3 years ago

Summary 💡

The extension would have a record button which would store every user action performed in the page (click, type, etc.) to a code output window.

Examples 🌈

Something similar is already done in Cypress Recorder.

In the ideal world there would be a select box with different test libraries (Jest + TL, Cypress + TL, ...) which would define the output code. image

Motivation 🔦

It could be useful to make a basic skeleton of a test. The output from the recorder could be pasted directly into a test function and a user would have a basic flow of the test without any effort.

A user would add just the assertions and a test is ready.

smeijer commented 3 years ago

Hi @petrkrejcik,

Thanks for the feature request. Are you willing / able to spend time on a pull request?

petrkrejcik commented 3 years ago

Sorry, I am not able to spent time on implementing this feature. I hope there might be somebody.