mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-30 08:17:06 +02:00
fix(editor): Case-sensitive credential search in NodeCredentials component (#17564)
This commit is contained in:
parent
cebb1f6566
commit
3ce9a998ae
|
|
@ -232,6 +232,15 @@ describe('NodeCredentials', () => {
|
|||
|
||||
expect(screen.queryByText('OpenAi account')).not.toBeInTheDocument();
|
||||
expect(screen.queryByText('Test OpenAi account')).toBeInTheDocument();
|
||||
|
||||
await userEvent.keyboard('{Escape}');
|
||||
|
||||
await userEvent.click(credentialsSelect);
|
||||
|
||||
await userEvent.type(credentialSearch, 'Test');
|
||||
|
||||
expect(screen.queryByText('OpenAi account')).not.toBeInTheDocument();
|
||||
expect(screen.queryByText('Test OpenAi account')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should open the new credential modal when clicked', async () => {
|
||||
|
|
|
|||
|
|
@ -500,7 +500,7 @@ function setFilter(newFilter = '') {
|
|||
}
|
||||
|
||||
function matches(needle: string, haystack: string) {
|
||||
return haystack.toLocaleLowerCase().includes(needle);
|
||||
return haystack.toLocaleLowerCase().includes(needle.toLocaleLowerCase());
|
||||
}
|
||||
|
||||
async function onClickCreateCredential(type: ICredentialType | INodeCredentialDescription) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user