One of the problems I’ve faced developing and maintaining embedded Shopify apps is that I couldn’t easily write automated browser tests or integrate Playwright or Chrome DevTools MCP servers to interact with my Shopify app programmatically. This is because of the sensible CAPTCHA and 2FA protections on the Shopify Admin portal.
So, I just published Mock Bridge for Shopify embedded apps to help with this.
This package launches a local version of the Shopify Admin with a mocked AppBridge set of APIs so you can load your Shopify embedded app without logging into the Shopify Admin.
This command will spin up a Mock Bridge server loading your Shopify app that is running on port 3000.
Then you can open your Shopify app and use an MCP to interact with it, or use a browser automation testing suite like Cypress to test various scenarios.
Hey, @Dylan . I did everything that was asked and all the steps in the documentation, but whenever I open up localhost:3080, the browser always returns error not found. Could definitely use some help.
The dev server port is changing everytime i restart the server. But I always make sure to specify it in the command
npx @getverdict/mock-bridge http://localhost:[port]
The mock bridge UI doesnt render and just displays error not found.
But whenever I input localhost:3080 in the browser, it automatically injects the url.