-
Notifications
You must be signed in to change notification settings - Fork 4
Add data-testid attributes to wfo form components #2080
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
base: main
Are you sure you want to change the base?
Conversation
|
@@ -16,6 +16,8 @@ export const Header = () => { | |||
|
|||
return pydanticFormSchema?.title && | |||
pydanticFormSchema.title !== 'unknown' ? ( | |||
<h3 css={headerStyling}>{pydanticFormSchema?.title}</h3> | |||
<h3 data-testid="pydantic-form-row" css={headerStyling}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think this is a form row. Form-header maybe?
@@ -91,7 +91,7 @@ export const WfoArrayField = ({ | |||
}; | |||
|
|||
return ( | |||
<div css={container}> | |||
<div data-test={arrayName} css={container}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div data-test={arrayName} css={container}> | |
<div data-testid={arrayName} css={container}> |
Add a changeset |
@@ -18,6 +18,7 @@ export const Text: PydanticFormControlledElement = ({ | |||
|
|||
return ( | |||
<EuiFieldText | |||
data-testid="text-field" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use formfield.id like the others?
data-testid="text-field" | |
data-testid={pydanticFormField.id} |
No description provided.