Add Discover page E2E tests with real API fixture data

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 21:38:20 +08:00
parent 0ab037dac0
commit 584a73b90c
9 changed files with 3648 additions and 90 deletions

View File

@@ -88,13 +88,11 @@ export function setupApiIntercepts() {
// Trace detail (must be after traces list intercepts)
cy.intercept('GET', /\/api\/logs\/.*\/traces\/\d+/, {
statusCode: 200,
body: { task_seq: [], events: [] },
fixture: 'api/trace-detail.json',
}).as('getTraceDetail');
cy.intercept('GET', /\/api\/filters\/.*\/traces\/\d+/, {
statusCode: 200,
body: { task_seq: [], events: [] },
fixture: 'api/trace-detail.json',
}).as('getFilterTraceDetail');
// Temp filters
@@ -119,13 +117,11 @@ export function setupApiIntercepts() {
// Conformance check params
cy.intercept('GET', '/api/log-checks/params*', {
statusCode: 200,
body: {},
fixture: 'api/filter-params.json',
}).as('getLogCheckParams');
cy.intercept('GET', '/api/filter-checks/params*', {
statusCode: 200,
body: {},
fixture: 'api/filter-params.json',
}).as('getFilterCheckParams');
// Dependents (for delete confirmation)