Submit order leg
The first leg of an end-to-end scenario is often initiated by a user interaction. In this example, the user submits an order from a website that may be implemented in Angular or React. The scenario could include a Selenium test, implemented using the likes of WebdriverIO and executed across multiple browsers via services such as Sauce Labs. Alternatively, the test could be implemented at the integration level, for example, as an unmocked Redux test. Regardless, the frontend and BFF component should be owned by the same team, and thus coordinating the first leg should not be an obstacle.
For this example, the first leg is implemented as a Mocha test using the Supertest client library. The developer has both the frontend project ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access