We need a comprehensive integration test coverage that ensures we don't introduce regressions together with new features.
We added k6 integration tests scripted using JavaScript that allows implementing different workflows on top of a containerized setup for Brutalinks and FedBOX.
Currently the tests cover just loading the main pages accessible anonymously, but without checking the content.
We need to add:
- Content checks for each page.
- Implement authorization flow.
- Implement authorized pages tests:
- Submitting a new item: Link / Text submission.
- Voting: Up/Down
- Replying
- Flagging: Item / Submission / User.
- Moderation followup for admin: Delete an item from a moderation request.
Probably we need to add a dual instance setup to test federation between instances, but we're not there yet.
I'll mark this as closed. I created a separate ticket ( #265 ) for what's still left to do: the authenticated user flow.