Skip to content

Commit

Permalink
fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dzonidoo committed Sep 9, 2024
1 parent e42dde0 commit afca42c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion assets/ui/components/ToolTip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class ToolTip extends React.PureComponent<any, any> {
const options: Partial<Tooltip.Options> = {
trigger: 'hover',
placement: this.props.placement || 'top',
title: this.props.title,
title: this.props.title ?? '',
};

if (this.props.title) {
Expand Down
21 changes: 12 additions & 9 deletions assets/users/components/EditUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -461,15 +461,18 @@ const EditUserComponent: React.ComponentType<IProps> = (props: IProps) => {
</div>

<div className='list-item__preview-footer'>
{!user.is_validated || isCompanyAdmin ? null : (
<Button
value={gettext('Reset Password')}
variant='secondary'
id='resetPassword'
onClick={onResetPassword}
data-test-id='reset-password-btn'
/>
)}
{!user.is_validated || isCompanyAdmin || userAuthProviderFeatures.verify_email === false
? null
: (
<Button
value={gettext('Reset Password')}
variant='secondary'
id='resetPassword'
onClick={onResetPassword}
data-test-id='reset-password-btn'
/>
)
}
{user._id && (currentUserIsAdmin || isCompanyAdmin) && user._id !== currentUser._id && (
<Button
value={gettext('Delete')}
Expand Down

0 comments on commit afca42c

Please sign in to comment.