Skip to content

Commit 9e3f67f

Browse files
committed
remove static test ids that have been deprecated so far
1 parent ddc05f9 commit 9e3f67f

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ This is a major release, and it might be not compatible with your current usage
6161
- removed `description` and `iconTitle` properties
6262
- `<OverviewItemList />`
6363
- `densityHigh` property was removed
64+
- `<CodeEditor />`
65+
- static test id `codemirror-wrapper` was removed, add `data-test-id` (or your test id data attribute) to `outerDivAttributes` property of the component
6466
- `nodeTypes` and `edgeTypes` exports were removed
6567
- use `<ReactFlow/` with `configuration`, or define it yourself
6668
- SCSS variables `$eccgui-color-application-text` and `$eccgui-color-application-background` were removed
@@ -513,8 +515,6 @@ This is a major release, and it might be not compatible with your current usage
513515
- `<MultiSuggestField />`
514516
- Updated the interface with the ability to use either `selectedItems` or `prePopulateWithItems` properties, which is more logical.
515517
- Fixed deferred `selectedItems` setting.
516-
- `<StickyNoteModal/>`
517-
- static test id `data-test-id="sticky-note-modal"` will be removed with next major version
518518
- `<BreadcrumbsList />`
519519
- `onItemClick` handler is only executed if breadcrumb has `href` set because this is one callback parameter and the handler would not have any information otherwise
520520
- `<Depiction />`
@@ -541,6 +541,8 @@ This is a major release, and it might be not compatible with your current usage
541541

542542
- `<TextArea />`
543543
- `hasStatePrimary`, `hasStateSuccess`, `hasStateWarning` and `hasStateDanger` properties: use the `intent` property instead.
544+
- `<StickyNoteModal/>`
545+
- static test id `data-test-id="sticky-note-modal"` will be removed with next major version
544546

545547
## [23.6.0] - 2024-04-17
546548

src/cmem/react-flow/StickyNoteModal/StickyNoteModal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ export const StickyNoteModal: React.FC<StickyNoteModalProps> = React.memo(
118118
</Button>,
119119
]}
120120
{...simpleDialogProps}
121-
data-test-id={(simpleDialogProps ?? {})["data-test-id"] ?? "sticky-note-modal"} // @deprecated (v25) we remove this automatically set testid
122121
>
123122
<FieldItem
124123
key="note"

src/components/MultiSelect/MultiSelect.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ export function MultiSuggestField<T>({
441441
<IconButton
442442
disabled={disabled}
443443
name="operation-clear"
444-
data-test-id={dataTestId ? dataTestId + "_clearance" : "clear-all-items"} // @deprecated (v25) automatically set test id will be removed
444+
data-test-id={dataTestId ? dataTestId + "_clearance" : undefined}
445+
data-testid={dataTestid ? dataTestid + "_clearance" : undefined}
445446
onClick={handleClear}
446447
/>
447448
) : undefined;

src/extensions/codemirror/CodeMirror.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export interface CodeEditorProps extends TestableComponent {
100100
/** Long lines are wrapped and displayed on multiple lines */
101101
wrapLines?: boolean;
102102

103-
outerDivAttributes?: Omit<React.HTMLAttributes<HTMLDivElement>, "id" | "data-test-id">;
103+
outerDivAttributes?: Omit<React.HTMLAttributes<HTMLDivElement>, "id">;
104104

105105
/**
106106
* Size in spaces that is used for a tabulator key.
@@ -213,7 +213,6 @@ export const CodeEditor = ({
213213
enableTab = false,
214214
height,
215215
useLinting = false,
216-
"data-test-id": dataTestId,
217216
autoFocus = false,
218217
disabled = false,
219218
intent,
@@ -490,8 +489,6 @@ export const CodeEditor = ({
490489
// overwrite/extend some attributes
491490
id={id ? id : name ? `codemirror-${name}` : undefined}
492491
ref={parent}
493-
// @deprecated (v25) fallback with static test id will be removed
494-
data-test-id={dataTestId ? dataTestId : "codemirror-wrapper"}
495492
className={
496493
`${eccgui}-codeeditor ${eccgui}-codeeditor--mode-${mode}` +
497494
(outerDivAttributes?.className ? ` ${outerDivAttributes?.className}` : "") +

0 commit comments

Comments
 (0)