Repository navigation
test(frontend): check in the browser who may open what - #457
Merged
Merged
Conversation
The browser tests covered the dashboard and the signed-out redirect. A role seeing a page it should not, or not seeing one it should, reached main unnoticed. Add tests for what each role is offered and refused: a private hackathon, a hackathon's organizer pages and the platform's admin pages. hackagon-admin now logs in too. Hackathon ids change with every seed, so a worker fixture looks them up by name on the admin's list of every hackathon, the one page that shows the private ones to someone who takes part in none. Read-only, like the smoke tests, and only on what a seed never loses: who holds which role, and which hackathon is private. Nothing here depends on the seed's dates or on a state a manual test can use up, so the tests hold on a local stack seeded long ago.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Browser tests now check who may open what
Before, the browser tests only checked the dashboard and that signed-out visitors are sent to log in. If a participant was shown an organizer page, or someone could open a private hackathon, nothing caught it before release. Now every pull request checks in a real browser what each kind of user is offered and refused.
Left out: anything that saves data, the waiting list, and the owner-nav fix from #453. Each needs a test that builds its own hackathon, which comes next.