Expect /capabilities after startClient in app tests (#20599)

20503/launch-jitsi
Michael Telatynski 2022-01-18 09:55:56 +00:00 committed by GitHub
parent a43b141a43
commit 9115fb7509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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();