mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-12 11:47:11 +00:00
fix(e2e): use #node-name locator instead of getByLabel in nodes tests
The NodeManager form labels the field 'Name' (not 'Node Name'), so getByLabel(/node name/i) never matched and timed out after 30s. Switch to the stable #node-name id which is bound via htmlFor.
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ test.describe('Node management', () => {
|
||||
}
|
||||
await addBtn.click();
|
||||
|
||||
await page.getByLabel(/node name/i).fill('bad-node');
|
||||
await page.locator('#node-name').fill('bad-node');
|
||||
// Select "remote" type if there's a type selector
|
||||
const typeSelect = page.getByLabel(/type/i);
|
||||
if (await typeSelect.isVisible()) await typeSelect.selectOption('remote');
|
||||
|
||||
Reference in New Issue
Block a user