test(FR-2451): add E2E tests for prometheus preset CRUD, filter, sort, and table settings#7108
Conversation
This was referenced Apr 28, 2026
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Apr 28, 2026
e7c2b8c to
55d3a53
Compare
7427175 to
8f29c97
Compare
55d3a53 to
6e94a8c
Compare
8f29c97 to
1913077
Compare
6e94a8c to
ab6a4c0
Compare
1913077 to
18f1dfa
Compare
ab6a4c0 to
93ab994
Compare
18f1dfa to
a856188
Compare
a856188 to
fb84ef8
Compare
6fc42ee to
549d61f
Compare
fb84ef8 to
38baa1c
Compare
549d61f to
b41245b
Compare
38baa1c to
810e70f
Compare
810e70f to
b92a6e5
Compare
b41245b to
62ffd10
Compare
b92a6e5 to
44ee942
Compare
62ffd10 to
21c5894
Compare
…r, sort, and table settings - preset-crud.spec.ts: full CRUD lifecycle (create, read, edit, delete) with validation - preset-filter-sort.spec.ts: name filter via property filter bar (pressSequentially to trigger React onChange), sort by Name/CreatedAt/UpdatedAt via aria-sort attribute - preset-table-settings.spec.ts: column visibility, refresh button, query template copy - preset-integration.spec.ts: pagination and multi-operation integration scenarios - auto-scaling-rule-preset-seed.spec.ts: standalone seed helper for test data setup - test-util.ts: extend loginAsAdmin to accept optional credentials - playwright.config.ts: increase testTimeout to 180s for backend-heavy operations
…ce cleanup - preset-integration.spec.ts: fix Prometheus dropdown selector (CSS class instead of ARIA role), strict mode violation in dropdown (.last()), hidden metricName input locator, service link navigation; add sweepVFolders to afterAll cleanup - preset-table-settings.spec.ts: fix query template cell locator (column index instead of full text match which fails on truncated cells) - cleanup-util.ts: hover over row before clicking delete in sweepServices so BAINameActionCell action buttons are revealed - test-util.ts: fix createVFolderAndVerify navigation to use navigateTo()
21c5894 to
99735c7
Compare
44ee942 to
4ea6278
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Resolves #6357 (FR-2451)
Summary
Adds E2E test coverage for the Auto Scaling Rule Preset (Prometheus Query Preset) CRUD UI introduced under the Admin Serving page. The suite is grouped under
e2e/auto-scaling-rule-preset/and exercises every user-facing flow with side-effect-free cleanup.Spec coverage
preset-crud.spec.tspreset-filter-sort.spec.tspreset-table-settings.spec.tspreset-integration.spec.tsCleanup guarantees
Every describe block that creates resources removes them after each test:
afterEachcallsdeletePreset(typed-confirmation modal) — applies to every CRUD/Filter/Copy block. Inline cleanup in the Create block was moved toafterEachso a mid-test failure no longer leaks fixtures.afterAllrunsdeletePreset→sweepServices(/e2e-svc-/)→sweepVFolders(/e2e-mod-preset/)from a fresh browser context, so model services and model vfolders created during the deploy never linger.cleanup-util.ts#sweepServicesnow hovers the first cell to expose theBAINameActionCelldelete icon, andcreateVFolderAndVerifywaits for the creation modal to close before verifying — both fixed cases where teardown silently no-op'd.Test infrastructure
not.toHaveClass(/ant-zoom-appear/)before interaction..ant-tag,aria-sort,.ant-table-placeholder) instead of URL params, since the page mixesnuqsanduse-query-paramsand their pushes race.e2e-preset-*,e2e-mod-preset-*,e2e-svc-*) so sweeps never touch real data.Checklist: