Skip to content

Third Party Select Boxes Not Working. #281

@MarkTallentire

Description

@MarkTallentire

Describe the bug A clear and concise description of what the bug is.

Cannot get validation warnings to trigger when using third party library (Quasar)'s dropdown boxes.

To Reproduce Steps to reproduce the behavior:

In the DOM I can click a dropdown and then click off it without selecting anything it will raise the validation error.

validation error

In my test I simulate this by doing the following

const type = await screen.getByTestId('type');
await fireEvent.click(type);
await fireEvent.click(status); //Click something else to de-select the dropdown
expect(screen.findByText(/Location type is required/i)).to.exist;

However this test fails. I belive it is due to the way Quasar handles the dropdowns and the fact that they're teleport components but I'm looking for any kind of workaround for this.

Expected behavior
The test to pass as in the DOM the error message is clearly visible.

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