Repository navigation
test(api): Add menteeApi fixture and AUTH-09 - #103
Merged
ptrcja merged 1 commit intoNov 5, 2026
Merged
Conversation
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.
Description
Wires the new QA
mentee@wcc.devaccount (role MENTEE) into the framework so mentee andapplication tests can authenticate as a mentee.
tests/.env.example:MENTEE_EMAIL/MENTEE_PASSWORDroles.data.ts:Role.MENTEEand itsUSERSentrycommon.fixtures.ts:menteeApifixture (plus the fixture list in the doc comment)admin-nav.data.ts:NAV_LINKS[Role.MENTEE] = ["Dashboard"]. The portal shows MENTEE thesame nav as a VIEWER (
AdminLayout.tsxhas no MENTEE-specific links). Confirmed by ADMIN-LOGIN-02.Role, callsGET /api/auth/mewith that role's token, andchecks
member.emailmatches the role's account. This provesmenteeApi(and the previouslyuntested
memberApi/mentorAdHocApi) log in, and covers future roles automatically.TEST_PLAN.md: AUTH-09 row.CLAUDE.md: updated the seeded-accounts sentence (it still said member / ad-hoc mentor were"not yet wired to fixtures", and didn't mention the mentee).
Depends on Women-Coding-Community/wcc-backend#827, which adds the account to the seed.
Until it merges, nightly runs against backend
mainwithout the mentee, so thementeecases ofAUTH-09 and ADMIN-LOGIN-02 will fail there. Please merge #827 first, or run Nightly manually.
Related Issue
Closes #55
Type
Test Evidence
Run locally against

npm run env:upwith wcc-backend onfeat/seed-mentee-account:Pull request checklist
npm run lintandnpm run typecheckpass locallytests/api/TEST_PLAN.mdhas a row for every new test ID (API flows only)tests/.env, and no token, password, or API key is logged or hardcoded