From f5e7c36c337e4999e2e59811cc5725ad4c2d1613 Mon Sep 17 00:00:00 2001 From: Jamey Huffnagle Date: Wed, 21 Feb 2024 17:53:25 -0500 Subject: [PATCH] test fix --- app/src/atoms/buttons/__tests__/ToggleButton.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/atoms/buttons/__tests__/ToggleButton.test.tsx b/app/src/atoms/buttons/__tests__/ToggleButton.test.tsx index 2139edfa873..5cfc9ba383a 100644 --- a/app/src/atoms/buttons/__tests__/ToggleButton.test.tsx +++ b/app/src/atoms/buttons/__tests__/ToggleButton.test.tsx @@ -57,7 +57,7 @@ describe('ToggleButton', () => { props.disabled = true const { getByLabelText } = render(props) const button = getByLabelText('toggle button') - expect(button).toHaveStyleRule('color', `${String(COLORS.grey40)}`, { + expect(button).toHaveStyleRule('color', `${String(COLORS.grey30)}`, { modifier: ':disabled', }) }) @@ -73,7 +73,7 @@ describe('ToggleButton', () => { props.toggledOn = false const { getByLabelText } = render(props) const button = getByLabelText('toggle button') - expect(button).toHaveStyle(`color: ${String(COLORS.grey60)}`) + expect(button).toHaveStyle(`color: ${String(COLORS.grey50)}`) expect(button).toHaveStyle(`height: ${String(SIZE_2)}`) expect(button).toHaveStyle(`width: ${String(SIZE_2)}`) expect(button).toHaveAttribute('aria-checked', 'false') @@ -106,7 +106,7 @@ describe('ToggleButton', () => { props.disabled = true const { getByLabelText } = render(props) const button = getByLabelText('toggle button') - expect(button).toHaveStyleRule('color', `${String(COLORS.grey40)}`, { + expect(button).toHaveStyleRule('color', `${String(COLORS.grey30)}`, { modifier: ':disabled', }) })