fix(e2e): use mat-button-toggle value selectors for playlist type selection

mat-button-toggle elements inside a group render their internal buttons
with role="radio", not role="button", so getByRole('button') selectors
fail. Switch to attribute selectors targeting the value attribute instead.

https://claude.ai/code/session_01VU6ZZTG7YrhKhKBQvBfmpp
This commit is contained in:
Claude committed 2026-03-30 06:48:49 +00:00
1 parent f87a261fb1
commit 464d2eda01
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ async function addXtreamPortal(
await page.getByRole('button', { name: 'Add playlist' }).click();
const dialog = page.locator('mat-dialog-container');
await dialog.getByRole('button', { name: 'Xtream' }).click();
await dialog.locator('mat-button-toggle[value="xtream"]').click();
await dialog.locator('#title').fill(name);
await dialog.locator('#serverUrl').fill(MOCK_SERVER);