-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Improve test coverage #6244
Conversation
There was a problem hiding this 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 toButton
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
withuseListenClickOutsideV2
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) ?? '', |
There was a problem hiding this comment.
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) ?? '', () => { |
There was a problem hiding this comment.
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.
There was a problem hiding this 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
No description provided.