You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,15 @@ All notable changes to **bUnit** will be documented in this file. The project ad
6
6
7
7
## [Unreleased]
8
8
9
+
### Added
10
+
11
+
- Added generic overloads `Find{TComponent, TElement}` and `FindAll{TComponent, TElement}` to query for specific element types (e.g., `IHtmlInputElement`). By [@linkdotnet](https://github.com/linkdotnet).
12
+
- Added generic overloads `WaitForElement{TComponent, TElement}` and `WaitForElements{TComponent, TElement}` to wait for specific element types. By [@linkdotnet](https://github.com/linkdotnet).
13
+
14
+
### Fixed
15
+
16
+
- Adding convenient overloads for `InputAsync` and `ChangeAsync` to have feature parity with the sync version. Reported by [@ScarletKuro](https://github.com/ScarletKuro). Fixed by [@linkdotnet](https://github.com/linkdotnet).
The last one was a method with all parameters of `MouseEventArgs` as optional parameters. This method has been removed in favor of using the `MouseEventArgs` directly.
80
80
81
-
Also `ClickAsync` - to align with its synchronous counterpart - doesn't take `MouseEventArgs` as mandatory parameter anymore. If not set, a default instance will be created.
81
+
Also `ClickAsync` - to align with its synchronous counterpart - doesn't take `MouseEventArgs` as mandatory parameter anymore. If not set, a default instance will be created.
82
+
83
+
## `DisposeComponents` is now async and called `DisposeComponentsAsync`
84
+
85
+
The `DisposeComponents` method has been renamed to `DisposeComponentsAsync` and is now asynchronous. To migrate, simply rename the method and add `await`:
86
+
87
+
```diff
88
+
- DisposeComponents();
89
+
+ await DisposeComponentsAsync();
90
+
```
91
+
92
+
## The `ComponentParameterFactory` and `ComponentParameter` has been removed
93
+
The `ComponentParameterFactory` class has been removed (and therefore the usage of `ComponentParameter`).
94
+
Instead, use the `Render` method (and its overloads) to pass parameters to components.
95
+
96
+
## `IRefreshableElementCollection` was removed
97
+
The `IRefreshableElementCollection` interface has been removed. With that, the overload in `FindAll` doesn't accept a `bool refresh` parameter anymore. Instead, simply call `FindAll` again to get a refreshed collection.
98
+
99
+
```csharp
100
+
varitems=cut.FindAll("li", refresh: true);
101
+
items.Count.ShouldBe(3);
102
+
cut.Find("button").Click(); // This changes the list items
103
+
104
+
items.Count.ShouldBe(4);
105
+
```
106
+
107
+
Should be changed to:
108
+
109
+
```csharp
110
+
varitems=cut.FindAll("li");
111
+
items.Count.ShouldBe(3);
112
+
cut.Find("button").Click(); // This changes the list items
113
+
items=cut.FindAll("li"); // Call FindAll again to refresh
0 commit comments