Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Allow setting Textbox "value" dynamically #1606

Merged
merged 8 commits into from
Sep 5, 2022
Merged

Conversation

aalencar
Copy link
Contributor

  • allow Textbox "value" to be set from wave app
  • add tests for TextField and MaskedTextField
  • fix warning about act() in tests
Screen.Recording.2022-08-24.at.14.22.13.mov

closes #1578

* allow Textbox "value" to be set from wave app
* add tests for TextField and MaskedTextField
* fix warning about act() in tests

closes #1578
Copy link
Collaborator

@mturoci mturoci left a comment

Choose a reason for hiding this comment

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

Thanks @aalencar, looking good overall, just a few small comments from me.

Also can you please extract as part of this PR (unrelated refactor).

const pushMock = jest.fn()
wave.push = pushMock

to the top of the test file so that we create pushMock just once and not per test case?

ui/src/textbox.tsx Outdated Show resolved Hide resolved
ui/src/textbox.test.tsx Show resolved Hide resolved
ui/src/textbox.test.tsx Outdated Show resolved Hide resolved
ui/src/textbox.test.tsx Outdated Show resolved Hide resolved
Copy link
Collaborator

@mturoci mturoci left a comment

Choose a reason for hiding this comment

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

Good job @aalencar!

@mturoci mturoci merged commit 1f26128 into master Sep 5, 2022
@mturoci mturoci deleted the fix/issue-1578 branch September 5, 2022 13:47
@aalencar aalencar mentioned this pull request Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Text box value clearing
2 participants