Skip to content

add step recorder#88

Merged
trueadm merged 2 commits into
mainfrom
add-step-recorder
Feb 12, 2021
Merged

add step recorder#88
trueadm merged 2 commits into
mainfrom
add-step-recorder

Conversation

@feedthejim

@feedthejim feedthejim commented Feb 12, 2021

Copy link
Copy Markdown
Screen.Recording.2021-02-12.at.15.02.27.mov

This is a helper to help us write test more easily (+1 against regressions) and also share bugs more easily.

What it does:

  • record on key down whatever action you take and that we have a test helper for
  • generates a jest test template with the expected DOM/Selection

Not supported (yet):

  • copy paste
  • undo redo
  • some other selection operations

You can copy paste the generated stuff and it should generate a working test.

@feedthejim feedthejim requested a review from trueadm February 12, 2021 15:05
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 12, 2021
if (!isRecording) {
return;
}
if (isDeleteBackward(event)) {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this got out of hand a bit quickly haha

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can probably clean this up.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be done in a follow up :) this PR is awesome.

@trueadm trueadm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#impact

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants