Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

enh(ui): search resources when pressing enter key #8497

Merged
merged 3 commits into from Mar 31, 2020
Merged

Conversation

kduret
Copy link
Contributor

@kduret kduret commented Mar 30, 2020

Description

Search resources when search field is focused and enter is pressed

Fixes MON-5095

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software
  • Updating documentation (missing information, typo...)

Target serie

  • 2.8.x
  • 18.10.x
  • 19.04.x
  • 19.10.x
  • 20.04.x (master)

How this pull request can be tested ?

Type search in search field and press enter
==> check search is applied, without need of clicking on search button

Thebarda
Thebarda previously approved these changes Mar 30, 2020
@@ -5,6 +5,7 @@ import formatISO from 'date-fns/formatISO';
import { render, waitFor, within, fireEvent } from '@testing-library/react';
import UserEvent from '@testing-library/user-event';
import last from 'lodash/last';
import { Simulate } from 'react-dom/test-utils';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user-event currently does not manage special keys.
Waiting this PR : testing-library/user-event#235

@kduret kduret merged commit 3e83d8b into master Mar 31, 2020
@kduret kduret deleted the MON-5095-search-enter branch March 31, 2020 07:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants