Skip to content

Commit cdd226d

Browse files
fix(e2e): use .first() for Disconnect button to avoid strict mode violation
When MoQ is connected, two Disconnect buttons are rendered (one in SessionPanel, one in Connection & Controls). Use .first() to resolve the strict mode ambiguity. Signed-off-by: StreamKit Devin <devin@streamkit.dev> Co-Authored-By: Claudio Costa <devin@streamkit.dev>
1 parent 34cde74 commit cdd226d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/tests/stream.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ test.describe('Stream View - Dynamic Pipeline', () => {
121121
if (finalConnected) {
122122
await expect(page.getByText(/Watch: live/)).toBeVisible({ timeout: 15_000 });
123123

124-
const disconnectButton = page.getByRole('button', { name: /^Disconnect$/i });
124+
const disconnectButton = page.getByRole('button', { name: /^Disconnect$/i }).first();
125125
await expect(disconnectButton).toBeVisible();
126126
await disconnectButton.click();
127127

0 commit comments

Comments
 (0)