Skip to content

Commit 37bba3d

Browse files
committed
test: update HighlightedUsersInput test to check for highlighted class instead of transparent color
1 parent 7464001 commit 37bba3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/authz-module/role-assignation-wizard/HighlightedUsersInput.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('HighlightedUsersInput', () => {
6767
<HighlightedUsersInput {...defaultProps} value="jdoe, baduser" invalidUsers={['baduser']} />,
6868
);
6969
const textarea = container.querySelector('textarea');
70-
expect(textarea!.style.color).toBe('transparent');
70+
expect(textarea).toHaveClass('highlighted-users-input__textarea--highlighted');
7171
});
7272

7373
it('adds is-invalid class when hasError is true', () => {

0 commit comments

Comments
 (0)