mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-25 06:40:26 +00:00
fix playwright test
This commit is contained in:
@@ -483,4 +483,5 @@ describe("LocalMembership", () => {
|
||||
expect(publishers[0].stopPublishing).toHaveBeenCalled();
|
||||
expect(publishers[0].stopTracks).toHaveBeenCalled();
|
||||
});
|
||||
// TODO add tests for matrix local matrix participation.
|
||||
});
|
||||
|
||||
@@ -34,7 +34,10 @@ import { getUrlParams } from "../../../UrlParams.ts";
|
||||
import { observeTrackReference$ } from "../../MediaViewModel.ts";
|
||||
import { type Connection } from "../remoteMembers/Connection.ts";
|
||||
import { type ObservableScope } from "../../ObservableScope.ts";
|
||||
import { FailToStartLivekitConnection } from "../../../utils/errors.ts";
|
||||
import {
|
||||
ElementCallError,
|
||||
FailToStartLivekitConnection,
|
||||
} from "../../../utils/errors.ts";
|
||||
|
||||
/**
|
||||
* A wrapper for a Connection object.
|
||||
@@ -154,7 +157,11 @@ export class Publisher {
|
||||
resolve();
|
||||
break;
|
||||
case "FailedToStart":
|
||||
reject(new FailToStartLivekitConnection());
|
||||
reject(
|
||||
s.error instanceof ElementCallError
|
||||
? s.error
|
||||
: new FailToStartLivekitConnection(),
|
||||
);
|
||||
break;
|
||||
default:
|
||||
this.logger?.info("waiting for connection: ", s.state);
|
||||
|
||||
Reference in New Issue
Block a user