diff --git a/shell/edit/__tests__/fleet.cattle.io.gitrepo.test.ts b/shell/edit/__tests__/fleet.cattle.io.gitrepo.test.ts index 96bbee8b87..a035d41d1c 100644 --- a/shell/edit/__tests__/fleet.cattle.io.gitrepo.test.ts +++ b/shell/edit/__tests__/fleet.cattle.io.gitrepo.test.ts @@ -35,18 +35,18 @@ describe('view: fleet.cattle.io.gitrepo should', () => { it('should have self-healing checkbox and tooltip', () => { const correctDriftCheckbox = wrapper.find('[data-testid="GitRepo-correctDrift-checkbox"]'); - const tooltip = wrapper.findAll('[data-testid="GitRepo-correctDrift-checkbox"] .v-popper--has-tooltip'); + const tooltip = wrapper.find('[data-testid="GitRepo-correctDrift-checkbox"]'); - expect(tooltip).toHaveLength(1); + expect(tooltip.element.classList).toContain('v-popper--has-tooltip'); expect(correctDriftCheckbox.exists()).toBeTruthy(); expect(correctDriftCheckbox.attributes().value).toBeFalsy(); }); it('should have keep-resources checkbox and tooltip', () => { const correctDriftCheckbox = wrapper.find('[data-testid="GitRepo-keepResources-checkbox"]'); - const tooltip = wrapper.findAll('[data-testid="GitRepo-keepResources-checkbox"] .v-popper--has-tooltip'); + const tooltip = wrapper.find('[data-testid="GitRepo-keepResources-checkbox"]'); - expect(tooltip).toHaveLength(1); + expect(tooltip.element.classList).toContain('v-popper--has-tooltip'); expect(correctDriftCheckbox.exists()).toBeTruthy(); expect(correctDriftCheckbox.attributes().value).toBeFalsy(); });