mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-13 12:36:15 -08:00
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:
1 file changed
+5
-3
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user