From af68fbb04f6578d061fbf2e44fec5519f20362b7 Mon Sep 17 00:00:00 2001 From: vivekbisen04 Date: Wed, 1 Jan 2025 23:19:28 +0530 Subject: [PATCH] coderabbite changes --- src/screens/OrgSettings/OrgSettings.spec.tsx | 4 ++-- src/screens/OrgSettings/OrgSettings.tsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/screens/OrgSettings/OrgSettings.spec.tsx b/src/screens/OrgSettings/OrgSettings.spec.tsx index c5c6b793fc..a98fface20 100644 --- a/src/screens/OrgSettings/OrgSettings.spec.tsx +++ b/src/screens/OrgSettings/OrgSettings.spec.tsx @@ -143,8 +143,8 @@ describe('Organisation Settings Page', () => { userEvent.click(dropdownToggle); // Find all dropdown items - const dropdownItems = screen.getAllByRole('button'); - expect(dropdownItems).toHaveLength(12); + const dropdownItems = screen.getAllByRole('menuitem'); + expect(dropdownItems).toHaveLength(3); for (const item of dropdownItems) { userEvent.click(item); diff --git a/src/screens/OrgSettings/OrgSettings.tsx b/src/screens/OrgSettings/OrgSettings.tsx index 916bd04dff..641bc27c7d 100644 --- a/src/screens/OrgSettings/OrgSettings.tsx +++ b/src/screens/OrgSettings/OrgSettings.tsx @@ -81,6 +81,7 @@ function OrgSettings(): JSX.Element { {settingtabs.map((setting, index) => ( setTab(setting)} className={tab === setting ? 'text-secondary' : ''} >