Skip to content

Commit e5af151

Browse files
committed
test(ui): await authenticated fullscreen handoff
1 parent 261df68 commit e5af151

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎ui/src/e2e/desktop-panel-fullscreen.e2e.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,11 @@ suite.define(() => {
249249
.poll(async () => (await gateway.getRequests("desktop.observe")).length)
250250
.toBe(2);
251251
expect(await page.evaluate(() => document.fullscreenElement !== null)).toBe(true);
252-
await panel.locator(".desktop-surface canvas").waitFor();
252+
// The authenticated handoff keeps both canvases until the replacement connects.
253+
await expect
254+
.poll(() => screenHandle?.evaluate((element) => element.isConnected))
255+
.toBe(false);
256+
await screen.waitFor();
253257
await expect
254258
.poll(() => panel.getByRole("button", { name: "Take control", exact: true }).count())
255259
.toBe(0);

0 commit comments

Comments
 (0)