Is your enhancement related to a problem? Please describe
Summary
Add an /che-ai-assistant update-che-e2e-tests bot command that automatically creates e2e fix PRs for eclipse-che/che when dashboard changes break UI locators.
Problem
Dashboard PRs sometimes change aria-labels, data-testids, or other selectors that e2e tests in eclipse-che/che rely on. Tracking that down currently requires:
- Reading the dashboard diff manually
- Grepping
tests/e2e/pageobjects/ for the old values
- Patching the locator methods by hand
- Opening a follow-up PR in
eclipse-che/che
This is repetitive and easy to miss.
Example: eclipse-che/che-dashboard#1544 changed:
aria-label="Actions" → aria-label="Actions for ${workspace.name}"
That broke getActionsLocator() and getExpandedActionsLocator() in
tests/e2e/pageobjects/dashboard/Workspaces.ts. The fix had to be tracked and applied manually in eclipse-che/che#23830.
Describe the solution you'd like
Proposed solution
A new bot subcommand triggered by commenting on a dashboard PR:
/che-ai-assistant update-che-e2e-tests
The command starts a DevWorkspace with Claude Code, which:
- Reads the dashboard PR diff to identify changed selectors (aria-labels, data-testids, CSS classes, button text)
- Searches
tests/e2e/pageobjects/ in eclipse-che/che for page objects using the old values
- Patches the affected locator methods
- Opens a draft PR in
eclipse-che/che and posts the URL back as a comment on the dashboard PR
Implementation scope
| File |
Change |
pkg/commands/commands.go |
Add SubCommandUpdateCheE2ETests constant and register in SubCommands slice |
templates/update-che-e2e-tests.tmpl |
Prompt template guiding the DevWorkspace Claude session |
pkg/handlers/update_che_e2e_tests_handler.go |
Parse the created PR URL from Claude output, post it as a comment |
pkg/handlers/update_che_e2e_tests_handler_test.go |
Unit tests for URL parsing |
pkg/processor/processor.go |
Wire the handler into the command dispatch map |
README.md |
Document the new command and CHE_AI_ASSISTANT_E2E_GITHUB_TOKEN env var |
Describe alternatives you've considered
No response
Additional context
No response
Is your enhancement related to a problem? Please describe
Summary
Add an
/che-ai-assistant update-che-e2e-testsbot command that automatically creates e2e fix PRs foreclipse-che/chewhen dashboard changes break UI locators.Problem
Dashboard PRs sometimes change
aria-labels,data-testids, or other selectors that e2e tests ineclipse-che/cherely on. Tracking that down currently requires:tests/e2e/pageobjects/for the old valueseclipse-che/cheThis is repetitive and easy to miss.
Example:
eclipse-che/che-dashboard#1544changed:That broke
getActionsLocator()andgetExpandedActionsLocator()intests/e2e/pageobjects/dashboard/Workspaces.ts. The fix had to be tracked and applied manually ineclipse-che/che#23830.Describe the solution you'd like
Proposed solution
A new bot subcommand triggered by commenting on a dashboard PR:
The command starts a DevWorkspace with Claude Code, which:
tests/e2e/pageobjects/ineclipse-che/chefor page objects using the old valueseclipse-che/cheand posts the URL back as a comment on the dashboard PRImplementation scope
pkg/commands/commands.goSubCommandUpdateCheE2ETestsconstant and register inSubCommandsslicetemplates/update-che-e2e-tests.tmplpkg/handlers/update_che_e2e_tests_handler.gopkg/handlers/update_che_e2e_tests_handler_test.gopkg/processor/processor.goREADME.mdCHE_AI_ASSISTANT_E2E_GITHUB_TOKENenv varDescribe alternatives you've considered
No response
Additional context
No response