Used determenistic id for the button

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-05-17 12:06:15 +03:00
1 parent 453f9926c8
commit db91458a52
1 file changed
+2 -2
@@ -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}