mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5553] [CLOSED] test(client): add data-testid attributes across client UI for stable E2E selectors #6815
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6815
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5553
Author: @Kranael
Created: 8/26/2026
Status: ❌ Closed
Base:
staging← Head:test-architecture-refactor-stage📝 Commits (5)
8d7d32eAdd data-testid attributes for improved testability across components8972bb2Add data-testid attributes for improved testing in Tracker Panel componentsdc7db49Add data-testid attributes for improved testing and accessibility07a3605Apply Prettier formatting to data-testid changes98e9a03test(client): make data-testid selectors unique per instance (CodeRabbit review)📊 Changes
273 files changed (+4410 additions, -151 deletions)
View changed files
📝
packages/client/src/App.tsx(+2 -0)📝
packages/client/src/components/agents/AgentCatalogView.tsx(+19 -1)📝
packages/client/src/components/agents/AgentEditor.tsx(+99 -1)📝
packages/client/src/components/agents/AgentModeFilter.tsx(+1 -0)📝
packages/client/src/components/agents/ContextInjectionPanel.tsx(+5 -0)📝
packages/client/src/components/agents/ContinuityIssueChecklist.tsx(+3 -0)📝
packages/client/src/components/agents/CustomAgentRepositoriesModal.tsx(+5 -0)📝
packages/client/src/components/agents/FeatureAgentDetailHost.tsx(+2 -0)📝
packages/client/src/components/agents/RegexScriptEditor.tsx(+34 -1)📝
packages/client/src/components/agents/SecretPlotPanel.tsx(+8 -0)📝
packages/client/src/components/agents/StoryboardAgentSettingsPanel.tsx(+49 -0)📝
packages/client/src/components/agents/ToolEditor.tsx(+25 -1)📝
packages/client/src/components/bot-browser/BotBrowserView.tsx(+63 -3)📝
packages/client/src/components/capabilities/CapabilityElement.tsx(+8 -0)📝
packages/client/src/components/characters/CharacterEditor.tsx(+147 -3)📝
packages/client/src/components/characters/CharacterLibraryView.tsx(+10 -0)📝
packages/client/src/components/characters/CharacterRegexSection.tsx(+13 -1)📝
packages/client/src/components/characters/ConvoProfileFields.tsx(+10 -0)📝
packages/client/src/components/chat/ActiveLorebookEntriesButton.tsx(+1 -0)📝
packages/client/src/components/chat/AgentAddSetupFields.tsx(+56 -1)...and 80 more files
📄 Description
Why
Automated UI testing needs stable, dedicated identifiers on interactive elements. Without them, Playwright tests must fall back to brittle CSS/XPath/positional/text selectors. This change instruments the client UI with
data-testidattributes so future E2E coverage can target elements deterministically.What changed
data-testidattributes to interactive elements (buttons, inputs, textareas, selects, clickable elements) acrosspackages/client/src/— 273 files, ~4,200 insertions.testId/testIdPrefixpassthrough props to a few shared local helper components so the testid lands on the actually rendered DOM element (no behavior change, props are optional and unused props default to nothing).Precisely:
data-testidadded to production HTML → functionally inert (data-*attributes carry no behavior, no styling, no logic).pnpm check→ validates TypeScript compilation and linting of the changes.Validation
pnpm check(clean stale artifacts, impeccable check, localization check, Prettier format check, ESLint, TypeScript + full production build) — run locally, passed; re-run by reviewer/CINotes
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.