From e68583a6e21ffeb6147fce3250b595b7fcef1262 Mon Sep 17 00:00:00 2001 From: Kerry Date: Mon, 17 Jul 2023 08:50:13 +1200 Subject: [PATCH] Test: don't unmount `MatrixChat` before setup is finished (#25783) --- test/app-tests/loading-test.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/app-tests/loading-test.tsx b/test/app-tests/loading-test.tsx index feb4a750c5..aacdb5da4b 100644 --- a/test/app-tests/loading-test.tsx +++ b/test/app-tests/loading-test.tsx @@ -592,6 +592,11 @@ describe("loading:", function () { return tokenLoginCompletePromise; }) + .then(() => { + return expectAndAwaitSync().catch((e) => { + throw new Error("Never got /sync after login: did the client start?"); + }); + }) .then(() => { // check that the localstorage has been set up in such a way that // the reloaded app can pick up where we leave off.