From 106bcc44f4a2d177078aea305f5fcb1e15a902e4 Mon Sep 17 00:00:00 2001 From: "Omar H." <3652875+arome@users.noreply.github.com> Date: Fri, 13 Feb 2026 12:15:54 -0500 Subject: [PATCH 01/23] Update data-testid attributes to use dynamic props for better flexibility --- .../src/components-react/editors/BooleanEditor.tsx | 2 +- .../src/components-react/editors/DateTimeEditor.tsx | 2 +- .../src/components-react/editors/EditorContainer.tsx | 2 +- ui/components-react/src/components-react/editors/EnumEditor.tsx | 2 +- ui/components-react/src/components-react/editors/IconEditor.tsx | 2 +- .../src/components-react/editors/ImageCheckBoxEditor.tsx | 2 +- .../src/components-react/editors/TextareaEditor.tsx | 2 +- .../src/components-react/editors/ToggleEditor.tsx | 2 +- .../src/imodel-components-react/editors/ColorEditor.tsx | 2 +- .../src/imodel-components-react/editors/WeightEditor.tsx | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ui/components-react/src/components-react/editors/BooleanEditor.tsx b/ui/components-react/src/components-react/editors/BooleanEditor.tsx index 4466c740d03..fac3525d13c 100644 --- a/ui/components-react/src/components-react/editors/BooleanEditor.tsx +++ b/ui/components-react/src/components-react/editors/BooleanEditor.tsx @@ -139,7 +139,7 @@ export class BooleanEditor this.props.propertyRecord?.isDisabled || this.props.propertyRecord?.isReadonly } - data-testid="components-checkbox-editor" + data-testid={this.props.itemId ?? "components-checkbox-editor"} > ); } diff --git a/ui/components-react/src/components-react/editors/DateTimeEditor.tsx b/ui/components-react/src/components-react/editors/DateTimeEditor.tsx index 23f54f7614a..4e54987139c 100644 --- a/ui/components-react/src/components-react/editors/DateTimeEditor.tsx +++ b/ui/components-react/src/components-react/editors/DateTimeEditor.tsx @@ -304,7 +304,7 @@ export class DateTimeEditor <>
{clonedNode} diff --git a/ui/components-react/src/components-react/editors/EnumEditor.tsx b/ui/components-react/src/components-react/editors/EnumEditor.tsx index 9f3dbdb4a33..e4d2146eba6 100644 --- a/ui/components-react/src/components-react/editors/EnumEditor.tsx +++ b/ui/components-react/src/components-react/editors/EnumEditor.tsx @@ -180,7 +180,7 @@ export class EnumEditor style={this.props.style ? this.props.style : minWidthStyle} value={selectValue} onChange={this._updateSelectValue} - data-testid="components-select-editor" + data-testid={this.props.itemId ?? "components-select-editor"} options={this.state.options} triggerProps={{ ref: (el) => { diff --git a/ui/components-react/src/components-react/editors/IconEditor.tsx b/ui/components-react/src/components-react/editors/IconEditor.tsx index 99493386308..413378b5def 100644 --- a/ui/components-react/src/components-react/editors/IconEditor.tsx +++ b/ui/components-react/src/components-react/editors/IconEditor.tsx @@ -170,7 +170,7 @@ export class IconEditor disabled={this.props.propertyRecord?.isDisabled} readonly={this.props.propertyRecord?.isReadonly} onIconChange={this._onIconChange} - data-testid="components-icon-editor" + data-testid={this.props.itemId ?? "components-icon-editor"} />
); diff --git a/ui/components-react/src/components-react/editors/ImageCheckBoxEditor.tsx b/ui/components-react/src/components-react/editors/ImageCheckBoxEditor.tsx index 53a357d1942..79c4aa528ad 100644 --- a/ui/components-react/src/components-react/editors/ImageCheckBoxEditor.tsx +++ b/ui/components-react/src/components-react/editors/ImageCheckBoxEditor.tsx @@ -161,7 +161,7 @@ export class ImageCheckBoxEditor checked={checked} disabled={isDisabled} onClick={this._handleClick} - data-testid="components-imagecheckbox-editor" + data-testid={this.props.itemId ?? "components-imagecheckbox-editor"} /> ); } diff --git a/ui/components-react/src/components-react/editors/TextareaEditor.tsx b/ui/components-react/src/components-react/editors/TextareaEditor.tsx index 05062e4dd59..e71ca3daf61 100644 --- a/ui/components-react/src/components-react/editors/TextareaEditor.tsx +++ b/ui/components-react/src/components-react/editors/TextareaEditor.tsx @@ -211,7 +211,7 @@ export class TextareaEditor