Skip to content

test(e2e): refresh specs to match current UI + make ai-trace model configurable - #335

Open
Yuyz0112 wants to merge 1 commit into
mainfrom
e2e-test-alignment
Open

Yuyz0112 wants to merge 1 commit into
mainfrom
e2e-test-alignment

Conversation

@Yuyz0112

Copy link
Copy Markdown
Contributor

What

Refresh the Playwright E2E specs so they match the current UI, plus two helper changes:

  • ai-trace helper: add an E2E_AITRACE_MODEL env override for the OpenAI model field sent to the gateway (defaults to "any"). Served-model names differ per environment, so this makes trace tests portable across endpoints.
  • yaml-import: quote cpu / memory / gpu resource values so the parsed YAML keeps them as strings.
  • ui-layout: import Page from @playwright/test (the base fixture does not re-export it).
  • Spec refresh across api-keys, clusters, clusters-create, clusters-permissions, endpoints, model-catalogs, roles, user-profiles, workspaces, custom-appearance and yaml-export to align with current UI (usage panel, available-versions, cluster edit fields, permission counts, delete timeouts).

Notes

  • Large diff: the spec refresh is a substantial test-alignment pass against a UI that changed shape. Reviewing with whitespace hidden (?w=1) shows ~1.1k lines of real change; the remainder is line-wrapping style.
  • tsc is clean on the changed files; Biome reports no format fixes on them.

Test

Individual suites were exercised against a live control plane during development; the trace/model-usage/access data-plane specs were validated against a running endpoint.

🤖 Generated with Claude Code

…urable

- ai-trace: add E2E_AITRACE_MODEL env override for the OpenAI `model` field
  sent to the gateway (defaults to "any"); env-specific served-model names.
- yaml-import: quote cpu/memory/gpu resource values so the parsed YAML keeps
  them as strings.
- ui-layout: import Page from @playwright/test (base fixture does not export it).
- Refresh api-keys, clusters, clusters-create, clusters-permissions, endpoints,
  model-catalogs, roles, user-profiles, workspaces, custom-appearance and
  yaml-export specs/helpers to match current UI (usage panel, available
  versions, cluster edit fields, permission counts, delete timeouts).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

2 participants