mirror of
https://github.com/Kong/insomnia.git
synced 2026-11-03 19:45:33 -05:00
fix: use unique test ids for graphql explorer root types
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
167ff2953f
commit
cfc8f2a1c1
1 file changed
+6
-6
@@ -19,7 +19,7 @@ export class GraphQLExplorerSchema extends PureComponent<Props> {
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<span className="success" data-testid="graphql-explorer-root-type-name">
|
||||
<span className="success" data-testid="graphql-explorer-root-type-name-query">
|
||||
query
|
||||
</span>: <GraphQLExplorerTypeLink onNavigate={onNavigateType} type={type} />
|
||||
</Fragment>
|
||||
@@ -36,7 +36,7 @@ export class GraphQLExplorerSchema extends PureComponent<Props> {
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<span className="success" data-testid="graphql-explorer-root-type-name">
|
||||
<span className="success" data-testid="graphql-explorer-root-type-name-mutation">
|
||||
mutation
|
||||
</span>: <GraphQLExplorerTypeLink onNavigate={onNavigateType} type={type} />
|
||||
</Fragment>
|
||||
@@ -53,7 +53,7 @@ export class GraphQLExplorerSchema extends PureComponent<Props> {
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<span className="success" data-testid="graphql-explorer-root-type-name">
|
||||
<span className="success" data-testid="graphql-explorer-root-type-name-subscription">
|
||||
subscription
|
||||
</span>:{' '}
|
||||
<GraphQLExplorerTypeLink onNavigate={onNavigateType} type={type} />
|
||||
@@ -67,9 +67,9 @@ export class GraphQLExplorerSchema extends PureComponent<Props> {
|
||||
<p>A GraphQL schema provides a root type for each kind of operation.</p>
|
||||
<h2 className="graphql-explorer__subheading">Root Types</h2>
|
||||
<ul className="graphql-explorer__defs">
|
||||
<li data-testid="graphql-explorer-root-type">{this.renderQueryType()}</li>
|
||||
<li data-testid="graphql-explorer-root-type">{this.renderMutationType()}</li>
|
||||
<li data-testid="graphql-explorer-root-type">{this.renderSubscriptionType()}</li>
|
||||
<li data-testid="graphql-explorer-root-type-query">{this.renderQueryType()}</li>
|
||||
<li data-testid="graphql-explorer-root-type-mutation">{this.renderMutationType()}</li>
|
||||
<li data-testid="graphql-explorer-root-type-subscription">{this.renderSubscriptionType()}</li>
|
||||
</ul>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user