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
@@ -23,11 +23,14 @@ export default class Button extends React.Component {
) {
className += ' small';
}
const testId = this.props.testClassId ? `testid:${this.props.testClassId}` : '';
return (
<button
ref={this.props.refButton}
{...this.props}
className={'button no-tw ' + className + ` testid:${this.props.testClassId}`}
className={'button no-tw ' + className + ' ' + testId}
onClick={evt => {
evt.target.blur();
this.props.onClick && this.props.onClick(evt);