Skip to content

Commit

Permalink
coderabbite changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekbisen04 committed Jan 2, 2025
1 parent fa699be commit af68fbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/screens/OrgSettings/OrgSettings.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/screens/OrgSettings/OrgSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function OrgSettings(): JSX.Element {
{settingtabs.map((setting, index) => (
<Dropdown.Item
key={index}
role="menuitem"
onClick={() => setTab(setting)}
className={tab === setting ? 'text-secondary' : ''}
>
Expand Down

0 comments on commit af68fbb

Please sign in to comment.