From 422459e706e7db6f95010ba2342f891319aea398 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 16 Aug 2026 05:31:11 +0000 Subject: [PATCH] fix(playlist): disambiguate the MAC label in the auto-detect E2E getByLabel matches substrings case-insensitively, so 'Mac Address' also resolved to the 'Generate device IDs from the MAC address' checkbox and the Stalker handoff spec failed strict-mode. Match the field exactly. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01JE1De2dfyRZMYh4H2iGXb4 --- apps/web-e2e/src/basic.e2e.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/web-e2e/src/basic.e2e.ts b/apps/web-e2e/src/basic.e2e.ts index 792fb13ee..c8f63bff6 100644 --- a/apps/web-e2e/src/basic.e2e.ts +++ b/apps/web-e2e/src/basic.e2e.ts @@ -97,9 +97,11 @@ test('@web @auto-detect keeps the pasted message when switching methods', async await expect( dialog.getByRole('radio', { name: /Stalker portal/i }) ).toBeChecked(); - await expect(dialog.getByLabel('Mac Address')).toHaveValue( - '00:1A:79:12:34:56' - ); + // Exact: the derive-device-IDs checkbox is labelled "Generate device IDs + // from the MAC address", which a substring match would also resolve to. + await expect( + dialog.getByLabel('Mac Address', { exact: true }) + ).toHaveValue('00:1A:79:12:34:56'); // Returning to auto-detect must not cost the user their paste. await dialog.getByRole('radio', { name: /Auto-detect/i }).click();