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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JE1De2dfyRZMYh4H2iGXb4
This commit is contained in:
Claude committed 2026-08-16 05:31:11 +00:00
1 parent 70f5e41855
commit 422459e706
1 file changed
+5 -3
+5 -3
View File
@@ -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();