Skip to content

bunit - blazor with modal from bootstrap / jquery #441

@bikmis

Description

@bikmis

When the following button is clicked, modal appears as display is set to block (style="display:block")
<button id="[email protected]" type="button" class="btn btn-primary" data-toggle="modal" data-target="#employeeEditModal" @OnClick="() => passToEditForm(employee)">Edit

bunit test:
var editButton = cut.Find("#edit-1");
editButton.Click();
markup = cut.Markup;
modalIsDisplayed = markup.Contains("display: block;");

markup does not change here in the test, but in the application when it is running, display: block exists. Is it because jquery of bootstrap is not loaded for bunit? How can I resolve this?

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