Skip to content

Commit

Permalink
final change
Browse files Browse the repository at this point in the history
  • Loading branch information
gurramkarthiknetha committed Dec 18, 2024
1 parent 518efbb commit cbb63c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/components/OrganizationScreen/OrganizationScreen.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,15 @@ 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');
// Check for a class indicating the drawer is contracted (use stringContaining in the class)
const mainPageElement = screen.getByTestId('mainpageright');
expect(mainPageElement.className).toMatch('_expand'); // Simply check if _expand exists

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

// Check for expand class after opening
expect(screen.getByTestId('mainpageright')).toHaveClass(
'_contract_ccl5z_61',
);
// Check for a class indicating the drawer is expanded
expect(mainPageElement.className).toMatch('_contract');
});

test('handles window resize', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jestPreviewConfigure({
autoPreview: true,
});

jest.setTimeout(15000);
jest.setTimeout(30000);

0 comments on commit cbb63c2

Please sign in to comment.