From ea41e55791575cdf3905eee5493c347e87d3cf72 Mon Sep 17 00:00:00 2001 From: Matthew Russell Date: Tue, 22 Aug 2023 11:30:34 +0100 Subject: [PATCH] chore: update checkbox test --- .../src/components/trading-checkbox/checkbox.spec.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ui-toolkit/src/components/trading-checkbox/checkbox.spec.tsx b/libs/ui-toolkit/src/components/trading-checkbox/checkbox.spec.tsx index a0db29d4d..eab21b5f0 100644 --- a/libs/ui-toolkit/src/components/trading-checkbox/checkbox.spec.tsx +++ b/libs/ui-toolkit/src/components/trading-checkbox/checkbox.spec.tsx @@ -9,12 +9,12 @@ describe('Checkbox', () => { it('should render a checked checkbox if specified in state', () => { render(); - expect(screen.getByRole('img')).toBeInTheDocument(); + expect(screen.getByTestId(/icon-/)).toBeInTheDocument(); }); it('should render an unchecked checkbox if specified in state', () => { render(); - expect(screen.queryByRole('img')).not.toBeInTheDocument(); + expect(screen.queryByTestId(/icon-/)).not.toBeInTheDocument(); }); it('should render an indeterminate checkbox if specified in state', () => {