fix playwright test
This commit is contained in:
@@ -108,7 +108,7 @@
|
|||||||
"connection_lost_description": "You were disconnected from the call.",
|
"connection_lost_description": "You were disconnected from the call.",
|
||||||
"e2ee_unsupported": "Incompatible browser",
|
"e2ee_unsupported": "Incompatible browser",
|
||||||
"e2ee_unsupported_description": "Your web browser does not support encrypted calls. Supported browsers include Chrome, Safari, and Firefox 117+.",
|
"e2ee_unsupported_description": "Your web browser does not support encrypted calls. Supported browsers include Chrome, Safari, and Firefox 117+.",
|
||||||
"failed_to_start_livekit": "Failed to start Livekit",
|
"failed_to_start_livekit": "Failed to start Livekit connection",
|
||||||
"generic": "Something went wrong",
|
"generic": "Something went wrong",
|
||||||
"generic_description": "Submitting debug logs will help us track down the problem.",
|
"generic_description": "Submitting debug logs will help us track down the problem.",
|
||||||
"insufficient_capacity": "Insufficient capacity",
|
"insufficient_capacity": "Insufficient capacity",
|
||||||
|
|||||||
@@ -483,4 +483,5 @@ describe("LocalMembership", () => {
|
|||||||
expect(publishers[0].stopPublishing).toHaveBeenCalled();
|
expect(publishers[0].stopPublishing).toHaveBeenCalled();
|
||||||
expect(publishers[0].stopTracks).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 { observeTrackReference$ } from "../../MediaViewModel.ts";
|
||||||
import { type Connection } from "../remoteMembers/Connection.ts";
|
import { type Connection } from "../remoteMembers/Connection.ts";
|
||||||
import { type ObservableScope } from "../../ObservableScope.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.
|
* A wrapper for a Connection object.
|
||||||
@@ -154,7 +157,11 @@ export class Publisher {
|
|||||||
resolve();
|
resolve();
|
||||||
break;
|
break;
|
||||||
case "FailedToStart":
|
case "FailedToStart":
|
||||||
reject(new FailToStartLivekitConnection());
|
reject(
|
||||||
|
s.error instanceof ElementCallError
|
||||||
|
? s.error
|
||||||
|
: new FailToStartLivekitConnection(),
|
||||||
|
);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
this.logger?.info("waiting for connection: ", s.state);
|
this.logger?.info("waiting for connection: ", s.state);
|
||||||
|
|||||||
Reference in New Issue
Block a user