@@ -156,7 +156,8 @@ describe('SettingsView — a `map` setting draws its stored rows (objectstack#31
156156 expect ( entryKeys ( 'quotas' ) ) . toEqual ( [ 'sys_job_run' , 'sys_audit_log' ] ) ;
157157 expect ( cell ( 'quotas' , 'sys_audit_log' , 'Max rows' ) . value ) . toBe ( '1000000' ) ;
158158 // The key cell shows the served label, the header the declared key column.
159- expect ( within ( entryRow ( 'quotas' , 'sys_audit_log' ) ! ) . getByRole ( 'combobox' ) . textContent ) . toContain ( 'Audit log' ) ;
159+ const keyPicker = within ( entryRow ( 'quotas' , 'sys_audit_log' ) ! ) . getByRole ( 'combobox' , { name : 'Object' } ) ;
160+ expect ( keyPicker . textContent ) . toContain ( 'Audit log' ) ;
160161 expect ( within ( rowFor ( 'quotas' ) ) . getByRole ( 'columnheader' , { name : 'Object' } ) ) . toBeTruthy ( ) ;
161162 // The row is drawn as keyed rows, never as the unsupported-type fallback.
162163 expect ( rowFor ( 'quotas' ) . textContent ) . not . toMatch ( / u n s u p p o r t e d S p e c i f i e r T y p e / ) ;
@@ -288,7 +289,7 @@ describe('SettingsView — a refused map save marks the row it names (objectstac
288289
289290 await waitFor ( ( ) => expect ( entryRow ( 'quotas' , 'sys_audit_logs' ) ! . dataset . invalid ) . toBe ( 'true' ) ) ;
290291 expect ( entryRow ( 'quotas' , 'sys_job_run' ) ! . dataset . invalid ) . toBeUndefined ( ) ;
291- const keyPicker = within ( entryRow ( 'quotas' , 'sys_audit_logs' ) ! ) . getByRole ( 'combobox' ) ;
292+ const keyPicker = within ( entryRow ( 'quotas' , 'sys_audit_logs' ) ! ) . getByRole ( 'combobox' , { name : 'Object' } ) ;
292293 expect ( keyPicker . getAttribute ( 'aria-invalid' ) ) . toBe ( 'true' ) ;
293294 const alert = rowFor ( 'quotas' ) . querySelector ( '[role="alert"]' ) ! ;
294295 expect ( alert . textContent ) . toBe ( sentence ) ;
@@ -318,7 +319,7 @@ describe('SettingsView — a refused map save marks the row it names (objectstac
318319 expect ( cell ( 'retention_overrides' , 'sys_job_run' , 'Expire rows after' ) . getAttribute ( 'aria-invalid' ) ) . toBe ( 'true' ) ;
319320 expect ( cell ( 'retention_overrides' , 'sys_job_run' , 'Keep rows for' ) . getAttribute ( 'aria-invalid' ) ) . toBeNull ( ) ;
320321 expect (
321- within ( entryRow ( 'retention_overrides' , 'sys_job_run' ) ! ) . getByRole ( 'combobox' , { name : / J o b r u n / } ) . getAttribute ( 'aria-invalid' ) ,
322+ within ( entryRow ( 'retention_overrides' , 'sys_job_run' ) ! ) . getByRole ( 'combobox' , { name : 'Object' } ) . getAttribute ( 'aria-invalid' ) ,
322323 ) . toBeNull ( ) ;
323324 } ) ;
324325
@@ -357,7 +358,8 @@ describe('SettingsView — a locked map (objectstack#31391)', () => {
357358 await screen . findByText ( 'Row quotas' ) ;
358359
359360 expect ( cell ( 'quotas' , 'sys_audit_log' , 'Max rows' ) . disabled ) . toBe ( true ) ;
360- expect ( ( within ( entryRow ( 'quotas' , 'sys_audit_log' ) ! ) . getByRole ( 'combobox' ) as HTMLButtonElement ) . disabled ) . toBe ( true ) ;
361+ const keyPicker = within ( entryRow ( 'quotas' , 'sys_audit_log' ) ! ) . getByRole ( 'combobox' , { name : 'Object' } ) ;
362+ expect ( ( keyPicker as HTMLButtonElement ) . disabled ) . toBe ( true ) ;
361363 expect ( ( addPicker ( 'quotas' ) as HTMLButtonElement ) . disabled ) . toBe ( true ) ;
362364 const remove = within ( rowFor ( 'quotas' ) ) . getByRole ( 'button' , { name : / m a p R e m o v e R o w / } ) as HTMLButtonElement ;
363365 expect ( remove . disabled ) . toBe ( true ) ;
0 commit comments