We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 164fb25 commit 3399026Copy full SHA for 3399026
src/components/ConfigEditor.test.tsx
@@ -1,6 +1,6 @@
1
import React from 'react';
2
3
-import { render, screen } from '@testing-library/react';
+import { render, screen, fireEvent } from '@testing-library/react';
4
import { ConfigEditor } from './ConfigEditor';
5
6
describe('ConfigEditor', () => {
@@ -18,7 +18,7 @@ describe('ConfigEditor', () => {
18
expect(screen.getByRole('radio', { name: 'API Key' })).toBeChecked();
19
20
// Make sure that the user can still change the auth type
21
- screen.getByLabelText('Google JWT File').click();
+ fireEvent.click(screen.getByLabelText('Google JWT File'));
22
23
// Check onOptionsChange is called with the correct value
24
expect(onOptionsChange).toHaveBeenCalledWith({
0 commit comments