Skip to content

Commit a86ff6c

Browse files
committed
fix: incorrect base url in e2e
1 parent d3d167a commit a86ff6c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/demo-react.spec.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Browser, expect, type Page, test } from "@playwright/test";
99
// npx playwright test --project=local --repeat-each 15 --grep "chromium_chromium disconnect and reconnect"
1010

1111
const PULSEBEAM_BASE_URL = process.env.PULSEBEAM_BASE_URL ||
12-
"https://cloud.pulsebeam.dev/twirp";
12+
"https://cloud.pulsebeam.dev/grpc";
1313

1414
async function waitForStableVideo(
1515
page: Page,
@@ -46,20 +46,20 @@ async function waitForStableVideo(
4646
throw new Error("waitForStableVideo timeout");
4747
}
4848

49-
async function start(page: Page, peerId: string){
49+
async function start(page: Page, peerId: string) {
5050
await page.getByTestId("src-peerId").fill(peerId);
5151
await waitForStableVideo(page, peerId, 5_000);
52-
52+
5353
await page.getByTestId("btn-ready").click();
54-
54+
5555
return () => page.getByTestId("btn-endCall").click();
5656
}
5757

5858
async function connect(page: Page, peerId: string, otherPeerId: string) {
59-
start(page, peerId)
59+
start(page, peerId);
6060
await page.getByTestId("dst-peerId").fill(otherPeerId);
6161
await page.getByTestId("btn-connect").click();
62-
await expect(page.getByTestId("btn-connect")).not.toBeVisible()
62+
await expect(page.getByTestId("btn-connect")).not.toBeVisible();
6363
await waitForStableVideo(page, otherPeerId, 10_000);
6464

6565
return () => page.getByTestId("btn-endCall").click();
@@ -210,8 +210,8 @@ test.describe("Connect", () => {
210210

211211
// Attempt simultaneous connection
212212
await Promise.all([
213-
pageA.getByTestId("btn-connect").click().catch(() => {}),
214-
pageB.getByTestId("btn-connect").click().catch(() => {}),
213+
pageA.getByTestId("btn-connect").click().catch(() => { }),
214+
pageB.getByTestId("btn-connect").click().catch(() => { }),
215215
]);
216216

217217
// Verify buttons are hidden
@@ -221,13 +221,13 @@ test.describe("Connect", () => {
221221
]);
222222

223223
await waitForStableVideo(pageA, peerB, 10_000),
224-
await waitForStableVideo(pageB, peerA, 10_000),
225-
226-
await Promise.all([closeA(), closeB()]);
224+
await waitForStableVideo(pageB, peerA, 10_000),
225+
await Promise.all([closeA(), closeB()]);
227226
} finally {
228227
await contextA.close();
229228
await contextB.close();
230229
}
231230
});
232231
}
233-
});
232+
});
233+

0 commit comments

Comments
 (0)