Skip to content

Commit 2c1a1c1

Browse files
committed
Updated CHANGELOG.md for 1.4.15 release
1 parent 291bcd8 commit 2c1a1c1

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

CHANGELOG.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,20 @@ All notable changes to **bUnit** will be documented in this file. The project ad
66

77
## [Unreleased]
88

9+
## [1.4.15] - 2021-12-18
10+
911
This release reintroduces `Stub<TComponent>` and related back into the main library, so the "preview" library `bunit.web.mock` is already obsolete.
1012

1113
### Added
1214

13-
- Add `ComponentFactories` extensions method that makes it easy to register an instance of a replacement component. By [@egil](https://github.com/egil).
14-
- Add ability to pass `ServiceProviderOptions` to `TestServiceProvider` through property to allow users to customize the service provider. By [@rodolfograve](https://github.com/rodolfograve).
15+
- Add `ComponentFactories` extensions method that makes it easy to register an instance of a replacement component. By [@egil](https://github.com/egil).
16+
- Add ability to pass `ServiceProviderOptions` to `TestServiceProvider` through property to allow users to customize the service provider. By [@rodolfograve](https://github.com/rodolfograve).
1517

1618
### Fixed
1719

18-
- Changed `SetParametersAndRender` such that it rethrows any exceptions thrown by the component under tests `SetParametersAsync` method. Thanks to [@bonsall](https://github.com/bonsall) for reporting the issue. Fixed by [@egil](https://github.com/egil).
19-
- `onclick` on a button inside a form will raise the `onsubmit` event for the form itself. Reported by [@egil]. Fixed by [@linkdotnet](https://github.com/linkdotnet).
20-
- Only forms are allowed to have a `onsubmit` event handler. When `onsubmit` is invoked from a non-form element results in an exception. Fixed by [@linkdotnet](https://github.com/linkdotnet).
20+
- Changed `SetParametersAndRender` such that it rethrows any exceptions thrown by the component under tests `SetParametersAsync` method. Thanks to [@bonsall](https://github.com/bonsall) for reporting the issue. Fixed by [@egil](https://github.com/egil).
21+
- `onclick` on a button inside a form will raise the `onsubmit` event for the form itself. Reported by [@egil]. Fixed by [@linkdotnet](https://github.com/linkdotnet).
22+
- Only forms are allowed to have a `onsubmit` event handler. When `onsubmit` is invoked from a non-form element results in an exception. Fixed by [@linkdotnet](https://github.com/linkdotnet).
2123

2224
## [1.3.42] - 2021-11-09
2325

@@ -42,7 +44,7 @@ Big shout out to **bUnit's sponsors** who helped make this release happen.
4244

4345
List of added functionality in this release.
4446

45-
- Added support for writing tests of components that use the `<FocusOnNavigate>` component included in .NET 6. This includes an assertion helper method `VerifyFocusOnNavigateInvoke` on bUnit's `JSInterop` that allow you to verify that `<FocusOnNavigate>` has set focus on an element during render. For example, to verify that `h1` selector was used to pick an element to focus on, do:
47+
- Added support for writing tests of components that use the `<FocusOnNavigate>` component included in .NET 6. This includes an assertion helper method `VerifyFocusOnNavigateInvoke` on bUnit's `JSInterop` that allow you to verify that `<FocusOnNavigate>` has set focus on an element during render. For example, to verify that `h1` selector was used to pick an element to focus on, do:
4648

4749
```csharp
4850
// <App /> component uses <FocusOnNavigate>
@@ -55,21 +57,21 @@ List of added functionality in this release.
5557
Assert.Equal("h1", invocation.Arguments[0]);
5658
```
5759

58-
By [@egil](https://github.com/egil).
60+
By [@egil](https://github.com/egil).
5961
60-
- Added fake version of the `PersistentComponentState` type in Blazor that makes it possible to test components that use the type. By [@egil](https://github.com/egil).
62+
- Added fake version of the `PersistentComponentState` type in Blazor that makes it possible to test components that use the type. By [@egil](https://github.com/egil).
6163
62-
- Added `TriggerEvent` method to make it easier to trigger custom events. By [@egil](https://github.com/egil).
64+
- Added `TriggerEvent` method to make it easier to trigger custom events. By [@egil](https://github.com/egil).
6365
64-
- Added `History` capture in the `FakeNavigationManager`. By [@egil](https://github.com/egil).
66+
- Added `History` capture in the `FakeNavigationManager`. By [@egil](https://github.com/egil).
6567
66-
- Added new bUnit component mocking library, available via NuGet as `bunit.web.mock`. It is currently in preview and the features/APIs of it will change!
68+
- Added new bUnit component mocking library, available via NuGet as `bunit.web.mock`. It is currently in preview and the features/APIs of it will change!
6769

68-
- Added `WaitForElement` and `WaitForElements` methods. These makes it possible to wait for one or more elements to appear in the DOM before continuing a test, similar to how `WaitForAssertion` allows you to wait for an assertion to pass, or `WaitForState` allows you to wait for a predicate to pass. By [@egil](https://github.com/egil).
70+
- Added `WaitForElement` and `WaitForElements` methods. These makes it possible to wait for one or more elements to appear in the DOM before continuing a test, similar to how `WaitForAssertion` allows you to wait for an assertion to pass, or `WaitForState` allows you to wait for a predicate to pass. By [@egil](https://github.com/egil).
6971
7072
### Changed
7173

72-
- Added automatic conversion of values (types) passed to `Change()` and `Input()` event trigger methods. This means that e.g. a `DateTime` passed to `Change()` is automatically converted to a string format that Blazor expects. By [@egil](https://github.com/egil).
74+
- Added automatic conversion of values (types) passed to `Change()` and `Input()` event trigger methods. This means that e.g. a `DateTime` passed to `Change()` is automatically converted to a string format that Blazor expects. By [@egil](https://github.com/egil).
7375
7476
### Fixed
7577

@@ -1065,7 +1067,9 @@ The latest version of the library is availble on NuGet:
10651067
- **Wrong casing on keyboard event dispatch helpers.**
10661068
The helper methods for the keyboard events was not probably cased, so that has been updated. E.g. from `Keypress(...)` to `KeyPress(...)`.
10671069

1068-
[Unreleased]: https://github.com/bUnit-dev/bUnit/compare/v1.3.42...HEAD
1070+
[Unreleased]: https://github.com/bUnit-dev/bUnit/compare/v1.4.15...HEAD
1071+
1072+
[1.4.15]: https://github.com/bUnit-dev/bUnit/compare/v1.3.42...v1.4.15
10691073
10701074
[1.3.42]: https://github.com/bUnit-dev/bUnit/compare/v1.2.49...v1.3.42
10711075

0 commit comments

Comments
 (0)