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

1247 Textarea testing #1490

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open

1247 Textarea testing #1490

wants to merge 5 commits into from

Conversation

eburdekin
Copy link
Member

Fixes #1247

Changes made:

Added tests for the following:

  • textarea renders and displays the correct default value
  • textarea props are passed correctly
  • textarea is accessible and focusable

Reason for changes:

We want to retroactively implement testing to better protect our codebase

@eburdekin eburdekin added the ready for dev lead task ready for dev lead to evaluate label Jul 26, 2024
Copy link
Member

@sydneywalcoff sydneywalcoff left a comment

Choose a reason for hiding this comment

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

@eburdekin Hey Eileen!

These look great I had one small suggestion below!

Comment on lines 107 to 109
const input = getByPlaceholderText('Type here');
userEvent.click(input);
expect(input).toHaveFocus();
Copy link
Member

Choose a reason for hiding this comment

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

There are other ways to focus on a text area, like tabbing from the a different element. Our tests should cover that as well.

@sydneywalcoff sydneywalcoff removed the ready for dev lead task ready for dev lead to evaluate label Aug 11, 2024
@eburdekin
Copy link
Member Author

Thanks @sydneywalcoff ! Added tests to account for tabbing onto the elements.

@eburdekin eburdekin added the ready for dev lead task ready for dev lead to evaluate label Aug 12, 2024
@eburdekin eburdekin linked an issue Aug 12, 2024 that may be closed by this pull request
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for dev lead task ready for dev lead to evaluate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TextArea Testing
2 participants