File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed
packages/pluggableWidgets
progress-circle-web/src/components Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -89,11 +89,9 @@ export const ProgressCircle: FunctionComponent<ProgressCircleProps> = ({
89
89
) }
90
90
style = { style }
91
91
>
92
- { alertMessage ? (
93
- < Alert bootstrapStyle = "danger" role = "alert" >
94
- { alertMessage }
95
- </ Alert >
96
- ) : null }
92
+ < Alert bootstrapStyle = "danger" role = "alert" >
93
+ { alertMessage }
94
+ </ Alert >
97
95
< div
98
96
className = { classNames ( "h2" , "progress-circle-label-container" , {
99
97
"widget-progress-circle-clickable" : ! ! onClick
Original file line number Diff line number Diff line change 1
1
import "@testing-library/jest-dom" ;
2
- // Removed unused Alert, AlertProps imports
3
2
import { actionValue , EditableValueBuilder } from "@mendix/widget-plugin-test-utils" ;
4
3
import { render , fireEvent } from "@testing-library/react" ;
5
4
import { createElement } from "react" ;
6
-
7
- // Removed unused SwitchComponent, SwitchProps imports
8
5
import { SwitchContainerProps } from "../../typings/SwitchProps" ;
9
6
import { Switch } from "../Switch" ;
10
7
@@ -105,8 +102,6 @@ describe("Switch", () => {
105
102
expect ( wrapper ?. getAttribute ( "aria-readonly" ) ) . toBe ( "false" ) ;
106
103
} ) ;
107
104
108
- // Removed preventDefault tests: RTL does not support checking preventDefault on synthetic events
109
-
110
105
it ( "invokes action on click" , ( ) => {
111
106
const props = createProps ( { action : actionValue ( ) } ) ;
112
107
const { container } = renderSwitch ( props ) ;
@@ -201,7 +196,5 @@ describe("Switch", () => {
201
196
fireEvent . click ( button ! ) ;
202
197
expect ( props . booleanAttribute . setValue ) . not . toHaveBeenCalled ( ) ;
203
198
} ) ;
204
-
205
- // Removed preventDefault tests: RTL does not support checking preventDefault on synthetic events
206
199
} ) ;
207
200
} ) ;
You can’t perform that action at this time.
0 commit comments