fix playwright test

This commit is contained in:
Timo K
2025-11-27 18:02:46 +01:00
parent 46f8fe4ec7
commit c0913b6546
3 changed files with 11 additions and 3 deletions

View File

@@ -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",

View File

@@ -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.
}); });

View File

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