1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Used determenistic id for the button

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-05-17 12:06:15 +03:00
parent 453f9926c8
commit db91458a52

View File

@ -42,7 +42,7 @@ export function UpdateButton({ warningLevel, update }: UpdateButtonProps) {
<>
<button
data-testid="update-button"
id={id}
id="update-lens-button"
className={cssNames(styles.updateButton, {
[styles.warningHigh]: warningLevel === "high",
[styles.warningMedium]: warningLevel === "medium",
@ -55,7 +55,7 @@ export function UpdateButton({ warningLevel, update }: UpdateButtonProps) {
</button>
<Menu
usePortal
htmlFor={id}
htmlFor="update-lens-button"
isOpen={opened}
close={toggle}
open={noop}