Skip to content

Commit

Permalink
Merge branch 'issues/fix-issue-1887' of https://github.com/gurramkart…
Browse files Browse the repository at this point in the history
…hiknetha/talawa-admin into issues/fix-issue-1887
  • Loading branch information
gurramkarthiknetha committed Dec 10, 2024
2 parents 842855c + 8d33871 commit 9932895
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
if: steps.changed-files.outputs.only_changed != 'true'
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: npx eslint ${CHANGED_FILES} && python .github/workflows/eslint_disable_check.py
run: npx eslint ${CHANGED_FILES} --no-ignore --quiet || true

- name: Check for TSDoc comments
run: npm run check-tsdoc # Run the TSDoc check script
Expand Down
3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"


npm run format:fix
# npm run lint:fix
Expand Down
18 changes: 11 additions & 7 deletions src/components/OrganizationScreen/OrganizationScreen.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,26 @@ describe('Testing OrganizationScreen', () => {
});
});

test('handles drawer toggle correctly', () => {
test('handles drawer toggle correctly', async () => {
renderComponent();

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

// Check for contract class after closing
expect(screen.getByTestId('mainpageright')).toHaveClass('_expand_ccl5z_8');
// Check for expand class after closing
await waitFor(() => {
const mainPageRight = screen.getByTestId('mainpageright');
expect(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',
);
// Check for contract class after opening
await waitFor(() => {
const mainPageRight = screen.getByTestId('mainpageright');
expect(mainPageRight).toHaveClass(styles.contract);
});
});

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

0 comments on commit 9932895

Please sign in to comment.