@@ -4,9 +4,11 @@ import {
44 TASK_COLLECTION ,
55 activateProposedPolicy ,
66 approveIntent ,
7+ captureDataPlaneRequests ,
78 createBudgetRecord ,
89 dbIntentUrl ,
910 dbIntentsUrl ,
11+ expectGraphqlPrimaryDataPlane ,
1012 patchBudgetRecordAs ,
1113 previewBudgetIntent ,
1214 proposedPolicyDraftDenyHigh ,
@@ -21,12 +23,13 @@ async function selectStatus(page: Page, status: string) {
2123}
2224
2325test . describe ( 'Approval inbox' , ( ) => {
24- test ( 'lists scoped intents across review states and opens detail' , async ( { page, request } ) => {
26+ test ( 'lists scoped intents across review states and opens detail @US-117 ' , async ( { page, request } ) => {
2527 const db = await seedApprovalCollections ( request , 'approval-inbox' ) ;
2628 const ids = await seedIntentStates ( request , db ) ;
2729 const foreignDb = await seedApprovalCollections ( request , 'approval-foreign' ) ;
2830 await createBudgetRecord ( request , foreignDb , TASK_COLLECTION , 'task-foreign' ) ;
2931 const foreign = await previewBudgetIntent ( request , foreignDb , 'task-foreign' , 20_000 ) ;
32+ const requests = captureDataPlaneRequests ( page , db ) ;
3033
3134 await routeGraphqlAs ( page , 'finance-approver' ) ;
3235 await page . goto ( dbIntentsUrl ( db ) ) ;
@@ -64,6 +67,8 @@ test.describe('Approval inbox', () => {
6467 await expect ( page . getByTestId ( 'intent-audit-trail' ) ) . toContainText ( 'intent.approve' ) ;
6568 await expect ( page . getByTestId ( 'intent-audit-trail' ) ) . toContainText ( 'approved' ) ;
6669 await expect ( page . getByTestId ( 'intent-deep-links' ) ) . toContainText ( 'Open audit log' ) ;
70+
71+ expectGraphqlPrimaryDataPlane ( requests , 'approval inbox route should stay GraphQL-primary' ) ;
6772 } ) ;
6873
6974 test ( 'supports dense filters, keyboard selection, and inline review without leaving inbox' , async ( {
@@ -182,7 +187,7 @@ test.describe('Approval inbox', () => {
182187 await expect ( page . getByTestId ( 'intent-reason' ) ) . toHaveValue ( 'lost role attempt' ) ;
183188 } ) ;
184189
185- test ( 'shows disabled action states for rejected, expired, committed, and stale intents' , async ( {
190+ test ( 'shows disabled action states for rejected, expired, committed, and stale intents @US-118 ' , async ( {
186191 page,
187192 request,
188193 } ) => {
0 commit comments