Skip to content
This repository was archived by the owner on Mar 4, 2022. It is now read-only.

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 9, 2021

Bumps bunit.web from 1.0.0-preview-01 to 1.3.42.

Release notes

Sourced from bunit.web's releases.

1.3.42

This release includes support for .NET 6, with support for all new features in Blazor with that release. There are also a number of additions and fixes, all listed below.

Big shout out to bUnit's sponsors who helped make this release happen.

The higher tier sponsors are:

Other sponsors are:

Added

List of added functionality in this release.

  • 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:

    // <App /> component uses <FocusOnNavigate>
    var cut = RenderComponent<App>();
    // Verifies that <FocusOnNavigate> called it's JavaScript function
    var invocation = JSInterop.VerifyFocusOnNavigateInvoke();
    // Verify that the invocation of <FocusOnNavigate> JavaScript function included the "h1" as the selector
    Assert.Equal("h1", invocation.Arguments[0]);

    By @​egil.

  • Added fake version of the PersistentComponentState type in Blazor that makes it possible to test components that use the type. By @​egil.

  • Added TriggerEvent method to make it easier to trigger custom events. By @​egil.

  • Added History capture in the FakeNavigationManager. By @​egil.

  • 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!

Fixed

  • The Click and DoubleClick extension methods now set the MouseEventArgs.Detail property to 1 and 2 respectively by default, unless the user specifies something else. This makes the methods more correctly emulate how Blazor reports single or double clicks on an element in the browser. Thanks to @​David-Moreira for the help troubleshooting this issue. By @​egil.

  • FocusAsync() method handler on ElementReference and <FocusOnNavigate> js handler return completed Task. By @​anddrzejb.

... (truncated)

Changelog

Sourced from bunit.web's changelog.

[1.3.42] - 2021-11-09

This release includes support for .NET 6, with support for all new features in Blazor with that release. There are also a number of additions and fixes, all listed below.

Big shout out to bUnit's sponsors who helped make this release happen.

The higher tier sponsors are:

Other sponsors are:

Added

List of added functionality in this release.

  • 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:

    // <App /> component uses <FocusOnNavigate>
    var cut = RenderComponent<App>();
    // Verifies that <FocusOnNavigate> called it's JavaScript function
    var invocation = JSInterop.VerifyFocusOnNavigateInvoke();
    // Verify that the invocation of <FocusOnNavigate> JavaScript function included the "h1" as the selector
    Assert.Equal("h1", invocation.Arguments[0]);

    By @​egil.

  • Added fake version of the PersistentComponentState type in Blazor that makes it possible to test components that use the type. By @​egil.

  • Added TriggerEvent method to make it easier to trigger custom events. By @​egil.

  • Added History capture in the FakeNavigationManager. By @​egil.

  • 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!

Fixed

  • The Click and DoubleClick extension methods now set the MouseEventArgs.Detail property to 1 and 2 respectively by default, unless the user specifies something else. This makes the methods more correctly emulate how Blazor reports single or double clicks on an element in the browser. Thanks to @​David-Moreira for the help troubleshooting this issue. By @​egil.

... (truncated)

Commits
  • de625c0 Updated CHANGELOG.md for 1.3.42 release
  • b1b3e63 Set version to '1.3'
  • bd6f27d docs: update changelog
  • 9c45ee8 fix: make async event trigger methods public
  • 315b1da refactor: upgrade template to net 6
  • 21ed961 build: move nbgv out of common directory props
  • 943df89 build: added mock lib to verification
  • d27801f refactor: moved component mocking preview to own lib
  • 83d491c build(deps): bump AngleSharp.Css from 0.16.1 to 0.16.2
  • 98255fa build: bump .net sdk to 6.0.0
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [bunit.web](https://github.com/bUnit-dev/bUnit) from 1.0.0-preview-01 to 1.3.42.
- [Release notes](https://github.com/bUnit-dev/bUnit/releases)
- [Changelog](https://github.com/bUnit-dev/bUnit/blob/main/CHANGELOG.md)
- [Commits](bUnit-dev/bUnit@v1.0.0-preview-01...v1.3.42)

---
updated-dependencies:
- dependency-name: bunit.web
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file labels Nov 9, 2021
@codecov
Copy link

codecov bot commented Nov 9, 2021

Codecov Report

Merging #768 (05231a0) into main (cde9eec) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #768   +/-   ##
=====================================
  Coverage   7.91%   7.91%           
=====================================
  Files        163     163           
  Lines       5674    5674           
=====================================
  Hits         449     449           
  Misses      5225    5225           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cde9eec...05231a0. Read the comment docs.

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 20, 2021

Superseded by #810.

@dependabot dependabot bot closed this Dec 20, 2021
@dependabot dependabot bot deleted the dependabot/nuget/Gatekeeper.Client.Tests/bunit.web-1.3.42 branch December 20, 2021 20:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant