Add testing identifier to elements
This commit is contained in:
@@ -62,6 +62,7 @@ export default class ButtonWithTimeout extends React.Component {
|
||||
(this.props.className ? this.props.className : '')
|
||||
}
|
||||
onClick={this.props.onClick}
|
||||
testClassId={this.props.testClassId}
|
||||
>
|
||||
{this.props.value}
|
||||
</Button>
|
||||
|
||||
@@ -27,7 +27,7 @@ export default class Button extends React.Component {
|
||||
<button
|
||||
ref={this.props.refButton}
|
||||
{...this.props}
|
||||
className={'button no-tw ' + className}
|
||||
className={'button no-tw ' + className + ` testid:${this.props.testClassId}`}
|
||||
onClick={evt => {
|
||||
evt.target.blur();
|
||||
this.props.onClick && this.props.onClick(evt);
|
||||
|
||||
Reference in New Issue
Block a user