From c2b7566109b014b5c2fb255f5ac89f31103b5194 Mon Sep 17 00:00:00 2001 From: tate Date: Wed, 14 Feb 2024 12:25:24 +1100 Subject: [PATCH] update test --- .../src/components/atoms/ScrollBox/ScrollBox.test.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/components/src/components/atoms/ScrollBox/ScrollBox.test.tsx b/components/src/components/atoms/ScrollBox/ScrollBox.test.tsx index 4bdc719e..a5eccb2f 100644 --- a/components/src/components/atoms/ScrollBox/ScrollBox.test.tsx +++ b/components/src/components/atoms/ScrollBox/ScrollBox.test.tsx @@ -44,12 +44,9 @@ const mockIntersectionObserver = makeMockIntersectionObserver( ) const expectLine = (e: 'top' | 'bottom', visible: boolean) => - expect(screen.getByTestId('scroll-box')).toHaveStyleRule( - 'background-color', - `hsla(0 0% 91% / ${visible ? '1' : '0'})`, - { - modifier: e === 'top' ? '::before' : '::after', - }, + expect(screen.getByTestId('scroll-box')).toHaveAttribute( + `data-${e}-line`, + visible ? 'true' : 'false', ) describe('', () => {