Comments (2)
Yeah, you are probably right about the exception. bUnit wraps AngleSharps IElement
types when returned by Find such that after a render the elements automatically update.
However, until we find a good alternative solution, you can drop using Find
and instead use cut.Nodes.QuerySelector
. You wont get auto-refreshing element references.
from bunit.
Thanks for the alternative solution. I was able to use that to get my test passing for now.
I didn't even know that there was an auto-refresh feature so I was re-fetching the nodes anyway.
from bunit.
Related Issues (20)
- Enable walking component tree HOT 2
- AngleSharp IElement extension methods do not work with IRenderedFragment.Find HOT 6
- Improve interacting with substituted components (Stub<T>) HOT 1
- Multi-threaded test execution appears to cause a race condition when using SetParametersAndRender HOT 21
- Showcase NUnits `LifeCycle.InstancePerTestCase` to come around the wrapper HOT 1
- Enable documentation for `v1` and `v2` HOT 2
- Failing tests on ubuntu-latest github actions HOT 14
- StackOverflow Exception when running tests with vstest.console.exe HOT 10
- TestRender.DisposeComponents() does not correctly dispose components that implement IAsyncDisposable HOT 6
- Add Support for `@onclose` and `@oncancel` events for `<dialog>`
- `System.MissingMethodException` after update to .NET 8 RC 2 HOT 17
- 1.24.10 unit tests hang randomly when run in parallel HOT 13
- Issues with Fluxor in version 1.24.10 HOT 4
- I got a execption in .NET 8: Method not found: 'System.String Microsoft.AspNetCore.Components.CascadingParameterAttributeBase.get_Name()'. HOT 1
- bUnit fails with System.InvalidOperationException: The render handle is not yet assigned. HOT 5
- `Render(RenderFragment)` doesn't re-render and has other limitations HOT 9
- `IRenderedComponent.InvokeAsync` should support return values HOT 8
- Enable test doubles for (3rd party) components generation HOT 20
- Problems running docs project locally HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bunit.