Skip to content

Cover entire pages with bUnit #468

@SviatoslavK

Description

@SviatoslavK

I stumbled upon the weird problem with bUnit and am unsure if it is a bug or my misuse of bUnit. I'm doing a small integration test on a page. It looks something like this:

  • Find the button for adding a note on the page, click, make sure that a note appears on the page
  • Click on this note, and a sidebar should appear to edit it
  • Change note in the sidebar
  • Delete selected note
    For asynchronous actions, I use WaitForAssertion. And the problem is that the tests are written correctly, but they periodically crash without waiting for a timeout or not finding elements on the page. Perhaps this is because the rendering order of the components is different for different test runs? Or I won't be able to cover entire pages with tests using your library?

Version info:

  • bUnit version: 1.1.5
  • .NET 5, Blazor Server

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions