Skip to content

Commit

Permalink
fix(portal): add fire event for setting recent days
Browse files Browse the repository at this point in the history
  • Loading branch information
KsiBart committed Nov 15, 2024
1 parent bb902b5 commit 05182b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ test("ActivityDiagrams test with data", () => {
<ActivityDiagrams envs={envs.data} />
);
expect(container).toBeInTheDocument();
const recentButton = getByTestId('recent-7-days');
fireEvent.change(recentButton, { target: { value: 90 } });
fireEvent.blur(recentButton);
const recentButton = getByTestId('recent-90-days');
fireEvent.click(recentButton);
});

test("ActivityDiagrams test with no data", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ const ActivityDiagrams = ({ envs }: Props) => {
<Flex align="center">
<Form.Item>
<Radio.Group onChange={setRecentDate} value={selectedRecentDate} size="middle" >
<Radio.Button value={7} data-testid="recent-7-days">Recent 7 days</Radio.Button>
<Radio.Button value={90}>Recent 3 months</Radio.Button>
<Radio.Button value={7}>Recent 7 days</Radio.Button>
<Radio.Button value={90} data-testid="recent-90-days">Recent 3 months</Radio.Button>
</Radio.Group>
</Form.Item>
<Form.Item name="requestTime">
Expand Down

0 comments on commit 05182b3

Please sign in to comment.