-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add hover to check box and show Selected Count * Make spacing smaller around date and delete icon * When editing tasks, stop autofilling assignee * Add assignee, tags, responsive layout * ContactTaskRow assignee, tags, responsive layout * Add tooltip to comments * Allow mobile users to tap to see tooltip
- Loading branch information
1 parent
ad47379
commit 0162a33
Showing
15 changed files
with
427 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { render } from '@testing-library/react'; | ||
import { DateTime } from 'luxon'; | ||
import TestRouter from '__tests__/util/TestRouter'; | ||
import { GqlMockedProvider, gqlMock } from '__tests__/util/graphqlMocking'; | ||
import { | ||
TaskModalCommentFragment, | ||
TaskModalCommentFragmentDoc, | ||
} from '../Modal/Comments/TaskListComments.generated'; | ||
import { CommentTooltipText } from './CommentTooltipText'; | ||
|
||
const accountListId = 'account-list-1'; | ||
const commentId = 'comment-1'; | ||
const router = { | ||
query: { accountListId }, | ||
isReady: true, | ||
}; | ||
|
||
const TestComponent: React.FC = () => { | ||
const comment = gqlMock<TaskModalCommentFragment>( | ||
TaskModalCommentFragmentDoc, | ||
{ | ||
mocks: { | ||
id: commentId, | ||
body: 'Comment', | ||
updatedAt: DateTime.local(2020, 1, 2).toISODate() ?? '', | ||
}, | ||
}, | ||
); | ||
|
||
return ( | ||
<TestRouter router={router}> | ||
<GqlMockedProvider> | ||
<CommentTooltipText comments={[comment]} /> | ||
</GqlMockedProvider> | ||
</TestRouter> | ||
); | ||
}; | ||
|
||
describe('CommentTooltipText', () => { | ||
it('should render', async () => { | ||
const { findByText, getByText } = render(<TestComponent />); | ||
|
||
expect(await findByText('Comment')).toBeInTheDocument(); | ||
expect(getByText('Jan 2, 2020')).toBeInTheDocument(); | ||
}); | ||
}); |
Oops, something went wrong.