diff --git a/src/components/GeneratePassword/index.test.tsx b/src/components/GeneratePassword/index.test.tsx index 00083f5..9f806fa 100644 --- a/src/components/GeneratePassword/index.test.tsx +++ b/src/components/GeneratePassword/index.test.tsx @@ -326,5 +326,13 @@ describe('GeneratePassword', () => { ); expect(passwordStrengthIndicator).toBeInTheDocument(); + + const passwordStrengthIndicatorFirstChild = + passwordStrengthIndicator.firstElementChild; + + const passwordStrengthIndicatorSecondChild = + passwordStrengthIndicatorFirstChild?.firstChild; + + expect(passwordStrengthIndicatorSecondChild).toHaveClass('bg-red-500'); }); });