mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Add data-testid for App forms select fields (#33594)
This commit is contained in:
@@ -146,6 +146,7 @@ export default class AppsFormField extends React.PureComponent<Props> {
|
||||
return (
|
||||
<AppsFormSelectField
|
||||
{...this.props}
|
||||
id={name}
|
||||
teammateNameDisplay={this.props.teammateNameDisplay}
|
||||
field={field}
|
||||
label={displayNameContent}
|
||||
|
||||
@@ -21,6 +21,7 @@ import {SelectChannelOption} from './select_channel_option';
|
||||
import {SelectUserOption} from './select_user_option';
|
||||
|
||||
export type Props = {
|
||||
id: string;
|
||||
field: AppField;
|
||||
label: React.ReactNode;
|
||||
helpText: React.ReactNode;
|
||||
@@ -226,6 +227,7 @@ export default class AppsFormSelectField extends React.PureComponent<Props, Stat
|
||||
|
||||
return (
|
||||
<div
|
||||
data-testid={this.props.id}
|
||||
className='form-group'
|
||||
>
|
||||
{label && (
|
||||
|
||||
Reference in New Issue
Block a user