Skip to content
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

refactor(cc-grafana-info): avoid setting both disabled & waiting at the same time #1313

Merged

Conversation

florian-sanders-cc
Copy link
Contributor

@florian-sanders-cc florian-sanders-cc commented Jan 27, 2025

Fixes #1124

Context

How am I sure no other components are missing?

The following log appears in local tests when there are issues of this type:

waiting and disabled cannot be set to true at the same time, see #1124 for more info

screenshot of the error quoted above in the test results

This time I ran all component tests locally and searched for the message to make sure there was none left.

Note: ideally I'd like these errors to make tests fails but I'm not sure how to do that at the moment? If you have ideas feel free to weigh in!

Note: this is a refactor commit and not a fix because the issue it fixes has not been released yet.

How to review?

  • Check the commit,
  • If you want, you may run the tests locally and check that the error message is not part of the results,
  • 1 reviewer should be enough.

Copy link
Contributor

🔎 A preview has been automatically published : https://clever-components-preview.cellar-c2.services.clever-cloud.com/cc-grafana-info/fix-button-set-in-impossible-state/index.html.

This preview will be deleted once this PR is closed.

@pdesoyres-cc
Copy link
Contributor

The only way I see to make test fail in that situation, is to write dedicated unit tests

@florian-sanders-cc
Copy link
Contributor Author

The only way I see to make test fail in that situation, is to write dedicated unit tests

yeah I figured the same but it felt overkill 🤔
We'll see after the refactoring of a11y tests 👍

@florian-sanders-cc florian-sanders-cc force-pushed the cc-grafana-info/fix-button-set-in-impossible-state branch from c151a15 to d3f8688 Compare January 27, 2025 14:58
@florian-sanders-cc florian-sanders-cc merged commit f94ef4f into master Jan 27, 2025
4 checks passed
@florian-sanders-cc florian-sanders-cc deleted the cc-grafana-info/fix-button-set-in-impossible-state branch January 27, 2025 15:05
Copy link
Contributor

🔎 The preview has been automatically deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cc-button: focus is lost when set to disabled
3 participants