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:
parent
4585db8a9d
commit
d195c8357e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue