-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security Solution] Test rule_details_ui/pages/rule_details/index.test.tsx
logs a warning about wrong props passed to EuiSwitch
#147065
Comments
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
but logs a console error saying that there's something wrong with props passes to
This warning could indicate a bug, so probably it's worth investigating. |
rule_details_ui/pages/rule_details/index.test.tsx
logs a warning about wrong props passed to EuiSwitch
…t.tsx logs a warning about wrong props passed to EuiSwitch (elastic#147065)
…t.tsx logs a warning about wrong props passed to EuiSwitch (#162229) ## Summary Related ticket: #147065 This PR fixes the warning within the `rule_details_ui/pages/rule_details/index.test.tsx` test which happens because instead of using required `EuiSwitch`'s `label` field we pass `undefined`. Since, we do not intend to show the label we make it explicitly with `showLabel={false}` and set `label` to an empty string. For more details see [the overview of the EuiSwitch](https://elastic.github.io/eui/#/forms/selection-controls) component.
…t.tsx logs a warning about wrong props passed to EuiSwitch (elastic#162229) ## Summary Related ticket: elastic#147065 This PR fixes the warning within the `rule_details_ui/pages/rule_details/index.test.tsx` test which happens because instead of using required `EuiSwitch`'s `label` field we pass `undefined`. Since, we do not intend to show the label we make it explicitly with `showLabel={false}` and set `label` to an empty string. For more details see [the overview of the EuiSwitch](https://elastic.github.io/eui/#/forms/selection-controls) component.
A test failed on a tracked branch
First failure: CI Build - 8.6
The text was updated successfully, but these errors were encountered: