Skip to content

Commit 3399026

Browse files
committed
Fix test warning
1 parent 164fb25 commit 3399026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ConfigEditor.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
import { render, screen } from '@testing-library/react';
3+
import { render, screen, fireEvent } from '@testing-library/react';
44
import { ConfigEditor } from './ConfigEditor';
55

66
describe('ConfigEditor', () => {
@@ -18,7 +18,7 @@ describe('ConfigEditor', () => {
1818
expect(screen.getByRole('radio', { name: 'API Key' })).toBeChecked();
1919

2020
// Make sure that the user can still change the auth type
21-
screen.getByLabelText('Google JWT File').click();
21+
fireEvent.click(screen.getByLabelText('Google JWT File'));
2222

2323
// Check onOptionsChange is called with the correct value
2424
expect(onOptionsChange).toHaveBeenCalledWith({

0 commit comments

Comments
 (0)