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

Fixed Internal Attributes #111 #112

Merged
merged 8 commits into from
Apr 30, 2020
Merged

Fixed Internal Attributes #111 #112

merged 8 commits into from
Apr 30, 2020

Conversation

samtrion
Copy link
Contributor

Signed-off-by: samtrion [email protected]

Copy link
Member

@egil egil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Thanks.
Can I get you to do a quick unit tests of this specific scenario. It should go in the relevant folder in the bunit.web.tests project?

src/bunit.web/Rendering/Internal/Htmlizer.cs Outdated Show resolved Hide resolved
@egil egil linked an issue Apr 30, 2020 that may be closed by this pull request
@egil egil added the bug Something isn't working label Apr 30, 2020
@egil egil added this to the beta-7 milestone Apr 30, 2020
Copy link
Member

@egil egil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the test. As I read the test though, it actually tests that MarkupMatches correctly ignores the special Blazor attributes, and not that we correctly prefix all special Blazor attributes.

We do actually still render the attributes, so what you probably can do to write a test for this scenario, is to use a css query for the element with the click handler, and verify that it contains the attributes as expected, with the proper prefixed name. Makes sense?

Thanks again for your help.

@samtrion
Copy link
Contributor Author

Guess that should fit so far.

@samtrion samtrion requested a review from egil April 30, 2020 20:43
Copy link
Member

@egil egil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. thanks.

@egil egil merged commit 91b4ac8 into bUnit-dev:dev Apr 30, 2020
@samtrion samtrion deleted the fix/internal-attributes branch April 30, 2020 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to disable internal Attributes for component.MarkupMatches(expected);
2 participants