Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes
Fixture file with realistic mock Stakwork API responses:
cypress/fixtures/stakwork-responses.js
Custom Cypress command to intercept & mock:
POST /hivechat/response
customer webhooks
(cypress/support/commands.js)
New Cypress test:
cypress/e2e/hivechat_flow.cy.js
Covers the full multi-step hivechat flow:
Renders text, code, and screen artifacts
Handles action dialogs (clicking "Yes")
Verifies all UI elements remain visible and correct
Configurable environment toggle:
useMocks: true in cypress.config.js
Easily switch between mock and real endpoints
Issue ticket number and link
https://community.sphinx.chat/bounty/4161
Type of change
Helps resolve and close out:
#1395
Checklist before requesting a review
Mocks all Stakwork endpoints needed for hivechat flow
Tests text, code, and screen artifact rendering
Verifies interaction with action dialogs
Ensures UI remains properly visible and accessible
Config allows toggling between mock and real endpoints
Screenshots included for verification
Test runs successfully in local & test environments