Open olizilla opened 3 years ago
w3
has an e2e test already, but it's not run as part of ci yet https://github.com/web3-storage/web3.storage/blob/main/packages/w3/test/e2e.spec.js
We now have a cron job that runs regulary and uploads to the site via w3 -> js client -> http api, and we run a similar test against staging whenever a change to one of the components is merged.
The website smoke test requires running a browser in CI. @hugomrdias recommends Playwright Test. This looks like it'll work as it supports both automated file upload via the browser, and has guidance for dealing with authentication. For this I think we need:
support@web3.storage
Implemented the most importante monitoring, http and client.
Add end-to-end tests for
Run them every n minutes, and raise an alert on failure. For bonus points, time how long each run takes and push it to prometheus so we an chart upload perf over time.