Skip to content

test(frontend): check in the browser who may open what - #457

Merged
sabinem merged 1 commit into
mainfrom
test/e2e-who-sees-what
Dec 1, 2026
Merged

sabinem merged 1 commit into
mainfrom
test/e2e-who-sees-what

Conversation

@sabinem

@sabinem sabinem commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

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.

  • Signed out: a private hackathon has no public page; a public one counts its participants without naming them
  • Participants: refused private hackathons, organizer pages and the user list, even when they type the address
  • Organizers: get the organizer pages of their own hackathon, not the platform's admin pages
  • Admins: see every hackathon, private ones included, and can open any of them
  • The tests only use what never changes in the demo data (roles, private or public), so they keep passing on an old local setup

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.

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.
@sabinem
sabinem merged commit 5907a76 into main Dec 1, 2026
4 checks passed
@sabinem
sabinem deleted the test/e2e-who-sees-what branch December 1, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant