You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-06 10:22:45 +03:00
Fix flaky jest tests (#12486)
...and remove the code that causes them to be retried in CI. Most of these were just lack of waiting for async things to happen, mostly lazy loading components, hence whythey worked on the retry: because the code had been loaded by then.
This commit is contained in:
@@ -130,9 +130,9 @@ describe("ForwardDialog", () => {
|
||||
expect(container.querySelectorAll(".mx_ForwardList_entry")).toHaveLength(3);
|
||||
|
||||
const searchInput = getByTestId(container, "searchbox-input");
|
||||
act(() => userEvent.type(searchInput, "a"));
|
||||
await userEvent.type(searchInput, "a");
|
||||
|
||||
expect(container.querySelectorAll(".mx_ForwardList_entry")).toHaveLength(3);
|
||||
expect(container.querySelectorAll(".mx_ForwardList_entry")).toHaveLength(2);
|
||||
});
|
||||
|
||||
it("should be navigable using arrow keys", async () => {
|
||||
|
Reference in New Issue
Block a user