From 9115fb75097562d18053d1a109145a1edd92ec6f Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 18 Jan 2022 09:55:56 +0000 Subject: [PATCH] Expect /capabilities after startClient in app tests (#20599) --- test/app-tests/loading-test.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/app-tests/loading-test.tsx b/test/app-tests/loading-test.tsx index bbf8f718b3..9eb6415696 100644 --- a/test/app-tests/loading-test.tsx +++ b/test/app-tests/loading-test.tsx @@ -425,6 +425,8 @@ describe('loading:', function() { describe('Guest auto-registration:', function() { it('shows a welcome page by default', function() { + httpBackend.when('GET', '/capabilities').respond(200, { capabilities: {} }); + loadApp(); return sleep(1).then(() => { @@ -455,6 +457,8 @@ describe('loading:', function() { }); it('uses the default homeserver to register with', function() { + httpBackend.when('GET', '/capabilities').respond(200, { capabilities: {} }); + loadApp(); return sleep(1).then(() => { @@ -489,6 +493,8 @@ describe('loading:', function() { }); it('shows a room view if we followed a room link', function() { + httpBackend.when('GET', '/capabilities').respond(200, { capabilities: {} }); + loadApp({ uriFragment: "#/room/!room:id", }); @@ -520,6 +526,8 @@ describe('loading:', function() { describe('Login as user', function() { beforeEach(function() { + httpBackend.when('GET', '/capabilities').respond(200, { capabilities: {} }); + // first we have to load the homepage loadApp();