Add more test id to elements based on test case e2e

This commit is contained in:
lethemanh
2024-12-10 21:59:55 +07:00
parent 217e683269
commit 86e3661508
36 changed files with 128 additions and 55 deletions
@@ -63,6 +63,8 @@ export default class Input extends Component {
);
}
const testId = this.props.testClassId ? `testid:${this.props.testClassId}` : '';
return (
<input
ref={node => {
@@ -76,7 +78,7 @@ export default class Input extends Component {
}
this.onKeyDown(evt);
}}
className={'input ' + (className || '') + ` testid:${this.props.testClassId}`}
className={'input ' + (className || '') + ' ' + testId}
onBlur={this.props.onBlur}
onChange={this.props.onChange}
/>