fix: Use specific checkbox selector in UnifiedAgents test

The test was using getByRole('checkbox') which now matches multiple
elements after adding the "Skip certificate verification" checkbox.
Use name matcher to select the specific Docker monitoring checkbox.
This commit is contained in:
rcourtman
2025-12-03 14:32:05 +00:00
parent 7d10e97888
commit 2e7913b258

View File

@@ -386,7 +386,7 @@ describe('UnifiedAgents platform commands', () => {
});
// Docker monitoring is disabled by default
const checkbox = screen.getByRole('checkbox');
const checkbox = screen.getByRole('checkbox', { name: /Enable Docker monitoring/i });
expect(checkbox).not.toBeChecked();
// Enable it