chore: moves Tranding and Predict to tests#25219
Conversation
|
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. |
1a4f280
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThis PR is a test infrastructure refactoring that relocates E2E test files from
The affected test tags are:
Running these tags will verify that:
|
|
| const env = { | ||
| TEST_SUITE_TAG: process.env.TEST_SUITE_TAG, | ||
| BASE_DIR: process.env.BASE_DIR || './e2e/specs', | ||
| BASE_DIR: process.env.BASE_DIR || './', |
There was a problem hiding this comment.
This makes lookup on tests much slower and will be reverted as soon as all e2e is migrated to tests
There was a problem hiding this comment.
WIll approve, but can we leave a comment here so it's not forgotten?



Description
Following #24313 we're looking to centralize all tools and test resources in one place.
This PR moves page objects, selectors and spec files for
TrendingandPredictto/tests.Previous related PRs:
e2e-split-tags-shards.mjswas changed to start finding for a given tag starting from the root. This affects drastically the performance of searching for specs. Search times go from ~0.7s to ~2.5s. This is needed for a phased out transition from/e2e/specsto/tests/specsChangelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Centralizes E2E assets for Trending and Predict under
tests/, aligning page objects, locators, and smoke/spec files.TrendingandPredictpage objects totests/page-objects/**and selectors totests/locators/**; updated e2e specs/imports accordinglytests/smoke/predict/**and shared helperse2e/jest.e2e.config.jstestMatchto includetests/**/*.spec.{js,ts}e2e-split-tags-shards.mjsdefaultBASE_DIRto repo root (./) to find tagged specs across bothe2e/andtests/TabBarComponentandviewHelperto reference newTrendingViewpathsWritten by Cursor Bugbot for commit 1a4f280. This will update automatically on new commits. Configure here.