-
Notifications
You must be signed in to change notification settings - Fork 376
TextArea test revamp #8150
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
Merged
Merged
TextArea test revamp #8150
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
125 changes: 5 additions & 120 deletions
125
packages/react-core/src/components/TextArea/__tests__/__snapshots__/TextArea.test.tsx.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,129 +1,14 @@ | ||
| // Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
|
||
| exports[`TextArea disabled text area using disabled 1`] = ` | ||
| exports[`Matches the snapshot 1`] = ` | ||
| <DocumentFragment> | ||
| <textarea | ||
| aria-invalid="false" | ||
| aria-label="disabled textarea" | ||
| class="pf-c-form-control" | ||
| aria-label="test textarea" | ||
| class="pf-c-form-control custom class" | ||
| disabled="" | ||
| > | ||
| test textarea | ||
| </textarea> | ||
| </DocumentFragment> | ||
| `; | ||
|
|
||
| exports[`TextArea disabled text area using isDisabled 1`] = ` | ||
| <DocumentFragment> | ||
| <textarea | ||
| aria-invalid="false" | ||
| aria-label="is disabled textarea" | ||
| class="pf-c-form-control" | ||
| disabled="" | ||
| > | ||
| test textarea | ||
| </textarea> | ||
| </DocumentFragment> | ||
| `; | ||
|
|
||
| exports[`TextArea horizontally resizable text area 1`] = ` | ||
| <DocumentFragment> | ||
| <textarea | ||
| aria-invalid="true" | ||
| aria-label="horizontal resize textarea" | ||
| class="pf-c-form-control pf-m-resize-horizontal" | ||
| required="" | ||
| > | ||
| test textarea | ||
| </textarea> | ||
| </DocumentFragment> | ||
| `; | ||
|
|
||
| exports[`TextArea read only text area using default readOnlyVariant 1`] = ` | ||
| <DocumentFragment> | ||
| <textarea | ||
| aria-invalid="false" | ||
| aria-label="is default read only textarea" | ||
| class="pf-c-form-control" | ||
| readonly="" | ||
| > | ||
| test textarea | ||
| </textarea> | ||
| </DocumentFragment> | ||
| `; | ||
|
|
||
| exports[`TextArea read only text area using isReadOnly 1`] = ` | ||
| <DocumentFragment> | ||
| <textarea | ||
| aria-invalid="false" | ||
| aria-label="is read only textarea" | ||
| class="pf-c-form-control" | ||
| readonly="" | ||
| > | ||
| test textarea | ||
| </textarea> | ||
| </DocumentFragment> | ||
| `; | ||
|
|
||
| exports[`TextArea read only text area using plain readOnlyVariant 1`] = ` | ||
| <DocumentFragment> | ||
| <textarea | ||
| aria-invalid="false" | ||
| aria-label="is plain read only textarea" | ||
| class="pf-c-form-control pf-m-plain" | ||
| readonly="" | ||
| > | ||
| test textarea | ||
| </textarea> | ||
| </DocumentFragment> | ||
| `; | ||
|
|
||
| exports[`TextArea read only text area using readOnly 1`] = ` | ||
| <DocumentFragment> | ||
| <textarea | ||
| aria-invalid="false" | ||
| aria-label="read only textarea" | ||
| class="pf-c-form-control" | ||
| readonly="" | ||
| > | ||
| test textarea | ||
| </textarea> | ||
| </DocumentFragment> | ||
| `; | ||
|
|
||
| exports[`TextArea simple text area 1`] = ` | ||
| <DocumentFragment> | ||
| <textarea | ||
| aria-invalid="false" | ||
| aria-label="simple textarea" | ||
| class="pf-c-form-control" | ||
| > | ||
| test textarea | ||
| </textarea> | ||
| </DocumentFragment> | ||
| `; | ||
|
|
||
| exports[`TextArea validated text area error 1`] = ` | ||
| <DocumentFragment> | ||
| <textarea | ||
| aria-invalid="true" | ||
| aria-label="validated textarea" | ||
| class="pf-c-form-control" | ||
| required="" | ||
| > | ||
| test textarea | ||
| </textarea> | ||
| </DocumentFragment> | ||
| `; | ||
|
|
||
| exports[`TextArea vertically resizable text area 1`] = ` | ||
| <DocumentFragment> | ||
| <textarea | ||
| aria-invalid="false" | ||
| aria-label="vertical resize textarea" | ||
| class="pf-c-form-control pf-m-resize-vertical" | ||
| > | ||
| test textarea | ||
| </textarea> | ||
| style="--pf-c-form-control--textarea--Height: 6px;" | ||
| /> | ||
| </DocumentFragment> | ||
| `; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.