mirror of
https://github.com/vector-im/element-call.git
synced 2026-10-16 23:45:50 +00:00
Fix typo in the name of the createJWTToken Playwright fixture
This commit is contained in:
@@ -7,7 +7,7 @@ Please see LICENSE in the repository root for full details.
|
|||||||
|
|
||||||
import { expect, test } from "@playwright/test";
|
import { expect, test } from "@playwright/test";
|
||||||
|
|
||||||
import { createJTWToken } from "./fixtures/jwt-token";
|
import { createJWTToken } from "./fixtures/jwt-token";
|
||||||
|
|
||||||
test("Should show error screen if fails to get JWT token", async ({ page }) => {
|
test("Should show error screen if fails to get JWT token", async ({ page }) => {
|
||||||
await page.goto("/");
|
await page.goto("/");
|
||||||
@@ -95,7 +95,7 @@ test("Should show error screen if call creation is restricted", async ({
|
|||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
url: "wss://badurltotricktest/livekit/sfu",
|
url: "wss://badurltotricktest/livekit/sfu",
|
||||||
jwt: createJTWToken("@fake:user", "!fake:room"),
|
jwt: createJWTToken("@fake:user", "!fake:room"),
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|||||||
Please see LICENSE in the repository root for full details.
|
Please see LICENSE in the repository root for full details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export function createJTWToken(sub: string, room: string): string {
|
export function createJWTToken(sub: string, room: string): string {
|
||||||
return [
|
return [
|
||||||
{}, // header
|
{}, // header
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user