Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve test coverage #6244

Merged
merged 2 commits into from
Jul 13, 2024
Merged

Improve test coverage #6244

merged 2 commits into from
Jul 13, 2024

Conversation

charlesBochet
Copy link
Member

No description provided.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

  • Reduced performance profiling runs in /packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/AddressFieldDisplay.perf.stories.tsx
  • Added dataTestId prop to Button component in /packages/twenty-front/src/modules/ui/input/button/components/Button.tsx
  • Added data-testid attribute to confirm button in /packages/twenty-front/src/modules/ui/layout/modal/components/ConfirmationModal.tsx
  • Replaced useListenClickOutside with useListenClickOutsideV2 in /packages/twenty-front/src/modules/ui/layout/modal/components/Modal.tsx
  • Added new Storybook story for Invite component in /packages/twenty-front/src/pages/auth/__stories__/Invite.stories.tsx

7 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings

msw: {
handlers: [
graphql.query(
getOperationName(GET_WORKSPACE_FROM_INVITE_HASH) ?? '',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic: Consider adding error handling for the case where getOperationName(GET_WORKSPACE_FROM_INVITE_HASH) returns null.

});
},
),
graphql.query(getOperationName(GET_CURRENT_USER) ?? '', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic: Consider adding error handling for the case where getOperationName(GET_CURRENT_USER) returns null.

@charlesBochet charlesBochet merged commit dc6e27e into main Jul 13, 2024
2 of 3 checks passed
@charlesBochet charlesBochet deleted the fix-tests-v4 branch July 13, 2024 15:57
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

(updates since last review)

  • Increased sleep duration from 200ms to 1000ms in /packages/twenty-front/src/pages/settings/developers/__stories__/api-keys/SettingsDevelopersApiKeysDetail.stories.tsx for 'RegenerateApiKey' and 'DeleteApiKey' stories to ensure modal is fully rendered before interaction.

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant