Add Files to Discover entry flow E2E tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 22:27:38 +08:00
parent 6dd182b5e9
commit c91d278f1b
2 changed files with 75 additions and 0 deletions

View File

@@ -59,6 +59,12 @@ export function setupApiIntercepts() {
body: { success: true },
}).as('deleteUserRole');
// Filter detail (for fetchFunnel when entering filter from Files)
cy.intercept('GET', /\/api\/filters\/\d+$/, {
statusCode: 200,
body: { rules: [], log: { id: 1 }, name: 'filtered-sample' },
}).as('getFilterDetail');
// Discover (map data)
cy.intercept('GET', '/api/logs/*/discover', {
fixture: 'api/discover.json',