Skip to content

Commit 9172636

Browse files
dondonzacao
authored andcommitted
Add GraphiQL.spec test
1 parent 19f94ad commit 9172636

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/graphiql/src/components/__tests__/GraphiQL.spec.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,18 @@ describe('GraphiQL', () => {
239239
});
240240
});
241241

242+
it('correctly displays extensions editor when using defaultEditorToolsVisibility prop', async () => {
243+
const { container } = render(
244+
<GraphiQL
245+
fetcher={noOpFetcher}
246+
defaultEditorToolsVisibility="extensions"
247+
/>,
248+
);
249+
await waitFor(() => {
250+
expect(container.querySelector('[aria-label="Extensions"]')).toBeVisible();
251+
});
252+
});
253+
242254
it('correctly displays headers editor when using defaultEditorToolsVisibility prop', async () => {
243255
const { container } = render(
244256
<GraphiQL

0 commit comments

Comments
 (0)