litellm/ui/litellm-dashboard/e2e_tests/fixtures
ryan-crabbe-berri 892838963c
test(e2e): cover Internal User create-key flow when in no teams (#29083)
* test(e2e): cover Internal User create-key flow when in no teams

The seeded e2e-internal-user is in two teams, so the "no team" branch
of the Create Key modal — where the team dropdown must render empty —
was unreachable. Seeds a noteam@test.local user and adds a spec that
logs in fresh, opens the modal, and asserts the dropdown has zero
options.

* test(e2e): harden no-team dropdown assertion + add with-teams counterpart

Replace the one-shot count() check with a settled-empty assertion: wait for
the dropdown's loaded "No teams found" state before asserting zero options,
so the test can't pass on a transient empty frame while the team-options
request is still in flight.

Add internalUserWithTeams.spec.ts as the differential partner; it logs in as
the seeded e2e-internal-user (two team memberships) and asserts the dropdown
lists exactly those teams. Without it, the no-team spec's zero-options
assertion would still pass against a regression that empties the dropdown for
every user.
2026-05-30 00:26:28 -07:00
..
mock_llm_server [Feature] E2E UI tests: proxy-admin team and key management with CI integration 2026-04-08 11:51:15 -07:00
config.yml test(e2e): add edit team model TPM/RPM limits test 2026-04-13 16:27:39 -07:00
menuMappings.ts e2e refactoring 2026-01-08 21:50:19 -08:00
pages.ts e2e refactoring 2026-01-08 21:50:19 -08:00
roles.ts Adding e2e tests for sidebar 2025-12-30 12:19:25 -08:00
seed.sql test(e2e): cover Internal User create-key flow when in no teams (#29083) 2026-05-30 00:26:28 -07:00
users.ts [Fix] Add missing test fixtures and address review feedback 2026-04-08 12:40:41 -07:00