- Load the bundle in a headless browser
- Mock network connections (204 on all requests)
- Use a dummy project with known secret key
- Verify the public API (window.chiffre.sendNumber etc)
- Test flags
Headless browser:
- Playwright vs Cypress vs Puppeteer
Need to be able to spy on the network activity and mock responses to push.chiffre.io
Testing key pair:
- Secret key:
sk.xzZrvzLL2brhtF1RzYi27fjb7QIScCA2cGUUHrZEJRo
- Public key:
pk.cDNrp_kHgDfMGjY_SWzgUCzvBjZBaFnGIyRNWCN_XQI
Headless browser:
Need to be able to spy on the network activity and mock responses to push.chiffre.io
Testing key pair:
sk.xzZrvzLL2brhtF1RzYi27fjb7QIScCA2cGUUHrZEJRopk.cDNrp_kHgDfMGjY_SWzgUCzvBjZBaFnGIyRNWCN_XQI