Skip to content

Commit

Permalink
Remove class selector from fleet.cattle.io.test.ts
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Torchia <[email protected]>
  • Loading branch information
torchiaf committed Jan 20, 2025
1 parent ce752d5 commit ad7be53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shell/edit/__tests__/fleet.cattle.io.gitrepo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit ad7be53

Please sign in to comment.