Replies: 2 comments 1 reply
-
Hi @TDroogers, thanks for reaching out. Just took a quick look at the source for NavLink and it looks like you have to specify a Here are the docs for working with the built-in navigation manager in bUnit: https://bunit.dev/docs/test-doubles/fake-navigation-manager.html |
Beta Was this translation helpful? Give feedback.
1 reply
-
Ps. ill convert this to a QA discussion since this is not a bug in bUnit. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
If you add an attribute ActiveClass this class is always added to the class.
I tried using
var navMan = Services.GetRequiredService<NavigationManager>();
but with no success.Example:
Testing this component:
With this test:
Results in this output:
Expected behavior:
ActiveClass should be part of css depending on the page you are.
Version info:
Beta Was this translation helpful? Give feedback.
All reactions