You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "michael-s-molina (via GitHub)" <gi...@apache.org> on 2023/08/10 15:59:15 UTC
[GitHub] [superset] michael-s-molina commented on a diff in pull request #24906: fix: Duplicated options in Select when using numerical values
michael-s-molina commented on code in PR #24906:
URL: https://github.com/apache/superset/pull/24906#discussion_r1290356166
##########
superset-frontend/src/components/Select/AsyncSelect.test.tsx:
##########
@@ -323,12 +333,14 @@ test('same case should be ranked to the top', async () => {
}));
render(<AsyncSelect {...defaultProps} options={loadOptions} />);
await type('Ac');
- const options = await findAllSelectOptions();
- expect(options.length).toBe(4);
- expect(options[0]?.textContent).toEqual('acbc');
- expect(options[1]?.textContent).toEqual('CAc');
- expect(options[2]?.textContent).toEqual('abac');
- expect(options[3]?.textContent).toEqual('Cac');
+ await waitFor(() => {
Review Comment:
These changes are the result of debouncing `handleOnSearch`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org