5👍
✅
It should work:
it("Incorrect login pops up", async () => {
const userTextInputIncorrect = wrapper.find("#userNameTextInput");
await userTextInputIncorrect.setValue("wrongPass");
expect(
(userTextInputIncorrect.element as HTMLInputElement).value
).toContain("incorrectName");
});
Source:stackexchange.com