mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-21 18:46:08 +00: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:
parent
7d10e97888
commit
2e7913b258
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…
Add table
Add a link
Reference in a new issue