-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
chore: refactor testId selectors to avoid imports from app to e2e #24313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
christopherferreira9
wants to merge
6
commits into
main
Choose a base branch
from
cferreira/fix-selectors-location
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+868
−889
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
Contributor
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
399815e to
2060c3f
Compare
7 tasks
cee0d6b to
8221eed
Compare
Contributor
🔍 Smart E2E Test Selection⏭️ Smart E2E selection skipped - skip-smart-e2e-selection label found All E2E tests pre-selected. |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
no-changelog
no-changelog Indicates no external facing user changes, therefore no changelog documentation needed
size-XL
skip-e2e-quality-gate
Skips the E2E Quality gate (flakiness detection)
skip-smart-e2e-selection
Skip Smart E2E selection, i.e. select all E2E tests to run
team-qa
QA team
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
This PR aims to refactor test ID definitions to follow proper architectural guidelines by moving them from
e2e/selectors/into the application code. App code was importing test IDs from thee2e/folder, creating an incorrect dependency where production code depends on test infrastructure. This moves test ID definitions toapp/code as*.testIds.tsfiles, co-located with their respective components. E2E page objects now import test IDs from app code instead of vice versa.Changes
*.testIds.tsfiles inapp/alongside their componentsapp/imports to use local testIds filese2e/page object imports to reference new app locationse2e/are test related files and are not imported inapp/Example
Before
After
Notes
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Moves test selector definitions into app code and redirects imports away from
e2e/.*.testIds.tsfiles across components (e.g., Cells, Toast, Network, Perps, Predict, Card, Wallet, Bridge, Browser, Modals) and points app/tests to theme2e/selectors/*with local*.testIdspaths; leaves e2e files for backward compatibilityas const, locale import path fixes, and a small text key update (delete_my→erase_my)Written by Cursor Bugbot for commit 8221eed. This will update automatically on new commits. Configure here.