Skip to content

bunit - blazor with modal from bootstrap / jquery #441

Description

@bikmis

When the following button is clicked, modal appears as display is set to block (style="display:block")
<button id="edit-@employee.ID" 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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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