From de2ada8438935a7631672a3fb8765c9721841386 Mon Sep 17 00:00:00 2001 From: Nick Diehl <47604184+ncdiehl11@users.noreply.github.com> Date: Thu, 9 May 2024 15:27:04 -0400 Subject: [PATCH] fix(app): fix background color on magnetic module slideout data (#15140) Closes RQA-2515 --- app/src/organisms/ModuleCard/MagneticModuleSlideout.tsx | 3 ++- .../ModuleCard/__tests__/MagneticModuleSlideout.test.tsx | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/organisms/ModuleCard/MagneticModuleSlideout.tsx b/app/src/organisms/ModuleCard/MagneticModuleSlideout.tsx index 347b7871a7c..347710982f5 100644 --- a/app/src/organisms/ModuleCard/MagneticModuleSlideout.tsx +++ b/app/src/organisms/ModuleCard/MagneticModuleSlideout.tsx @@ -164,13 +164,14 @@ export const MagneticModuleSlideout = ( {t('height_ranges', { gen: info.version })} { }) expect(button).not.toBeEnabled() }) + + it('renders the correct background color in magnetic module data', () => { + render(props) + const magneticModuleInfo = screen.getByTestId( + 'MagneticModuleSlideout_body_data_def456' + ) + expect(magneticModuleInfo).toHaveStyle(`background-color: ${COLORS.grey20}`) + }) })