Skip to content

Commit

Permalink
fix:failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shivasankaran18 committed Dec 18, 2024
1 parent 6f0ec93 commit 2ce7ba1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/OrganizationScreen/OrganizationScreen.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,13 @@ describe('Testing OrganizationScreen', () => {

const closeButton = screen.getByTestId('closeMenu');
fireEvent.click(closeButton);

// Check for contract class after closing
expect(screen.getByTestId('mainpageright')).toHaveClass('_expand_ccl5z_8');
expect(screen.getByTestId('mainpageright')).toHaveClass(styles.expand);

const openButton = screen.getByTestId('openMenu');
fireEvent.click(openButton);

// Check for expand class after opening
expect(screen.getByTestId('mainpageright')).toHaveClass(
'_contract_ccl5z_61',
);
expect(screen.getByTestId('mainpageright')).toHaveClass(styles.contract);
});

test('handles window resize', () => {
Expand Down

0 comments on commit 2ce7ba1

Please sign in to comment.