Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
AVtheking committed Nov 24, 2024
1 parent 77356a6 commit 437e976
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/components/LeftDrawer/LeftDrawer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe('Testing Left Drawer component for SUPERADMIN', () => {
});

expect(
orgsBtn.className.includes('text-white btn btn-success'),
orgsBtn.className.includes('text-black btn btn-success'),
).toBeTruthy();
expect(rolesBtn.className.includes('text-secondary btn')).toBeTruthy();
expect(
Expand Down Expand Up @@ -179,9 +179,7 @@ describe('Testing Left Drawer component for SUPERADMIN', () => {
orgsBtn.click();
});

expect(
orgsBtn.className.includes('text-white btn btn-success'),
).toBeTruthy();
expect(orgsBtn.className.includes('text-black')).toBeTruthy();
});
});

Expand Down Expand Up @@ -211,7 +209,7 @@ describe('Testing Left Drawer component for ADMIN', () => {
});

expect(
orgsBtn.className.includes('text-white btn btn-success'),
orgsBtn.className.includes('text-black btn btn-success'),
).toBeTruthy();

// These screens aren't meant for admins, so they should not be present
Expand Down
5 changes: 4 additions & 1 deletion src/screens/Requests/Requests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ const Requests = (): JSX.Element => {
return (
<>
{/* Buttons Container */}
<div className={`${styles.btnsContainer} gap-4 flex-wrap`}>
<div
className={`${styles.btnsContainer} gap-4 flex-wrap`}
data-testid="testComp"
>
<div className={`${styles.input} mb-1`}>
<div
style={{
Expand Down

0 comments on commit 437e976

Please sign in to comment.