Skip to content

fix: add action buttons for GraphQL requests and added test suites for it - #233

Merged
Gibin-bruno merged 6 commits into
usebruno:mainfrom
sharan-bruno:fix/add-action-buttons-for-graphql
Nov 25, 2026
Merged

Gibin-bruno merged 6 commits into
usebruno:mainfrom
sharan-bruno:fix/add-action-buttons-for-graphql

Conversation

@sharan-bruno

@sharan-bruno sharan-bruno commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

VSCODE-146

Description

Added action buttons for graphql response pane (copy, clear, layout shift)

Problem

The response pane action buttons (Copy response, Clear response, Change layout) were missing for GraphQL requests. ResponsePaneActions returned null for every request type except http-request, even though GraphQL uses the same response pane as HTTP.

Fix

ResponsePaneActions now also renders for graphql-request, so GraphQL responses get the same Copy, Clear and Change layout actions as HTTP.

Added a response lifecycle e2e suite (tests/e2e/response2) that sends one request of each type and checks the action buttons

Screenshots

Before
image

After
image

image

@sharan-bruno
sharan-bruno marked this pull request as ready for review November 16, 2026 09:27
@sharan-bruno
sharan-bruno force-pushed the fix/add-action-buttons-for-graphql branch from 823ecea to e62fa30 Compare November 24, 2026 07:44
Comment thread tests/e2e/utils/page/assertions.ts Resolved
Comment thread tests/e2e/utils/page/assertions.ts Resolved
Comment thread tests/e2e/utils/page/assertions.ts Outdated
}
}

export async function sendGrpcRequestAndVerify(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not combine action and assertion together. For example here, sending a gRPC request is an action . But expecting is an assertion that can be kept in the test file itself. We do not need a assertion function here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense, done

@Gibin-bruno
Gibin-bruno force-pushed the fix/add-action-buttons-for-graphql branch from 95750cf to d70728d Compare November 25, 2026 08:09
@Gibin-bruno
Gibin-bruno merged commit ee413be into usebruno:main Nov 25, 2026
1 check passed
@Gibin-bruno Gibin-bruno added the v6.2.0 Items for release v6.2.0 label Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v6.2.0 Items for release v6.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants