mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-18 00:17:39 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user