-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fleet Resource Handling - Replace warning banners with tooltips #13082
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Francesco Torchia <[email protected]>
Signed-off-by: Francesco Torchia <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to bother, but I already picture myself fixing this one day
|
||
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'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should not use classes as an identifier.
You could set the data-testid on the span directly or pass it as prop to achieve this. Otherwise use HTML tags, but CSS classes are a cause of issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean to to avoid using the .v-popper--has-tooltip
class ?
Do we an example in our unit tests ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean by example? All our unit tests have data over classes.
Given the existing markup, you could use data-checkbox-ctrl
.
Summary
Fixes #11300
Occurred changes and/or fixed issues
Technical notes summary
Areas or cases that should be tested
Fleet -> GitRepo -> create or edit
Areas which could experience regressions
Screenshot/Video
Checklist