-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Add UpdatedAt time field for Issues query (#321)
- Loading branch information
1 parent
91f4c5a
commit e8bbb6a
Showing
5 changed files
with
28 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import QueryEditorIssues from './QueryEditorIssues'; | ||
import { render, screen } from '@testing-library/react'; | ||
import userEvent from '@testing-library/user-event'; | ||
import { components } from 'components/selectors'; | ||
|
||
describe('QueryEditorIssues', () => { | ||
it('should have CreatedAt, ClosedAt and UpdatedAt time field option', async () => { | ||
const props = { | ||
onChange: jest.fn(), | ||
}; | ||
render(<QueryEditorIssues {...props} />); | ||
expect(screen.getByText('Time Field')).toBeInTheDocument(); | ||
userEvent.click(screen.getByTestId(components.QueryEditor.Issues.timeFieldInput)); | ||
expect(await screen.findByText('CreatedAt')).toBeInTheDocument(); | ||
expect(await screen.findByText('ClosedAt')).toBeInTheDocument(); | ||
expect(await screen.findByText('UpdatedAt')).toBeInTheDocument(); | ||
}); | ||
}); |
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