Figure out mocks with selenium
- npm install
- npm start
- npm run mocks
- npm run e2e
- npm run int
Starts express js app.
Starts mocks server.
Starts a web browser where a call is made to another service and the text is replaced with hello world, test run checks for this.
Starts a web browser and traffic is routed though the mocks server as a proxy within firefox, the separate service call is mocked and the test checks for the mocked text.
Firefox option of network.proxy.allow_hijacking_localhost has to be set to true to allow routing through local proxy.