-
Notifications
You must be signed in to change notification settings - Fork 113
Open
Description
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.
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
Labels
No labels