You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constuser=userEvent.setup();awaituser.type(inputElement,"{backspace}");waitFor(()=>expect(screen.getByTestId("super-auto-tag")).toHaveTextContent("Lukasz"));// this works
constuser=userEvent.setup();awaituser.type(inputElement,"{backspace}");awaittick();// this doesn't workexpect(screen.getByTestId("super-auto-tag")).toHaveTextContent("Lukasz");
The text was updated successfully, but these errors were encountered:
I kinda expect this is caused by the expected output being dependent on something reacting to a change reacting to a change reacting to the original event, which would indeed takes several tick() to stabilize.
Since tick() is part of svelte itself, I don't think there is much we can do here. Using waitFor seems to be the obvious and reasonable thing to do.
The text was updated successfully, but these errors were encountered: